Bug 461120
Summary: | No xterm comes up when running a console program in Codeblocks | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Stephen So <steve8988> | ||||||
Component: | codeblocks | Assignee: | Dan Horák <dan> | ||||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 9 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2008-10-16 02:12:24 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Stephen So
2008-09-04 11:49:54 UTC
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. |