Also, try running from command line with
After you open a project, the debug log should have output like
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
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
~$ 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
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
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?
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.
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
ScriptedWizard: loaded
ProjectsImporter: loaded
Compiler: loaded
AStylePlugin: loaded
Abbreviations: loaded
CodeCompletion: loaded
Debugger: loaded
ToDoList: loaded
Autosave: loaded
FilesExtensionHandler: loaded
ClassWizard: loaded
OpenFilesList: loaded
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
Foreign projects importer plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for MSP430"
Added compiler "PGI Fortran Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "LLVM Clang Compiler"
Added compiler "*No Compiler*"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU GCC Compiler for TriCore"
Added compiler "Tiny C Compiler"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for AVR"
Compiler plugin activated
Source code formatter (AStyle) plugin activated
Abbreviations plugin activated
Code completion plugin activated
Debugger plugin activated
Todo List plugin activated
Autosave plugin activated
Files extension handler plugin activated
Class wizard plugin activated
Open files list plugin activated
Loading toolbar...
ClassBrowser::UpdateClassBrowserView(): No active project available.
Initializing plugins...
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
1 files loaded
Done loading project in 23ms
Project's base path: /home/sergey/.programming/project/codeblocks/test/
Project's common toplevel path: /home/sergey/.programming/project/codeblocks/test/
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 41)
Project data set for /home/sergey/.programming/project/codeblocks/test/main.c
Top Editor: /home/sergey/.programming/project/codeblocks/test/main.c
NativeParser::DoFullParsing(): AddCompilerPredefinedMacros failed!
NativeParser::DoFullParsing(): Adding three kind of files to batch-parser
NativeParser::DoFullParsing(): Added 1 header&source file(s) for project 'test' to batch-parser...
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/home/sergey/.programming/project/codeblocks/test' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/sergey/.programming/project/codeblocks/test/main.c
NativeParser::CreateParser(): Finish creating a new parser for project 'test'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'test'...
NativeParser::OnParserEnd(): Project 'test' parsing stage done!
Project 'test' parsing stage done (1 total parsed files, 1 tokens in 0 minute(s), 0.012 seconds).
NativeParser::GetAllPathsByFilename(): Traversing '/home/sergey/.programming/project/codeblocks/test' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/sergey/.programming/project/codeblocks/test/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/sergey/.programming/project/codeblocks/test/main.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Re-parsed 1 files.
NativeParser::OnParserStart(): Starting re-parsing for project 'test'...
Project 'test' parsing stage done (1 total parsed files, 1 tokens in 0 minute(s), 0.011 seconds).
NativeParser::GetAllPathsByFilename(): Traversing '/home/sergey/.programming/project/codeblocks/test' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/sergey/.programming/project/codeblocks/test/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/sergey/.programming/project/codeblocks/test/main.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Reparsing when typing for editor /home/sergey/.programming/project/codeblocks/test/main.c
NativeParser::OnParserStart(): Starting re-parsing for project 'test'...
Project 'test' parsing stage done (1 total parsed files, 1 tokens in 0 minute(s), 0.012 seconds).
NativeParser::GetAllPathsByFilename(): Traversing '/home/sergey/.programming/project/codeblocks/test' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/sergey/.programming/project/codeblocks/test/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/sergey/.programming/project/codeblocks/test/main.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Are you using a custom compiler install?
No