User forums > General (but related to Code::Blocks)
linux, code completion
dmoore:
What Ubuntu version?
I have no such problems on Ubuntu 12.04 and 13.10. It may not make a difference but you can try my PPA which is updated daily.
Have you verified that your code compiles? If the standard headers are somehow messed up this might explain the problem.
Otherwise maybe locale/encoding issues?
dmoore:
Also, try running from command line with
--- Code: ---codeblocks --debug-log
--- End code ---
After you open a project, the debug log should have output like
--- Code: ---NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.6
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.6/i686-linux-gnu
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.6/backward
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/i686-linux-gnu/4.6/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/i686-linux-gnu/4.6/include-fixed
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/i386-linux-gnu
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.6/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 'ProjectTest'...
NativeParser::DoFullParsing(): Added 1 header&source file(s) for project 'ProjectTest' to batch-parser...
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
NativeParser::GetAllPathsByFilename(): Found 1 files:
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
NativeParser::CreateParser(): Finish creating a new parser for project 'ProjectTest'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'ProjectTest'...
NativeParser::OnParserEnd(): Project 'ProjectTest' parsing stage done!
Project 'ProjectTest' parsing stage done (106 total parsed files, 3849 tokens in 0 minute(s), 0.694 seconds).
NativeParser::GetAllPathsByFilename(): Traversing 'XXXXXXXXXXXXXXXXXXXXXX' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing 'XXXXXXXXXXXXXXXXXXXXXX' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- XXXXXXXXXXXXXXXXXXXXXXXXXXXX
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
SystemHeadersThread: /usr/include/c++/4.6/ , 606
SystemHeadersThread: /usr/include/c++/4.6/i686-linux-gnu/ , 46
SystemHeadersThread: /usr/include/c++/4.6/backward/ , 8
SystemHeadersThread: /usr/lib/gcc/i686-linux-gnu/4.6/include/ , 38
SystemHeadersThread: /usr/local/include/ , 0
SystemHeadersThread: /usr/lib/gcc/i686-linux-gnu/4.6/include-fixed/ , 4
SystemHeadersThread: /usr/include/i386-linux-gnu/ , 251
SystemHeadersThread: /usr/include/ , 13980
SystemHeadersThread: Total number of paths: 8
--- End code ---
D101101:
Ubuntu 12.04 + Xfce
I tried different encodings
I tried to open a project and then close and open the other, but that's all
--- Code: ---~$ codeblocks --debug-log
(codeblocks:2577): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'
(codeblocks:2577): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
(codeblocks:2577): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'
(codeblocks:2577): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
(codeblocks:2577): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'
(codeblocks:2577): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
(codeblocks:2577): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'
(codeblocks:2577): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
--- End code ---
--- Quote from: dmoore on October 24, 2013, 10:02:04 pm ---
--- Code: ---NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.6
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.6/i686-linux-gnu
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/4.6/backward
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/i686-linux-gnu/4.6/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/i686-linux-gnu/4.6/include-fixed
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/i386-linux-gnu
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include
--- End code ---
--- End quote ---
Now I think the problem is in the global search paths.
I have added search paths in project options after that it start to work fine.
How can I add these paths in global sittings?
BlueHazzard:
Settings->Compiler
greetings
dmoore:
--- Quote from: D101101 on October 25, 2013, 06:25:48 am ---Ubuntu 12.04 + Xfce
I tried different encodings
I tried to open a project and then close and open the other, but that's all
--- Code: ---~$ codeblocks --debug-log
(codeblocks:2577): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'
(codeblocks:2577): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
(codeblocks:2577): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
--- End code ---
--- End quote ---
Wrong output - that is the console. The debug log is in a Tab on the main app window in a panel at the bottom of the screen - same panel as compiler output just different tab.
--- Quote ---Now I think the problem is in the global search paths.
I have added search paths in project options after that it start to work fine.
--- End quote ---
These are standard headers so you shouldn't have to add them unless they are in an unusual place. Are you using a custom compiler install?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version