Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
some issues and requests
MortenMacFly:
--- Quote from: MortenMacFly on September 08, 2010, 01:57:33 pm ---In both cases the trace log is useless unfortunately.
--- End quote ---
When I say this I mean that it fails in the wxwidgets DLL like this:
wxStringBase13GetStringDataEv
wxStringBase6lengthEv
wxStringBase5emptyEv
xStringBaseC2ERKS_
wxFileName9GetVolumeEv
wxFileName7GetPathEi12wxPathFormat
wxFileName11GetFullPathE12wxPathFormat
...but coming from codecompletion:
nativeparser.cpp (int NativeParser::FindCurrentFunctionStart(ccSearchData* searchData, wxString* nameSpace, wxString* procName, int caretPos)):
size_t num_results = m_pParser->FindTokensInFile(searchData->pf->file.GetFullPath(), result, tkAnyFunction | tkClass);
called from:
nativeparser.cpp (NativeParser::FindCurrentFunctionToken(ccSearchData* searchData, TokenIdxSet& result, int caretPos)):
if (procName.IsEmpty())
etc...
That isn't very clear to me...
Loaden:
--- Quote from: MortenMacFly on September 08, 2010, 01:57:33 pm ---
--- Quote from: killerbot on September 08, 2010, 10:41:52 am ---I have to say I have seen very nice improvements on the cc branch. It is really way better then before :-)
Congratulations to the cc gurus !!!
--- End quote ---
True, however, I am still facing random crashes. Unfortunately not always. They are of two kinds:
1.) a compiler error occurs and the file in question is opened by C::B automatically. Result: C::B either crashes or freezes. This happens to me often for winbase.h and/or cstdint (the latter only when NOT using the C0XX compiler switch).
2.) a compiler warning/note occurs in the logs and I click on e.g. a note which opens the file in question, too. Result is the same as above but it'll always crash, not freeze.
In both cases the trace log is useless unfortunately. In both cases it works when having CC disabled.
I told Loaden about this but unfortunately he cannot reproduce. He sent me a patch I should try for a solution (actually related to refactoring), but it didn't work.
So: Is it only me or can anybody else reproduce this, too? I am using SVN HEAD of the CC branch, no additional things.
--- End quote ---
Hi, Morten, can you trying this patch? (Only for testting)
Change Log:
--- Quote ---1, add code re-factoring feature, support "Find reference" and "Rename symbols".
2, fix a bug cc will hang when create a project by wizard.
3, improve re-parsing of up-front header files, increase some performance.
4, add filter when parsing source files, .xrc .xml files were not parsed.
5, real-time parsing does not parse system header files.
6, optimize the ui performance when opening several editors, special handling for wx2.8.11.
7, re-factor the CC search function, (use SearchData type instead of cbEditor)
8, optimize the UI performance after batch parse finishes, some tasks were moved from main thread to child thread.
9, add an menu entry of "Reparse this file"
10, add an menu entry of "Reparse current project", and improve Re-parsing project functionality
11, change the short-key to do the codecompletion from Ctrl+SPACE to Shift+SPACE, because in Chinese,Japanese or Korean System, Ctrl+SPACE is always used to switch IME.
12, fix switch parser delay when editor actived
13, improve switch parser
--- End quote ---
2010-09-09 10:12:53 Update: delete the attachment.
Loaden:
--- Quote from: killerbot on September 08, 2010, 10:41:52 am ---BUT when I position the cursor between 2 functions, the toolbar doesn't show a function [acceptable since we are in between functions], BUT the drop down list is empty. Since I was still at the global scope, the dropdown list should still contain all the functions. Right ?
--- End quote ---
I will checking, and try to fix.
MortenMacFly:
--- Quote from: Loaden on September 08, 2010, 03:03:21 pm ---Hi, Morten, can you trying this patch? (Only for testting)
--- End quote ---
I'll give it a try... Probably any volunteers should do the same.
Loaden:
--- Quote from: Loaden on September 08, 2010, 03:14:45 pm ---
--- Quote from: killerbot on September 08, 2010, 10:41:52 am ---BUT when I position the cursor between 2 functions, the toolbar doesn't show a function [acceptable since we are in between functions], BUT the drop down list is empty. Since I was still at the global scope, the dropdown list should still contain all the functions. Right ?
--- End quote ---
I will checking, and try to fix.
--- End quote ---
Fixed!
All change log:
--- Quote ---1, add code re-factoring feature, support "Find reference" and "Rename symbols".
2, fix a bug cc will hang when create a project by wizard.
3, improve re-parsing of up-front header files, increase some performance.
4, add filter when parsing source files, .xrc .xml files were not parsed.
5, real-time parsing does not parse system header files.
6, optimize the ui performance when opening several editors, special handling for wx2.8.11.
7, re-factor the CC search function, (use SearchData type instead of cbEditor)
8, optimize the UI performance after batch parse finishes, some tasks were moved from main thread to child thread.
9, add an menu entry of "Reparse this file"
10, add an menu entry of "Reparse current project", and improve Re-parsing project functionality
11, change the short-key to do the codecompletion from Ctrl+SPACE to Shift+SPACE, because in Chinese,Japanese or Korean System, Ctrl+SPACE is always used to switch IME.
12, fix switch parser delay when editor actived
13, improve switch parser
14, fix crash when show call tip in *NONE* project file.
15, fix global scope update error
--- End quote ---
2010-09-10 15:58:41 Update: delete the attachment.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version