Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: killerbot on February 16, 2012, 11:44:56 am
-
Something that happens to me a lot :
- workspace with several projects (which build static libs) and 1 project which builds the executable app.
- the app project is active
- some cpp file from a lib is open, and I am in a class method implemented in that cpp file, which calls another method from the same class
a) find declaration --> no problem
b) find implementation --> NOT found !!!!!!!!!
- thought the implementation is even in the same file
And sometimes later on it works (very often after doing a find declaration first)
Have no found a way to reproduce this reliably
-
See this: 8.4 Debug Smart Sense log output (http://wiki.codeblocks.org/index.php?title=Code_Completion_Design#Debug_Smart_Sense_log_output), and post the log when you have such problem. The log can help us to identify which part of CC goes wrong.
-
I have experienced similar problems while working on a plugin; I think it is related to what huzhongshan reported (http://forums.codeblocks.org/index.php/topic,15972.0.html) about Code::Blocks failing to update the common top level path when switching projects.
-
I have experienced similar problems while working on a plugin; I think it is related to what huzhongshan reported (http://forums.codeblocks.org/index.php/topic,15972.0.html) about Code::Blocks failing to update the common top level path when switching projects.
Not sure, but the smart sense log can give many details.
-
it just happened to me again.
Workspace , with several projects :
2 sources files (foo.cpp/foo.h) were open which did not belong to the active project.
In the foo.cpp I was using a variable declaration, it's type was a struct declared in the the header foo.h. Find declaration --> nothing happened.
Actiavted the project that contained the 2 source files : Find declaration --> nothing happened.
Switched from project browser to symbol browser. Navigated into the namespace of Foo (ef FooNs), expanded that, and the struct type was in there. Clicked on it --> information in the bottom panel.
Then went back to foo.cpp and tried find declaration --> works NOW.
So didn't get a chance to do the debug trick.
Refresh problem as suggested above ?
-
it just happened to me again.
Workspace , with several projects :
2 sources files (foo.cpp/foo.h) were open which did not belong to the active project.
In the foo.cpp I was using a variable declaration, it's type was a struct declared in the the header foo.h. Find declaration --> nothing happened.
Actiavted the project that contained the 2 source files : Find declaration --> nothing happened.
Switched from project browser to symbol browser. Navigated into the namespace of Foo (ef FooNs), expanded that, and the struct type was in there. Clicked on it --> information in the bottom panel.
Then went back to foo.cpp and tried find declaration --> works NOW.
So didn't get a chance to do the debug trick.
I do not know why you don't get a chance to do the debug trick. When you initially load the project/workspace, you can enable the smart sense debug log. This will show clear information about the failure.
Refresh problem as suggested above ?
What does this sentence mean?