User forums > Using Code::Blocks
codecompletion parser stops parsing
Martin K.:
I have changed my message.
Martin
MortenMacFly:
--- Quote from: Martin K. on November 23, 2012, 12:57:32 pm ---I have changed my message.
--- End quote ---
Did it work after the adjustment I proposed?
Martin K.:
--- Quote from: MortenMacFly on November 23, 2012, 01:30:55 pm ---
--- Quote from: Martin K. on November 23, 2012, 12:57:32 pm ---I have changed my message.
--- End quote ---
Did it work after the adjustment I proposed?
--- End quote ---
no
Martin K.:
I have another example attached.
One Workspace, two projects. Both projects are sharing the source file "together.cpp".
Start Code::Blocks, activate the log tab "Code::Blocks".
Open the workspace "ccproblem.workspace".
The logpane shows:
Opening C:\codeblocks\ccproblem\project1.cbp
Done.
Opening C:\codeblocks\ccproblem\project2.cbp
Done.
Create new parser for project 'project1'
Project 'project1' parsing stage done!
expand all Workspace nodes by clicking at the plus signs.
Now open project1s file together.cpp by double clicking at "together.cpp". The editor opens the source file. A look at the symbols browser shows the global functions "project1" and "together".
Now open together.cpp in project2, only by double clicking at the filename. The editor window don't change and even the symbol browser don't change. It still displays "project1" and "together" as available functions.
OK, another try:
open the file "project1.cpp". The editor shows this file and the symbol bwrowser shows "project1" and "together"
open the file "project2.cpp" and now something happens in the codeblocks log pane: The parser starts to parse project2. The symbol browser showas "project2" and "together" as available function.
Do you see the difference in the behaivour of the cc parser? It ignores the project when it decides if and when to parse something. Maybe this is a projectmanager problem (there is a function "GetProjectFromFile" or so, and this function can't handle this situation).
Any ideas on this?
Martin
ollydbg:
--- Quote from: Martin K. on November 26, 2012, 03:00:04 pm ---I have another example attached.
One Workspace, two projects. Both projects are sharing the source file "together.cpp".
Start Code::Blocks, activate the log tab "Code::Blocks".
Open the workspace "ccproblem.workspace".
The logpane shows:
Opening C:\codeblocks\ccproblem\project1.cbp
Done.
Opening C:\codeblocks\ccproblem\project2.cbp
Done.
Create new parser for project 'project1'
Project 'project1' parsing stage done!
expand all Workspace nodes by clicking at the plus signs.
Now open project1s file together.cpp by double clicking at "together.cpp". The editor opens the source file. A look at the symbols browser shows the global functions "project1" and "together".
Now open together.cpp in project2, only by double clicking at the filename. The editor window don't change and even the symbol browser don't change. It still displays "project1" and "together" as available functions.
--- End quote ---
To here, I can't see any issue.
--- Quote ---OK, another try:
open the file "project1.cpp". The editor shows this file and the symbol bwrowser shows "project1" and "together"
--- End quote ---
This is the correct behavior, cc create a parser for "project1".
--- Quote ---open the file "project2.cpp" and now something happens in the codeblocks log pane: The parser starts to parse project2. The symbol browser showas "project2" and "together" as available function.
--- End quote ---
If you CC setting "max allowed parsers" number >=2, and CC detect that a file belong to another C::B project is opened, so it will create another parser for "project2", this is also correct behavior.
--- Quote ---Do you see the difference in the behavior of the cc parser?
--- End quote ---
Yes, but I don't think cc has some problems in those steps.
--- Quote ---It ignores the project when it decides if and when to parse something.
--- End quote ---
What does this sentence means? I can't understand this.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version