Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
CC's new bug, SVN6049, XPSP3
Jenna:
I can confirm this issue, if I start with an empty project (even with saving the file, reparsing and whatever).
If I start a console-project with the wizard and add vector to the includes it works without error (without saving).
MortenMacFly:
--- Quote from: jens on January 05, 2010, 03:11:01 pm ---I can confirm this issue, if I start with an empty project (even with saving the file, reparsing and whatever).
--- End quote ---
So an empty project with no file, then you create a new (cpp) file and add it to the project?
blueshake:
--- Quote ---I can confirm this issue, if I start with an empty project (even with saving the file, reparsing and whatever).
--- End quote ---
confirm it.
--- Quote ---So an empty project with no file, then you create a new (cpp) file and add it to the project?
--- End quote ---
yes.
I check out the search process output ,it seem that the vector can not be found.
Jenna:
--- Quote from: MortenMacFly on January 05, 2010, 03:19:51 pm ---
--- Quote from: jens on January 05, 2010, 03:11:01 pm ---I can confirm this issue, if I start with an empty project (even with saving the file, reparsing and whatever).
--- End quote ---
So an empty project with no file, then you create a new (cpp) file and add it to the project?
--- End quote ---
Exactly.
Then I type literally the same as in the console-project.
Even the main-function is not shown in symbols-browser, until I manually start the reparsing (saving is not enough).
I just noticed that his does not happen, if I have just started C::B, but create a new project if another one is loaded.
Next thing: I just closed the first created project and tried the cc in the secondly created one (only this project is open at this moment) and C::B crashed !
Output from debug report:
--- Code: --- <frame level="0"/>
<frame level="1" function="TokensTree::FindTokensInFile(wxString const&, std::set<int, std::less<int>, std::allocator<int> >&, short)" offset="00000111"/>
<frame level="2" function="Parser::FindTokensInFile(wxString const&, std::set<int, std::less<int>, std::allocator<int> >&, short)" offset="000000b9"/>
<frame level="3" function="NativeParser::FindCurrentFunctionStart(cbEditor*, wxString*, wxString*, int)" offset="0000015a"/>
<frame level="4" function="NativeParser::FindCurrentFunctionToken(cbEditor*, std::set<int, std::less<int>, std::allocator<int> >&, int)" offset="000000df"/>
<frame level="5" function="NativeParser::ParseFunctionArguments(cbEditor*, int)" offset="0000010d"/>
<frame level="6" function="NativeParser::MarkItemsByAI(std::set<int, std::less<int>, std::allocator<int> >&, bool, bool, bool, int)" offset="0000018f"/>
<frame level="7" function="CodeCompletion::CodeComplete()" offset="00000174"/>
<frame level="8" function="CodeCompletion::OnCodeCompleteTimer(wxTimerEvent&)" offset="00000068"/>
<frame level="9" function="wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)" offset="00000050"/>
<frame level="10" function="wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)" offset="000000a4"/>
<frame level="11" function="wxEvtHandler::ProcessEvent(wxEvent&)" offset="000000c7"/>
<frame level="12" function="wxTimerBase::Notify()" offset="00000068"/>
<frame level="13"/>
<frame level="14"/>
<frame level="15" function="g_main_context_dispatch" offset="0000024a"/>
<frame level="16"/>
<frame level="17" function="g_main_loop_run" offset="000001bd"/>
<frame level="18" function="gtk_main" offset="000000a7"/>
<frame level="19" function="wxEventLoop::Run()" offset="00000048"/>
<frame level="20" function="wxAppBase::MainLoop()" offset="0000004b"/>
--- End code ---
MortenMacFly:
--- Quote from: jens on January 05, 2010, 03:32:37 pm ---
--- Quote from: MortenMacFly on January 05, 2010, 03:19:51 pm ---
--- Quote from: jens on January 05, 2010, 03:11:01 pm ---I can confirm this issue, if I start with an empty project (even with saving the file, reparsing and whatever).
--- End quote ---
So an empty project with no file, then you create a new (cpp) file and add it to the project?
--- End quote ---
Exactly.
[...]
Next thing: I just closed the first created project and tried the cc in the secondly created one (only this project is open at this moment) and C::B crashed !
--- End quote ---
Although I cannot reproduce both (it really works here!) I've submitted a possible bug-fix for the crash.
For the reproduction:
Is it possible that you provide a dumb-ass step-by-step instruction for me?
I created an empty project, then an empty (new) source file (lala.cpp) which I added to the targets of the project. When I typed in the vector stuff everything CC'ed just fine. including std:: and v..
Please notice that a file that does not belong to a project might indeed have issues when trying to CC a STL header as this is probably not known to CC as the include path's are missing. Please double-check if the file is really a file with a valid C++ extension and is really added to the empty project.
For the crash I probably did something wrong... it is not clear to me...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version