User forums > Help

Code completion toolbar disabled with source files

(1/3) > >>

travonz:
Hello,

I have problem since I upgrade to the last svn (6927). Previous upgrade was December the 8th, 2010 and everything was ok before and after this upgrade.
I use gentoo with gcc-4.4.4, wxgtk-2.8.10.
Code completion toolbar work well when a header file is open, but it is disabled in case of a source file.
Also, when I do a right-click on a function to find implementation, it never find anything, whereas finding declaration works well.
In my project, sources and headers are not in the same directory.

I tried code completion toolbar with codeblocks.cbp, everything works well. So the problem come from my project configuration.
But I can't find where it come from, do you think having sources and headers in different directories be the cause ? Or the extension of source files (.cc instead of .cpp) ?

Thank you very much for your help.

Xavier

killerbot:
could you minimize your project (less files, less code in file) while still preserving the issue, that way you could attahc it here, and our CC gurus could try it out ?

travonz:
Thank you very much for your answer.

Please find attached a minimalistic project which not compile but which reproduce the issue.

killerbot:
I can confirm it does not work 100%.

In the header files, I could get the toolbar to contain stuff, but in the  .cc file not (for the few things I tried, maybe we should not generalize).
I could go from implementation through goto declaration to the declaration, but from the header  goto implementation sometimes failed.

@ our CC gurus, could you please have a look at this ...

ollydbg:

--- Quote from: killerbot on January 19, 2011, 09:53:33 pm ---I can confirm it does not work 100%.

In the header files, I could get the toolbar to contain stuff, but in the  .cc file not (for the few things I tried, maybe we should not generalize).
I could go from implementation through goto declaration to the declaration, but from the header  goto implementation sometimes failed.

@ our CC gurus, could you please have a look at this ...

--- End quote ---
I just test it now, it seems the *.cc file was not regard as a c++ language file, so the parser never parse on these files.

I will check the reason.

Navigation

[0] Message Index

[#] Next page

Go to full version