News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

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

Started by killerbot, September 12, 2010, 04:39:04 PM

Previous topic - Next topic

Loaden

By the way, could you launch CB with "codeblocks.exe --debug-log", and put the debug log in here?
Thanks!

blueshake

1.add the arguments "--debug-log" to the shortcut for codeblock.
2.press ctrl and shift ,right click the symbol tree, click debug smartsense.
3.type std::
4.post the output log here,please.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

ironhead

Here's what I see in the debug log:

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.
MarkItemsByAI()
ParseUsingNamespace() Parse file scope for "using namespace"
ParseFunctionArguments() Parse function arguments
FindCurrentFunctionStart() Looking for tokens in 'C:\Users\Chris\Documents\test.cpp'
FindCurrentFunctionStart() Found 3 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='class A {...}', tF='C:\Users\Chris\Documents\test.cpp', tStart=4, tEnd=7
FindCurrentFunctionStart() Function out of bounds: tN='class A {...}', tF='C:\Users\Chris\Documents\test.cpp', tStart=4, tEnd=7, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0
FindCurrentFunctionStart() Function out of bounds: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test.cpp', tStart=10, tEnd=13
FindCurrentFunctionStart() Current function: 'int main()' (at line 9)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 80)
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.cpp'
FindCurrentFunctionStart() Found 3 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='class A {...}', tF='C:\Users\Chris\Documents\test.cpp', tStart=4, tEnd=7
FindCurrentFunctionStart() Function out of bounds: tN='class A {...}', tF='C:\Users\Chris\Documents\test.cpp', tStart=4, tEnd=7, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0
FindCurrentFunctionStart() Function out of bounds: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test.cpp', tStart=10, tEnd=13
FindCurrentFunctionStart() Current function: 'int main()' (at line 9)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 80)
ParseLocalBlock() Block:

   std::
ParseLocalBlock() Local tokens:
AI() =========================================================
AI() Doing AI for '    std::':
FindCurrentFunctionStart() Looking for tokens in 'C:\Users\Chris\Documents\test.cpp'
FindCurrentFunctionStart() Found 3 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='class A {...}', tF='C:\Users\Chris\Documents\test.cpp', tStart=4, tEnd=7
FindCurrentFunctionStart() Function out of bounds: tN='class A {...}', tF='C:\Users\Chris\Documents\test.cpp', tStart=4, tEnd=7, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0
FindCurrentFunctionStart() Function out of bounds: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test.cpp', tStart=10, tEnd=13
FindCurrentFunctionStart() Current function: 'int main()' (at line 9)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 80)
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
Reparsing when typing for editor C:\Users\Chris\Documents\test.cpp
Reparsing modified files for project '*NONE*'
Project '*NONE*' parsing stage done (1 total parsed files, 3 tokens in 0 minute(s), 0.000 seconds).
Updating class browser...
Class browser updated.
MarkItemsByAI()
ParseUsingNamespace() Parse file scope for "using namespace"
ParseFunctionArguments() Parse function arguments
FindCurrentFunctionStart() Looking for tokens in 'C:\Users\Chris\Documents\test.cpp'
FindCurrentFunctionStart() Found 3 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0
FindCurrentFunctionStart() Function out of bounds: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test.cpp', tStart=10, tEnd=13
FindCurrentFunctionStart() Current function: 'int main()' (at line 9)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 80)
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.cpp'
FindCurrentFunctionStart() Found 3 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0
FindCurrentFunctionStart() Function out of bounds: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test.cpp', tStart=10, tEnd=13
FindCurrentFunctionStart() Current function: 'int main()' (at line 9)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 80)
ParseLocalBlock() Block:

   std::
ParseLocalBlock() Local tokens:
AI() =========================================================
AI() Doing AI for '    std::':
FindCurrentFunctionStart() Looking for tokens in 'C:\Users\Chris\Documents\test.cpp'
FindCurrentFunctionStart() Found 3 results
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0
FindCurrentFunctionStart() Function out of bounds: tN='void A::Test()', tF='C:\Users\Chris\Documents\test.cpp', tStart=0, tEnd=0, line=11 (size_t)line=11
FindCurrentFunctionStart() (Next) Iteration...
FindCurrentFunctionStart() Iterating: tN='int main()', tF='C:\Users\Chris\Documents\test.cpp', tStart=10, tEnd=13
FindCurrentFunctionStart() Current function: 'int main()' (at line 9)
FindCurrentFunctionStart() Namespace='', proc='main' (returning 80)
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


The output of the cpp command gives me:

$ cpp -v -E -x c++ nul
Using built-in specs.
COLLECT_GCC=c:\MinGw64\bin\cpp.exe
COLLECT_LTO_WRAPPER=c:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.5.2/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: /home/drangon/work/mingw-w64-dgn/source/gcc/configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --disable-nls --enable-languages=c,c++,objc,obj-c++ --with-gmp=/home/drangon/work/mingw-w64-dgn/build/for_target --enable-twoprocess --disable-libstdcxx-pch --disable-win32-registry --prefix=/home/drangon/work/mingw-w64-dgn/target --with-sysroot=/home/drangon/work/mingw-w64-dgn/target
Thread model: win32
gcc version 4.5.2 20100903 (prerelease) (GCC)
COLLECT_GCC_OPTIONS='-v' '-E' '-mtune=generic' '-march=x86-64'
c:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.5.2/cc1plus.exe -E -quiet -v -iprefix c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.2/ nul -mtune=generic -march=x86-64
# 1 "nul"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "nul"
ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../include/c++/4.5.2"
ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../include/c++/4.5.2/x86_64-w64-mingw32"
ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../include/c++/4.5.2/backward"
ignoring nonexistent directory "/home/drangon/work/mingw-w64-dgn/target/home/drangon/work/mingw-w64-dgn/target/lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../include"
ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.2/include"
ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.2/include-fixed"
ignoring duplicate directory "c:/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory "/home/drangon/work/mingw-w64-dgn/target/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../include/c++/4.5.2
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../include/c++/4.5.2/x86_64-w64-mingw32
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../include/c++/4.5.2/backward
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.2/include
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.2/include-fixed
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/include
End of search list.
COMPILER_PATH=c:/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.5.2/;c:/mingw64/bin/../libexec/gcc/;c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/;c:/mingw64/bin/../lib/gcc/;c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../lib64/;c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/lib/;c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../
COLLECT_GCC_OPTIONS='-v' '-E' '-mtune=generic' '-march=x86-64'

Orgulas

The call tip is still a bit weird:

Notice the cursor before the 1.
I'd expect it to highlight the parameter at the cursor, not the last one.
main(int f,int*v){for(f=fopen(*++v,"r");*v=~getc(f);)putchar(~*v);}

daniloz

I have the same issue with the most actual (normal) branch (should be equivalent to the normal nigthly build)...  But had it since a long time now...

blueshake

@ironhead
here is the issue.

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


QuoteResolveExpression() search scope is 1 result.
search scope: -1
ResolveExpression() Looping 0 result.
AI() AI leave, returned 0 results
0 results
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

blueshake

here is my log.
QuoteResolveExpression() 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'
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

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?

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.
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:

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.

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:

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.

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

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

#include <iostream>

using namespace std;

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


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

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


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.

ironhead

I finally got 'std' to complete, I had to manually add all the compiler search paths:

C:\MinGW64\include
C:\MinGW64\x86_64-w64-mingw32\include
C:\MinGW64\lib\gcc\x86_64-w64-mingw32\4.5.2\include
C:\MinGW64\lib\gcc\x86_64-w64-mingw32\4.5.2\include-fixed
C:\MinGW64\mingw\include
C:\MinGW64\include\c++\4.5.2
C:\MinGW64\include\c++\4.5.2\x86_64-w64-mingw32
C:\MinGW64\include\c++\4.5.2\backward


Now that I have this working, I have to say, Loaden, olly, Blueshake and company, you have done an excellent job in improving CC! :)

Loaden

Quote from: ironhead on September 14, 2010, 04:40:59 AM
I finally got 'std' to complete, I had to manually add all the compiler search paths:

C:\MinGW64\include
C:\MinGW64\x86_64-w64-mingw32\include
C:\MinGW64\lib\gcc\x86_64-w64-mingw32\4.5.2\include
C:\MinGW64\lib\gcc\x86_64-w64-mingw32\4.5.2\include-fixed
C:\MinGW64\mingw\include
C:\MinGW64\include\c++\4.5.2
C:\MinGW64\include\c++\4.5.2\x86_64-w64-mingw32
C:\MinGW64\include\c++\4.5.2\backward


Now that I have this working, I have to say, Loaden, olly, Blueshake and company, you have done an excellent job in improving CC! :)
Could you trying this portable build?

Hi, all, if you have some problem in CC-BRANCH, please trying this build.
1. Run "test.bat", start CB.
2. Do some thing that you want.
3. Close CB, will create two log files.
4. Please package all the log files, and post in here.
Thanks a lot!


http://portablecb.googlecode.com/files/CB_CCBRANCH_6599_patched.7z

This is a portable build, all configurations are in the "config" directory. If you need restart test, just remove "config".

Here is the "test.bat" content:
Quote@echo off
if exist codeblocks.exe start codeblocks.exe --debug-log --debug-log-to-file --log-to-file

2010-09-17 11:15:01 UPDATE: instead by http://portablecb.googlecode.com/files/CB_CCBRANCH_6599_patched.7z

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?

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.
Could you trying this build too?
Thanks!
http://portablecb.googlecode.com/files/CB_CCBRANCH_6581.7z

ptDev

Quote from: Loaden on September 14, 2010, 05:59:13 AM
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?

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.
Could you trying this build too?
Thanks!
http://portablecb.googlecode.com/files/CB_CCBRANCH_6581.7z

I just tried the build you supplied, and with this version, the margin is updated, but C::B hangs. Not even the logs are written.

My OS is Vista, SP2.

daniloz

I have another issue here (using 6583 build, Vista OS, SP2)... btw, I really love the new features... you guys rule !!!

My problem is that when I use the new "Find functions called by ..." or "Find functions calling ..." in the context menu, I have the following error on the status bar of Cscope:

"Error while calling cscope occured!"

What am I missing here???

Thx,