Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

CC upper limits ? BUT for sure BUGs

<< < (2/8) > >>

killerbot:
during the entire tests, no editor was open.

killerbot:
new test : I create a "DUMMY" project, which cpp file was including the headers that the "FOO" library has, meaning every file of project "FOO" (remember header only) CAN/HAS been seen by the parser.

When DUMMY is after FOO : all ok.
When DUMMY is before FOO, the above mentioned problem pops up, and all parsing stops, the OnParserEnd for "FOO" never happens.


--- Code: ---NativeParser::AddProjectToParser(): Add project (Dummy) to parser
NativeParser::OnParserEnd(): Project 'Dummy' parsing stage done!
NativeParser::AddProjectToParser(): Add project (FOO) to parser

--- End code ---

ollydbg:

--- Quote from: killerbot on January 26, 2014, 10:02:59 am ---new test : I create a "DUMMY" project, which cpp file was including the headers that the "FOO" library has, meaning every file of project "FOO" (remember header only) CAN/HAS been seen by the parser.

When DUMMY is after FOO : all ok.
When DUMMY is before FOO, the above mentioned problem pops up, and all parsing stops, the OnParserEnd for "FOO" never happens.


--- Code: ---NativeParser::AddProjectToParser(): Add project (Dummy) to parser
NativeParser::OnParserEnd(): Project 'Dummy' parsing stage done!
NativeParser::AddProjectToParser(): Add project (FOO) to parser

--- End code ---

--- End quote ---
Ok, so it looks like my guess was correct.

--- Quote ---Another guess is that if one Foo project contains some files, but those files were already be parsed before, then in-fact, there is no actual Parserthread tasks assigned to the threadedtask-pool, then, there will be no parser-end event,  because the parser-end event were initially sent from the threaded task pool that all tasks were done.

--- End quote ---

I will see I can take some time to fix this issue.

ollydbg:
But I can't reproduce this bug here, see my testing workspace with three projects (in attachment).
Can you give me some sample workspace?

Jenna:
The errors appears on my system.
Here are the logs if "a" is the active project:
"Code::Blocks"-tab

--- Code: ---Opening /home/jens/Downloads/test/a.cbp
Fertig.
Opening /home/jens/Downloads/test/b.cbp
Fertig.
Opening /home/jens/Downloads/test/c.cbp
Fertig.
NativeParser::CreateParser(): Finish creating a new parser for project 'a'
NativeParser::OnParserEnd(): Project 'a' parsing stage done!
NativeParser::AddProjectToParser(): Add project (b) to parser

--- End code ---

"Code::Blocks Debug"-tab

--- Code: ---Loading workspace "/home/jens/Downloads/test/abc.workspace"
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
4 files loaded
Done loading project in 1ms
Project's base path: /home/jens/Downloads/test/
Project's common toplevel path: /home/jens/Downloads/test/
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
2 files loaded
Done loading project in 1ms
Project's base path: /home/jens/Downloads/test/
Project's common toplevel path: /home/jens/Downloads/test/
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
2 files loaded
Done loading project in 1ms
Project's base path: /home/jens/Downloads/test/
Project's common toplevel path: /home/jens/Downloads/test/
Workspace layout file doesn't exist "/home/jens/Downloads/test/abc.workspace.layout"
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.8.2
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.8.2/x86_64-redhat-linux
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.8.2/backward
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include
NativeParser::DoFullParsing(): AddCompilerPredefinedMacros failed!
NativeParser::DoFullParsing(): Adding three kind of files to batch-parser
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/c++/4.8.2/cstddef'
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/boost/config.hpp'
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/boost/filesystem/config.hpp'
NativeParser::DoFullParsing(): Add 3 priority file(s) for project 'a'...
NativeParser::DoFullParsing(): Added 4 header&source file(s) for project 'a' to batch-parser...
NativeParser::CreateParser(): Finish creating a new parser for project 'a'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'a'...
NativeParser::OnParserEnd(): Project 'a' parsing stage done!
Project 'a' parsing stage done (19 total parsed files, 478 tokens in 0 minute(s), 0.047 seconds).
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
SystemHeadersThread: /usr/include/c++/4.8.2/ , 602
SystemHeadersThread: /usr/include/c++/4.8.2/x86_64-redhat-linux/ , 46
SystemHeadersThread: /usr/include/c++/4.8.2/backward/ , 8
SystemHeadersThread: /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include/ , 52
SystemHeadersThread: /usr/local/include/ , 0
SystemHeadersThread: /usr/include/ , 16270
SystemHeadersThread: Total number of paths: 6
NativeParser::AddProjectToParser(): Add project (b) to parser
NativeParser::AddProjectToParser(): AddCompilerPredefinedMacros failed!
NativeParser::AddProjectToParser(): Done adding 0 files of project (b) to parser.
NativeParser::OnParsingOneByOneTimer(): Add additional (next) project to parser.
Saving workspace layout "/home/jens/Downloads/test/abc.workspace.layout"

--- End code ---


and with "b" as active project:

"Code::Blocks"-tab

--- Code: ---Opening /home/jens/Downloads/test/a.cbp
Fertig.
Opening /home/jens/Downloads/test/b.cbp
Fertig.
Opening /home/jens/Downloads/test/c.cbp
Fertig.
NativeParser::CreateParser(): Finish creating a new parser for project 'b'
NativeParser::OnParserEnd(): Project 'b' parsing stage done!
NativeParser::AddProjectToParser(): Add project (a) to parser
NativeParser::OnParserEnd(): Project 'a' parsing stage done!
NativeParser::AddProjectToParser(): Add project (c) to parser
NativeParser::OnParserEnd(): Project 'c' parsing stage done!

--- End code ---


"Code::Blocks Debug"-tab

--- Code: ---Loading workspace "/home/jens/Downloads/test/abc.workspace"
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
4 files loaded
Done loading project in 1ms
Project's base path: /home/jens/Downloads/test/
Project's common toplevel path: /home/jens/Downloads/test/
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
2 files loaded
Done loading project in 1ms
Project's base path: /home/jens/Downloads/test/
Project's common toplevel path: /home/jens/Downloads/test/
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
2 files loaded
Done loading project in 1ms
Project's base path: /home/jens/Downloads/test/
Project's common toplevel path: /home/jens/Downloads/test/
Loading workspace layout "/home/jens/Downloads/test/abc.workspace.layout"
Project /home/jens/Downloads/test/b.cbp has been activated.
NativeParser::DoFullParsing(): AddCompilerPredefinedMacros failed!
NativeParser::DoFullParsing(): Adding three kind of files to batch-parser
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/c++/4.8.2/cstddef'
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/boost/config.hpp'
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/boost/filesystem/config.hpp'
NativeParser::DoFullParsing(): Add 3 priority file(s) for project 'b'...
NativeParser::DoFullParsing(): Added 2 header&source file(s) for project 'b' to batch-parser...
NativeParser::CreateParser(): Finish creating a new parser for project 'b'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'b'...
NativeParser::OnParserEnd(): Project 'b' parsing stage done!
Project 'b' parsing stage done (17 total parsed files, 476 tokens in 0 minute(s), 0.046 seconds).
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::AddProjectToParser(): Add project (a) to parser
NativeParser::AddProjectToParser(): AddCompilerPredefinedMacros failed!
NativeParser::AddProjectToParser(): Done adding 2 files of project (a) to parser.
NativeParser::OnParsingOneByOneTimer(): Add additional (next) project to parser.
NativeParser::OnParserStart(): Starting batch parsing for project 'a'...
NativeParser::OnParserEnd(): Project 'a' parsing stage done!
Project 'a' parsing stage done (19 total parsed files, 478 tokens in 0 minute(s), 0.011 seconds).
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::AddProjectToParser(): Add project (c) to parser
NativeParser::AddProjectToParser(): AddCompilerPredefinedMacros failed!
NativeParser::AddProjectToParser(): Done adding 2 files of project (c) to parser.
NativeParser::OnParsingOneByOneTimer(): Add additional (next) project to parser.
NativeParser::OnParserStart(): Starting batch parsing for project 'c'...
NativeParser::OnParserEnd(): Project 'c' parsing stage done!
Project 'c' parsing stage done (21 total parsed files, 480 tokens in 0 minute(s), 0.012 seconds).
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version