NativeParser::DoFullParsing(): AddProjectDefinedMacros failed!
NativeParser::DoFullParsing(): Adding cpp/c files to batch-parser
NativeParser::DoFullParsing(): Added 1 source file(s) for project 'test' to batch-parser...
NativeParser::CreateParser(): Finish creating a new parser for project 'test'
NativeParser::OnParserStart(): Starting batch parsing for project 'test'...
NativeParser::OnParserEnd(): Project 'test' parsing stage done!
Project 'test' parsing stage done (2 total parsed files, 245 tokens in 0 minute(s), 0.003 seconds).
SystemHeadersThread: /usr/include/c++/4.8/ , 4326
SystemHeadersThread: /usr/include/c++/4.8/x86_64-suse-linux/ , 23
SystemHeadersThread: /usr/include/c++/4.8/backward/ , 8
SystemHeadersThread: /usr/lib64/gcc/x86_64-suse-linux/4.8/include/ , 56
SystemHeadersThread: /usr/local/include/ , 162
SystemHeadersThread: /usr/lib64/gcc/x86_64-suse-linux/4.8/include-fixed/ , 3
SystemHeadersThread: /usr/x86_64-suse-linux/include/ , 0
SystemHeadersThread: /usr/include/ , 16359
SystemHeadersThread: Total number of paths: 8
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Encoding conversion has failed (buffer is empty)!
Something seriously went wrong while converting file content to wxString!
Language: C/C++By language i mean your system language and encoding...
Starting Code::Blocks Release 17.12 rev 11256 Jul 19 2018, 16:03:43 - wx3.0.4 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
AStylePlugin: loaded
Abbreviations: loaded
Autosave: loaded
ClassWizard: loaded
CodeCompletion: loaded
Compiler: loaded
Debugger: loaded
FilesExtensionHandler: loaded
OccurrencesHighlighting: loaded
OpenFilesList: loaded
ProjectsImporter: loaded
ScriptedWizard: loaded
ToDoList: loaded
Source code formatter (AStyle) plugin activated
Abbreviations plugin activated
Autosave plugin activated
Class wizard plugin activated
Code completion 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 Android"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "LLVM Clang Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "*No Compiler*"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for PowerPC EABI"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "Small Device C Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "GNU GCC Compiler for ZPU"
Compiler plugin activated
Debugger plugin activated
Files extension handler plugin activated
OccurrencesHighlighting plugin activated
Open files list plugin activated
Foreign projects importer plugin activated
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 'Java application'
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 'QT4 (shared) project'
Project wizard added for 'QT5 project'
Project wizard added for 'SDL project'
Project wizard added for 'SDL2 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 'Arduino Project'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'MSP430 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 'D source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
File(s) wizard added for 'Java source'
Scripted wizard plugin activated
Todo List plugin activated
Loading toolbar...
Initializing plugins...
chmod 777 test/I tried again with codeblocks but same result.
total 4
drwxrwxrwx 1 luiziffer users 512 Jul 20 09:33 bin
-rwxrwxrwx 1 luiziffer users 101 Jul 21 13:22 main.c
drwxrwxrwx 1 luiziffer users 512 Jul 20 09:33 obj
-rwxrwxrwx 1 luiziffer users 1066 Jul 18 18:49 test.cbp
-rwxrwxrwx 1 luiziffer users 354 Jul 21 13:23 test.layout
does i happen with any text file or only with files you created with codeblocks?Any, regardless of how the file was created.
what if you use some other encoding then utf8?I tried Windows-1252 and default, no changes.
does the same problem arises with the windows exe of codeblocks on the same system, same file?No, the windows version can open any file without issue.
are the layout and project settings saved and restored correctly?I'm sorry, I don't know how to determine that.
what if you rename the c file to txt file?No changes.
do you use some color scheme?No, everything is set to default. (Didn't change anything yet)
are you sure the file is displayed as empty, or is the text simply white on white? does the cursor move?The file is empty -> pics: OpenSuse, Windows 10 (win10)
vi troubleshooting.txt
:set nobomb
:wq
sed -i $'1s/^\uFEFF//' troubleshooting.txt
I'm sorry, I don't know how to determine that.Edit the Project->Build options
bool EncodingDetector::DetectEncoding(const wxByte* buffer, size_t size, bool convert_to_wxstring)
if (cfgMgr->ReadInt(_T("/default_encoding/use_option"), 0) == 1)
Warning: bypassing C::B's auto-detection!so you go the mozilla detection route. There the first entry is
if (!buffer)
return false;
bool EncodingDetector::ConvertToWxString(const wxByte* buffer, size_t size)
if (!buffer || size == 0)
bool EncodingDetector::DetectEncoding(const wxString& filename, bool convert_to_wxstring)
{
[....]
size_t readBytes = file.Read((void*)buffer, size);
bool result = false;
if (readBytes > 0)
result = DetectEncoding(buffer, size, convert_to_wxstring);
size_t readBytes = file.Read((void*)buffer, size);
bool result = false;
if (readBytes > 0)
result = DetectEncoding(buffer, readBytes , convert_to_wxstring);
@oBFusCATed so what can/should I do now?If you ask this question then there is a lot work ahead of you. We can not do anything because we do not have the problem, and also i have not the possibility to use windows with the linux subsystem... If you are motivated enough i will try to guide you trough the steps. Be aware this is A LOT WORK/Time, but you will also learn a lot!
I just installed Code::Blocks on OpenSuse Leap 42.3 for Windows Subsystem (Windows 10 installed -> OpenSuse Sub).First i would like to know how you installed all this... Compiled by yourself? Installed from repo?
I'm using wxWidgets version 3.0.4 nostl.
Thank you all for helping, I managed to fix the issue. I removed everything and reinstalled wxWidgets this time with the version 2.8.12 and codeblocks from the subversion repo. And somehow it works now.Now it would be easy to help us ;)
Thank you @BlueHazzard for being willing to invest so much time, sadly i don't have enough myself. (If you still want to know, I installed 3.0.4 via Opensuse download website, added the rpm, then zypper and yast; I got codeblocks from a tar file, installed it via /bootstrap, /configure, etc..
-g
-------------- Build: scintilla in Code::Blocks wx3.0.x - Unix (compiler: GNU GCC Compiler)---------------
Scanned 0 files for #includes, cache used 0, cache updated 0
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/luiziffer/trunk/src/sdk/wxscintilla/src/PlatWX.cpp -o .objs30/sdk/wxscintilla/src/PlatWX.o
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/luiziffer/trunk/src/sdk/wxscintilla/src/scintilla/lexers/LexA68k.cxx -o .objs30/sdk/wxscintilla/src/scintilla/lexers/LexA68k.o
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/luiziffer/trunk/src/sdk/wxscintilla/src/scintilla/lexers/LexAbaqus.cxx -o .objs30/sdk/wxscintilla/src/scintilla/lexers/LexAbaqus.o
g++ -Wall -g -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -std=c++11 -D__WX__ -DGTK -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -iquote.objs30/include -I.objs30/include -I. -Isdk/wxscintilla/include -Iinclude/tinyxml -Isdk/wxscintilla/src/scintilla/include -Isdk/wxscintilla/src/scintilla/src -Isdk/wxscintilla/src/scintilla/lexlib -c /home/luiziffer/trunk/src/sdk/wxscintilla/src/scintilla/lexers/LexAda.cxx -o .objs30/sdk/wxscintilla/src/scintilla/lexers/LexAda.o
/home/luiziffer/trunk/src/sdk/wxscintilla/src/PlatWX.cpp:8:23: fatal error: wx/wxprec.h: No such file or directory
#include "wx/wxprec.h"
^
compilation terminated.
Why are you building with 3.0 instead of 2.8 that worked for you?probably to help us xD fix the bug
QuoteWhy are you building with 3.0 instead of 2.8 that worked for you?probably to help us xD fix the bug
10) The codeblocks window from where you are debugging will pop up, or blink or whatever... It will display the line 149 with a yellow arrowSorry, but this doesn't happen. As in, it successfully builds and that's it. What do you mean with faulty file? (I assume you meant the project and clicked on test.cbp)
(I assume you meant the project and clicked on test.cbp)and open the c (or cpp) file you have problems with...
As in, it successfully builds and that's it.Does the debugee starts?
Does the debugee starts?No, it doesn't. The window opened, i selected test.cbp, and it closed, that's it.
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
src
Adding source dir: /home/luiziffer/trunk/src/
Adding source dir: /home/luiziffer/trunk/src/
Adding file: /home/luiziffer/trunk/src/devel30/codeblocks
Changing directory to: /home/luiziffer/trunk/src/devel30
Set variable: LD_LIBRARY_PATH=.:/home/luiziffer/trunk/src/base/tinyxml:/home/luiziffer/trunk/src/devel30:/usr/lib64:
[debug]Command-line: /usr/bin/gcc -nx -fullname -quiet -args /home/luiziffer/trunk/src/devel30/codeblocks
[debug]Working dir : /home/luiziffer/trunk/src/devel30
Starting debugger: /usr/bin/gcc -nx -fullname -quiet -args /home/luiziffer/trunk/src/devel30/codeblocks
Setting SHELL to '/bin/sh'
done
[debug]gcc: error: unrecognized command line option -quiet
[debug]gcc: error: unrecognized command line option -nx
[debug]gcc: error: unrecognized command line option -fullname
[debug]gcc: error: unrecognized command line option -args
Debugger finished with status 1
Your debugger settings are wrong.You can fix this in Settings->Debugger->Default on the left side->Executable path-> point it to gdb
You've set gcc as debugger instead of the correct gdb.
What is the latest news about this issue? Could not find anything about it elsewhere...Same as before. Someone has to install a debugger, build debug versions of cb and wx and try to see what is going on.