User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 When I create a new project for a C console application, and build the app, and then run, no console/terminal comes up that shows the program. The build log says: Checking for existence: /home/stephen/projects/hello/bin/Debug/hello Executing: xterm -T hello -e /bin/sh -c /usr/bin/cb_console_runner /home/stephen/projects/hello/bin/Debug/hello (in /home/stephen/projects/hello/.) Process terminated with status 0 (0 minutes, 0 seconds) However, if I use the Debug/Continue button, an xterm does come up. Reproducible: Always Steps to Reproduce: 1. Open up codeblocks 2. Make new project 3. Select console application 4. Select C language 5. Click the build and run button Actual Results: It compiles the application but it doesn't run the program in an xterm. Expected Results: It should come up with an xterm with the running program. As mentioned before, if I use Debug/continue, the xterm comes up with the running program.
Looks like it is a known bug in Code::Blocks - http://forums.codeblocks.org/index.php/topic,7247.0.html, but unfortunately there was no reaction from upstream yet. I am working on a patch, but all the logic in the function that runs applications is quite complex.
Hm, I have a different command line when trying to run a console application (empty "Console application" created with the wizard): Checking for existence: /home/dan/projects/cd-test/bin/Debug/cd-test Executing: xterm -T cd-test -e /usr/bin/cb_console_runner /home/dan/projects/cd-test/bin/Debug/cd-test (in /home/dan/projects/cd-test/.) the "/bin/sh -c" part is missing. Can you attach your project file (*.cbp)?
Created attachment 315966 [details] *.cdp file Here is my cdp file from an console application that is created using the wizard
The projects files are the same, that could not make the difference. But what is your default shell? Does it's name contain "csh"? What will be the result when you remove the value of "Settings/Environment Settings/General Settings/Shell to run commands in"?
Created attachment 315968 [details] screenshot when removing value of shell Yes I am using tcsh as my main shell. I've tried deleting the shell command in the environment settings. When I run my program, it doesn't work and the command line is still the same, as you can see in the screenshot. I've also tried changing to /bin/tcsh -c but still get the same problem (i.e. it *defaults* to /bin/sh -c)
The results of my investigation are posted upstream - http://forums.codeblocks.org/index.php/topic,9144.0.html You can grab a test rpms at http://koji.fedoraproject.org/koji/taskinfo?taskID=812993
any results?
How do I grab the test rpm?
Hm, the build system already removed the test rpms. I will post here a new link when they will be available.
the test rpms are now at https://koji.fedoraproject.org/koji/taskinfo?taskID=833342 download them all to one location and then run as root "rpm -Fvh codeblocks*.i686.rpm"
It works now. Only issue was that I had to go into Environment Settings and in the "Shell to run commands" put "/bin/sh -c" or else it wouldn't run the compiler properly. It probably was empty when I was playing with it last time. But an xterm comes up and the build log says: Checking for existence: /home/stephen/projects/test2/bin/Release/test2 Executing: /usr/bin/xterm -T test2 -e /bin/sh -c '/usr/bin/cb_console_runner /home/stephen/projects/test2/bin/Release/test2 ' (in /home/stephen/projects/test2/.) Process terminated with status 0 (0 minutes, 4 seconds)
codeblocks-8.02-2.fc8 has been submitted as an update for Fedora 8. http://admin.fedoraproject.org/updates/codeblocks-8.02-2.fc8
codeblocks-8.02-2.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/codeblocks-8.02-2.fc9
codeblocks-8.02-2.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update codeblocks'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-8159
codeblocks-8.02-2.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update codeblocks'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-8218
codeblocks-8.02-2.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
codeblocks-8.02-2.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.