I searched and could not find an answer to this, sorry if I missed it.
Similar things on windows, and with bad characters in paths - but nothing that addressed this.
Stumped - need some suggestions on how to figure out what's happening:
Versions:
Starting Code::Blocks Release 20.03 rev 11997 2021-11-08, 13:51:13 - wx3.0.5 - gcc 11.2.0 (Linux, unicode) - 64 bit
Linux Mint 21.2
I start CB from a terminal (so I see some output as it's running).
I create a new console cpp project and just leave the default "Hello World" code in place.
I build the project just fine:
-------------- Build: Release in Hello (compiler: GNU GCC Compiler)---------------
Scanned 0 files for #includes, cache used 0, cache updated 0
CWD for depslib was: /home/lee/MySourceCode/Hello.
CWD for depslib is: /home/lee/MySourceCode/Hello.
Scanned 0 files for #includes, cache used 0, cache updated 0
g++ -Wall -fexceptions -O2 -c /home/lee/MySourceCode/Hello/main.cpp -o obj/Release/main.o
g++ -o bin/Release/Hello obj/Release/main.o -s
Output file is bin/Release/Hello with size 14.13 KB
CWD for depslib was: /home/lee/MySourceCode/Hello.
...
CWD for depslib is: /home/lee/MySourceCode/Hello.
Scanned 0 files for #includes, cache used 0, cache updated 0
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
From a separate terminal, if I navigate to the /bin/Release directory and run the generated file:
lee@lee-X570S:~/MySourceCode/Hello/bin/Release$ ./Hello
Hello world!
lee@lee-X570S:~/MySourceCode/Hello/bin/Release$
it runs just fine.
I would expect that I should also be able to run the generated file from within CB. When I try that I get only this output in the terminal (that I started CB from)
-------------- Run: Release in Hello (compiler: GNU GCC Compiler)---------------
And the CB thread (looking at top) goes to 100% and CB hangs there. (A few clicks around the window and the window manager allows me to "force quit" CB.)
I have tried to adjust the
Settings - Environment - Terminal to launch console programs:
With many different things that all work fine from a separate terminal. Even just trying to open a terminal and display the date.
Nothing produces any difference at all - CB still hangs - no output anywhere. So I believe CB is having issues before it tries to run the terminal command.
What I am in need of is:
Is there any way for me to get more info about what's happening? There are no errors, no crash reports, no core dumps... nothing. Just the one line shown above and a pegged CPU.
I can figure out the correct terminal command - if I could get CB to actually execute something and show me what it's trying to do.
Candidates would be:
gnome-terminal -- bash -c ./
gnome-terminal -t $TITLE -x ./
etc... I know -x is deprecated and "-- " is the new syntax. But -x does still work.
But it doesn't matter WHAT I put in there now - it does the same (no)thing...
What can I do to get more info to help you help me?
Let the fun begin!
Thank you.