User forums > Nightly builds

The 12 september 2010 build (6583) CODECOMPLETION BRANCH version is out.

<< < (5/10) > >>

blueshake:
@ironhead
here is the issue.

can you check if the token "std" is in the tokentree??

 

--- Quote ---ResolveExpression() search scope is 1 result.
search scope: -1
ResolveExpression() Looping 0 result.
AI() AI leave, returned 0 results
0 results
--- End quote ---

blueshake:
here is my log.

--- Quote ---ResolveExpression() search scope is 2 result.
search scope: -1
search scope: 203
ResolveExpression() Looping 1 result.
ResolvExpression() Match:'std(ID=203) : type=''
ResolveExpression() search scope is 1 result.
search scope: 203
ResolveExpression() Looping 581 result.
ResolvExpression() Match:'cin(ID=423) : type='istream'
ResolvExpression() Match:'cout(ID=424) : type='ostream'
ResolvExpression() Match:'cerr(ID=425) : type='ostream'
ResolvExpression() Match:'clog(ID=426) : type='ostream'
ResolvExpression() Match:'wcin(ID=427) : type='wistream'
ResolvExpression() Match:'wcout(ID=428) : type='wostream'
ResolvExpression() Match:'wcerr(ID=429) : type='wostream'
ResolvExpression() Match:'wclog(ID=430) : type='wostream'
ResolvExpression() Match:'__ioinit(ID=431) : type='ios_base::Init'
ResolvExpression() Match:'basic_ostream(ID=433) : type=''
ResolvExpression() Match:'sentry(ID=472) : type=''
ResolvExpression() Match:'operator<<(ID=478) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=479) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=480) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=481) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=482) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=483) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=484) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=485) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=486) : type='basic_ostream'
ResolvExpression() Match:'operator<<(ID=487) : type='basic_ostream'
ResolvExpression() Match:'endl(ID=488) : type='basic_ostream'
ResolvExpression() Match:'ends(ID=489) : type='basic_ostream'
ResolvExpression() Match:'flush(ID=490) : type='basic_ostream'
ResolvExpression() Match:'basic_istream(ID=492) : type=''
ResolvExpression() Match:'operator>>(ID=558) : type='basic_istream'
ResolvExpression() Match:'operator>>(ID=559) : type='basic_istream'
ResolvExpression() Match:'operator>>(ID=560) : type='basic_istream'
ResolvExpression() Match:'operator>>(ID=561) : type='basic_istream'
ResolvExpression() Match:'operator>>(ID=562) : type='basic_istream'
ResolvExpression() Match:'operator>>(ID=563) : type='basic_istream'
ResolvExpression() Match:'operator>>(ID=564) : type='basic_istream'
ResolvExpression() Match:'basic_iostream(ID=565) : type=''
ResolvExpression() Match:'ws(ID=576) : type='basic_istream'
ResolvExpression() Match:'__ostream_write(ID=579) : type='void'
ResolvExpression() Match:'__ostream_fill(ID=580) : type='void'
ResolvExpression() Match:'__ostream_insert(ID=581) : type='basic_ostream'
ResolvExpression() Match:'__ostream_insert(ID=582) : type='&'
ResolvExpression() Match:'__ostream_insert(ID=583) : type='&'
ResolvExpression() Match:'sentry(ID=585) : type='basic_ostream::sentry::'
ResolvExpression() Match:'operator<<(ID=595) : type='basic_ostream'
ResolvExpression() Match:'endl(ID=596) : type='&'
ResolvExpression() Match:'ends(ID=597) : type='&'
ResolvExpression() Match:'flush(ID=598) : type='&'
ResolvExpression() Match:'operator<<(ID=599) : type='&'
ResolvExpression() Match:'operator<<(ID=600) : type='&'
ResolvExpression() Match:'operator<<(ID=601) : type='&'
ResolvExpression() Match:'operator<<(ID=602) : type='&'
ResolvExpression() Match:'operator<<(ID=603) : type='&'
ResolvExpression() Match:'operator<<(ID=604) : type='&'
ResolvExpression() Match:'ostream(ID=605) : type=''
ResolvExpression() Match:'endl(ID=612) : type='&'
ResolvExpression() Match:'ends(ID=613) : type='&'
ResolvExpression() Match:'flush(ID=614) : type='&'
ResolvExpression() Match:'operator<<(ID=615) : type='&'
ResolvExpression() Match:'operator<<(ID=616) : type='&'
ResolvExpression() Match:'operator<<(ID=617) : type='&'
ResolvExpression() Match:'operator<<(ID=618) : type='&'
ResolvExpression() Match:'wostream(ID=619) : type=''
ResolvExpression() Match:'sentry(ID=627) : type='basic_istream::sentry::'
ResolvExpression() Match:'operator>>(ID=648) : type='basic_istream'
ResolvExpression() Match:'ws(ID=649) : type='&'
ResolvExpression() Match:'operator>>(ID=650) : type='&'
ResolvExpression() Match:'operator>>(ID=651) : type='&'
ResolvExpression() Match:'operator>>(ID=652) : type='&'
ResolvExpression() Match:'operator>>(ID=653) : type='&'
ResolvExpression() Match:'operator>>(ID=654) : type='&'
ResolvExpression() Match:'operator>>(ID=655) : type='&'
ResolvExpression() Match:'istream(ID=656) : type=''
ResolvExpression() Match:'ws(ID=665) : type='&'
ResolvExpression() Match:'operator>>(ID=666) : type='&'
ResolvExpression() Match:'operator>>(ID=667) : type='&'
ResolvExpression() Match:'wistream(ID=668) : type=''
ResolvExpression() Match:'ios(ID=678) : type='basic_ios'
ResolvExpression() Match:'streambuf(ID=679) : type='basic_streambuf'
ResolvExpression() Match:'istream(ID=680) : type='basic_istream'
ResolvExpression() Match:'ostream(ID=681) : type='basic_ostream'
ResolvExpression() Match:'iostream(ID=682) : type='basic_iostream'
ResolvExpression() Match:'stringbuf(ID=683) : type='basic_stringbuf'
ResolvExpression() Match:'istringstream(ID=684) : type='basic_istringstream'
ResolvExpression() Match:'ostringstream(ID=685) : type='basic_ostringstream'
ResolvExpression() Match:'stringstream(ID=686) : type='basic_stringstream'
ResolvExpression() Match:'filebuf(ID=687) : type='basic_filebuf'
ResolvExpression() Match:'ifstream(ID=688) : type='basic_ifstream'
ResolvExpression() Match:'ofstream(ID=689) : type='basic_ofstream'
ResolvExpression() Match:'fstream(ID=690) : type='basic_fstream'

--- End quote ---

Loaden:

--- Quote from: ptDev on September 13, 2010, 01:36:59 pm ---
--- Quote from: Loaden on September 13, 2010, 11:41:00 am ---Update: I can't reproduce any more.
I reproduce only once, here is the crash report.

And, I can't find the reason, any comment?

--- End quote ---

I tried a couple more times and managed to reproduce again. Remember, a crash only happens if the line number margin changes from fixed to dynamic, while at least one file remains changed and not saved.
For both of our cases, the RPT file seems to trace the issue back to cbPlugin::CanDetach(), but I don't know how this works well enough.
How does CodeCompletion read the editor settings? There could be a dangling pointer that causes the error when the settings are updated.

--- End quote ---
I fully repeat your steps given to reproduce, and tried 10 times, but can not reproduce again.
AND, I think this perhaps is not CC problem, It's maybe cbThreadPool issue.
XPSP3, MinGW 4.4.4, wx2.8.10

Loaden:

--- Quote from: ironhead on September 13, 2010, 04:40:20 pm ---Here's what I see in the debug log:


--- Code: ---Create new parser for project '*NONE*'
Starting batch parsing for project '*NONE*'...
Project '*NONE*' parsing stage done!
Project '*NONE*' parsing stage done (1 total parsed files, 3 tokens in 0 minute(s), 0.000 seconds).
Updating class browser...
Class browser updated.

--- End code ---

--- End quote ---
Could you confirm create project by wizard?
Please try open a project by "File > Open" ? and post the debug log in here.
Thanks!

ironhead:

--- Quote from: Loaden on September 14, 2010, 03:20:27 am ---
--- Quote from: ironhead on September 13, 2010, 04:40:20 pm ---Here's what I see in the debug log:


--- Code: ---Create new parser for project '*NONE*'
Starting batch parsing for project '*NONE*'...
Project '*NONE*' parsing stage done!
Project '*NONE*' parsing stage done (1 total parsed files, 3 tokens in 0 minute(s), 0.000 seconds).
Updating class browser...
Class browser updated.

--- End code ---

--- End quote ---
Could you confirm create project by wizard?
Please try open a project by "File > Open" ? and post the debug log in here.
Thanks!

--- End quote ---

I used the console wizard to create a console app using C++.  With the default generated code:


--- Code: ---#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

--- End code ---

When typing 'std::' on a new line, below is the resulting debug log:


--- Code: ---Reparsing when typing for editor C:\Users\Chris\Documents\test\main.cpp
Reparsing modified files for project 'test'
Project 'test' parsing stage done (2 total parsed files, 29 tokens in 0 minute(s), 0.000 seconds).
Updating class browser...
Class browser updated.
Reparsing when typing for editor C:\Users\Chris\Documents\test\main.cpp
Reparsing modified files for project 'test'
Project 'test' parsing stage done (2 total parsed files, 29 tokens in 0 minute(s), 0.000 seconds).
Updating class browser...
Class browser updated.
MarkItemsByAI()
ParseUsingNamespace() Parse file scope for "using namespace"
BreakUpComponents() Breaking up 'std'
BreakUpComponents() Found component: 'std' (SearchText)
BreakUpComponents() Adding component: 'std'.
ParseFunctionArguments() Parse function arguments
FindCurrentFunctionStart() Looking for tokens in 'C:\Users\Chris\Documents\test\main.cpp'
FindCurrentFunctionStart() Found 1 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test\main.cpp', tStart=6, tEnd=10
FindCurrentFunctionStart() Current function: 'int main()' (at line 5)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 59)
GenerateResultSet() search 'main', parent='Global namespace (id:0, type:(null)), isPrefix=0'
ParseFunctionArguments() + Function match: main
ParseLocalBlock() Parse local block
FindCurrentFunctionStart() Looking for tokens in 'C:\Users\Chris\Documents\test\main.cpp'
FindCurrentFunctionStart() Found 1 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test\main.cpp', tStart=6, tEnd=10
FindCurrentFunctionStart() Current function: 'int main()' (at line 5)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 59)
ParseLocalBlock() Block:

  std::
ParseLocalBlock() Local tokens:
AI() =========================================================
AI() Doing AI for '  std::':
FindCurrentFunctionStart() Looking for tokens in 'C:\Users\Chris\Documents\test\main.cpp'
FindCurrentFunctionStart() Found 1 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test\main.cpp', tStart=6, tEnd=10
FindCurrentFunctionStart() Current function: 'int main()' (at line 5)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 59)
GenerateResultSet() search 'main', parent='Global namespace (id:0, type:(null)), isPrefix=0'
AI() Adding search namespace: Global namespace
BreakUpComponents() Breaking up '  std::'
BreakUpComponents() Found component: 'std' (Namespace)
BreakUpComponents() Adding component: 'std'.
BreakUpComponents() Found component: '' (SearchText)
BreakUpComponents() Adding component: ''.
ResolveExpression() search scope is 1 result.
search scope: -1
ResolveExpression() Looping 0 result.
AI() AI leave, returned 0 results
0 results

--- End code ---

How do I check if 'std' is in my tokentree?

It seems to be related to the mingw-w64 tool chain.  If I set the compiler to the 'mingw.org' tool chain, everything works as expected.  Is there a way to check to see what the parser doesn't like about the mingw-w64 headers?

Incidentally, there seems to be a bug in that the default compiler headers are parsed irregardless of what the compiler is set to in the project.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version