[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 179111] New: wxGTKs BEGIN_EVENT_TABLE causes autocompletion to
From:       Jared Barneck <rhyous () yahoo ! com>
Date:       2008-12-30 5:38:46
Message-ID: bug-179111-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

http://bugs.kde.org/show_bug.cgi?id=179111

           Summary: wxGTKs BEGIN_EVENT_TABLE causes autocompletion to fail
                    with: File parsed, but not updating code-model because
                    of errors
           Product: kdevelop
           Version: unspecified
          Platform: FreeBSD Ports
        OS/Version: FreeBSD
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: rhyous@yahoo.com


Version:           3.5.3 (using KDE 3.5.10)
Compiler:          gcc 4.2.1 Added compile flags for wxGTK $(wx-config
--cxxflags)
OS:                FreeBSD
Installed from:    FreeBSD Ports

Steps to duplicate
=====================
1. Install PC-BSD or FreeBSD with Xorg and kde.
2. From ports, install 
kde 3.5.3
wxgtk2-2.8.9
3. Open kde 3.5.3
4. Create a new project called helloworld using the wxwidgets simple hello
world application.
5. Try to get auto-completion to work in the helloworld.cpp.

Result
===========
1. The BEGIN_EVENT_TABLE section is marked with errors.
2. The Auto-completion fails with this error:

File parsed, but not updating code-model because of errors

Expected Result
====================
The BEGIN_EVENT_TABLE section to NOT be marked with errors.
Auto-completion to work correctly.



Suspected Cause
================
This appears to be caused because the following section of the helloworld.cpp
is marked as errors.  Somehow some part of kdevelop (maybe the editor) doesn't
realize this BEGIN_EVENT_TABLE macro is fine and proper and instead looks for
it to be regular code which causes it to incorrectly expect semi-colons at the
end of each statement.

BEGIN_EVENT_TABLE ( helloworldFrame, wxFrame )
    EVT_MENU ( ID_MENU_FILE_QUIT, helloworldFrame::OnQuit )
    EVT_MENU ( ID_MENU_FILE_ABOUT, helloworldFrame::OnAbout )
END_EVENT_TABLE()

IMPLEMENT_APP ( helloworldapp );


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic