[Qt-creator] C++ code navigation troubles at the Qt Creator (2.8 branch)
hatred
adrozdoff at gmail.com
Tue Jul 9 10:39:58 CEST 2013
Nikolai, thanks for debug pacth, I found, that snapshot reduced on file
adding/removing files to the project:
~~~ File adding ~~~
=== updateSourceFiles(): Snapshot size: 8722 Files to (re)parse: 1
=== updateSourceFiles(): Snapshot size: 8722 Files to (re)parse: 1
SOFT ASSERT: "existingParamCount == declaredParameterCount(targetFunction)"
in file
D:\bld\qtcreator-git\qt-creator-git\src\plugins\cppeditor\cppfunctiondecldeflink.cpp,
line 679
SOFT ASSERT: "existingParamCount == declaredParameterCount(targetFunction)"
in file
D:\bld\qtcreator-git\qt-creator-git\src\plugins\cppeditor\cppfunctiondecldeflink.cpp,
line 679
SOFT ASSERT: "existingParamCount == declaredParameterCount(targetFunction)"
in file
D:\bld\qtcreator-git\qt-creator-git\src\plugins\cppeditor\cppfunctiondecldeflink.cpp,
line 679
SOFT ASSERT: "existingParamCount == declaredParameterCount(targetFunction)"
in file
D:\bld\qtcreator-git\qt-creator-git\src\plugins\cppeditor\cppfunctiondecldeflink.cpp,
line 679
SOFT ASSERT: "existingParamCount == declaredParameterCount(targetFunction)"
in file
D:\bld\qtcreator-git\qt-creator-git\src\plugins\cppeditor\cppfunctiondecldeflink.cpp,
line 679
>> At this point I add one new file to the project
=== updateProjectInfo(): Snapshot size before: 8722
=== updateProjectInfo(): Snapshot size after: 0
=== updateSourceFiles(): Snapshot size: 0 Files to (re)parse: 1
=== updateSourceFiles(): Snapshot size: 2 Files to (re)parse: 1
=== updateProjectInfo(): Snapshot size before: 2
=== updateProjectInfo(): Snapshot size after: 0
=== updateSourceFiles(): Ops, no files to reparse or indexer disabled
~~~~~~~~~~~~
~~~ File removing ~~~
=== GC(): Snapshot size: 0 Files garbage collected: 0
=== replaceSnapshot(): Old size: 0 new size: 0
=== updateProjectInfo(): Snapshot size before: 0
=== updateProjectInfo(): Snapshot size after: 0
=== updateSourceFiles(): Snapshot size: 0 Files to (re)parse: 8246
=== updateSourceFiles(): Snapshot size: 0 Files to (re)parse: 1
>> At this point I remove file from project & filesystem
=== updateProjectInfo(): Snapshot size before: 8723
=== updateProjectInfo(): Snapshot size after: 0
=== updateSourceFiles(): Ops, no files to reparse or indexer disabled
=== updateProjectInfo(): Snapshot size before: 0
=== updateProjectInfo(): Snapshot size after: 0
=== updateSourceFiles(): Ops, no files to reparse or indexer disabled
=== updateSourceFiles(): Snapshot size: 0 Files to (re)parse: 1
~~~~~~~~~~~~~~~~~
2013/7/8 hatred <adrozdoff at gmail.com>
> 2013/7/8 Nikolai Kosjar <nikolai.kosjar at digia.com>
>
>> On 07/08/2013 09:13 AM, hatred wrote:
>> > Hi List,
>> >
>> > For the some time I observe issue with C++ code navigation (Generic
>> > Project, approximate 9000 c/cpp/h files, there is no complex templates
>> > and so on, one note: declaration & implementations can be present in
>> > files with different names except extension):
>> > 1. I load project
>> > 2. Parsing process is started
>> > 3. After parsing code navigation work well: I can move between
>> > implementation/declaration (Shift-F2), Find usage (Ctrl+Shift+U) also
>> > work well, Advanced C++ Symbol search (Ctrl+Shift+F) also work well as a
>> > symbol renaming.
>> > 4. After some amount of time code navigation begin to work incorrectly:
>> > Symbol usage search found symbols only in currently opened documents,
>> > Switching between implementation/Declaration also break (but, if I
>> > manualy open file with Implementation it begin to work for the some time
>> > for given symbol).
>>
>> This sounds like the snapshot of files the code model is aware of got
>> heavily reduced. We have fixed an issue like that recently (opening a
>> project made creator forget about previously opened projects). But since
>> it is still valid for you, it might be another issue.
>>
>> > I can't provide more useful information, but I ready to listen any
>> > suggestions and to provide additional info.
>>
>> Does the issue also occur for other projects, e.g. qmake projects?
>>
>>
> Currently I have no any qmake-based projects under development, sorry
>
>
>> Here [1] is a patch that adds some qDebugs() in order to track the
>> snapshot size. It would be interesting to know at which point the
>> reported size drops permanently.
>>
>
> Thanks for patch, I begin source building process with applied patch and
> will provide info ASAP.
>
> Also, OS is a Windowx XP
>
>
>>
>> Nikolai
>>
>> [1] http://cutebin.fi/show.php?id=1420&mode=raw - Save as file and apply
>> with "git am <path/to/file>" on the qt creator root source directory.
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20130709/cdc90d85/attachment.html>
More information about the Qt-creator
mailing list