Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Some annoying symbols-browser issues

<< < (2/6) > >>

ollydbg:

--- Quote from: jens on August 02, 2011, 02:45:50 pm ---@ollydbg:
I know how the event-handling should work, and the appropriate calls to PostParserEvent are made, but the events are never caught.
Here is the debug-log after creating a new console-project with the wizard, before creating I cleaned the log:

--- Code: ---4 user templates loaded
Project's base path: /tmp/test/
Project's common toplevel path: /tmp/test/
Caching GCC dir: /usr/include/c++/4.6
Caching GCC dir: /usr/include/c++/4.6/x86_64-linux-gnu
Caching GCC dir: /usr/include/c++/4.6/backward
Caching GCC dir: /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include
Caching GCC dir: /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/include-fixed
Caching GCC dir: /usr/include/x86_64-linux-gnu
Caching GCC dir: /usr/include
Passing list of files to batch-parser.
Header to parse with priority: '/usr/include/c++/4.6/cstddef'
Header to parse with priority: '/usr/include/boost/config.hpp'
Header to parse with priority: '/usr/include/boost/filesystem/config.hpp'
Add 3 priority parsing file(s) for project 'test'...
Added 1 file(s) for project 'test' to batch-parser...
Create new parser for project 'test'

--- End code ---

--- End quote ---
I have the similar message under WinXP, but I just setting breakpoints on the event-handers, and every event-handler function will be reached.


--- Quote from: MortenMacFly on August 02, 2011, 07:15:50 am ---BTW: Jens, I cannot reproduce on Windows XP. Could you provide simple steps / a project to reproduce? Do you see in the debug log the message "NativeParser received parser end event" and "CodeCompletion received parser end event"? I see them whatever parsr configuration I use...?!

--- End quote ---
@morten:
the strange thing is,  my log was quite similar with jens', and there is NO such log like:

--- Code: ---CodeCompletion received parser end event
--- End code ---

But looking at the source code, it should be there( I can even reaching the breakpoint in that function body)

--- Code: ---oid CodeCompletion::OnParserEnd(wxCommandEvent& event)
{
    if (!Manager::IsAppShuttingDown())
        Manager::Get()->GetLogManager()->DebugLog(_("CodeCompletion received parser end event."));

    ParsingType type = static_cast<ParsingType>(event.GetInt());
    if (type == ptCreateParser)
    {
        if (   !m_SystemHeadersThread.empty()
            && !m_SystemHeadersThread.front()->IsRunning()
            && m_NativeParser.Done() )
        {
            m_SystemHeadersThread.front()->Run();
        }
    }

    cbEditor* editor = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor();
    if (editor)
        ParseFunctionsAndFillToolbar(true);

    event.Skip();
}

--- End code ---
Does it means the "DebugLog" function does not works correctly? or some messages were slip away???



oBFusCATed:

--- Quote from: ollydbg on August 02, 2011, 04:03:13 pm ---Does it means the "DebugLog" function does not works correctly? or some messages were slip away???

--- End quote ---
I guess if it is called from a non-main-gui thread, a race condition is possible (wxGTK is almost single threaded lib) and skipped messages, too.

ollydbg:
@all. sorry, I think I was making a mistake.

I'm seeing the debug-log from an very old nighty build rev 7075.

and the log message was added in rev 7273 by morten

--- Quote ---mortenmacfly  2011-7-3 19:46:20             
* CC: show some more information to the user to hunt CC bugs
- CC: remove long-time obsolete functions to save a CC cache

--- End quote ---

So, That's my mistake, sorry for the noise.

And I have tested
1, loading a cbp project
2, using wizard to create a simple console project.

Both of them will show such "CodeCompletion received parser end event." kind message. :D

@jens:
did you use an old revision before rev 7273????? :D

Loaden:
Jens, are you using Debian Testing?

Jenna:

--- Quote from: Loaden on August 02, 2011, 05:00:02 pm ---Jens, are you using Debian Testing?

--- End quote ---
Unstable/experimental (with some libs of testing of course), with libgtk2.0 2.24.5-4, libgtk3.0 3.0.12-1 and libwxgtk 2.8.10-3.1.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version