New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Execute not working #1019
Comments
Can you run your script from the command line |
It prints the message, no problem.
|
user@user-desktop: |
Ok, when you said "No output anywhere" does that include any error messages in Menu->Help->Debug Messages? |
When I open geany there are some messages, but none that are generated when executing I'm afraid. Nevertheless, here's the content: 12:58:14: Geany INFO : Geany 1.27, pt_PT.UTF-8 |
Ok, just in case there is something in your config that is strange, can you try it running geany from the command line |
Still same results - however there was perhaps a clue in the terminal:
The file geany_run_script_F364GY.sh reads:
|
What is the Menu->Edit->Preferences->Tools->Terminal setting? |
It's the default setting:
|
Looks like Maybe try another terminal that is properly xterm compatible. |
try changing it to |
You might have to install xterm, I don't think Ubuntu includes it by default any more. |
I tried changing to It's strange though - I have a different computer with exactly the same build. In that computer everything runs no problem. Didn't have to change to xterm. Neither of them seem to have x-terminal-emulator. |
Try and see the output of |
You are correct. On the machine that "is working", the wrapper is gnome-terminal, on the one where it isn't working, it's terminator. Can I fix this without uninstalling terminator? |
Sure, using |
Although that will possibly make other things use gnome-terminal in preference to terminator, not just geany. |
True; but if the wrapper doesn't really work as expected it's likely to also break other things. Also, it's generally possible to select the desktop's preferred terminal emulator separately, which can stay the same (with likely the same kind of issues if it's used for anything but simply spwaning the terminal itself) |
Thanks, it is now working (almost) entirely as expected! I am having a different problem now, related to the coding. I checked the document coding option, it is set to UTF8, which I believe is regular. However, when running this little script, I get the following message:
Should I close this issue and open a new one? Thanks for being so helpful! |
Yes, open a new one, the terminal emulator thing is likely to reoccur, so we want this to refer to. |
that's a Python question now :) # -*- coding: utf-8 -*- just below your shebang line ( Note that Python3's (current version of Python) default is UTF-8, so if you used it instead of Python2 it'd work without out of the box ;) |
Thanks, elextr and b4n! Just a final remark regarding the coding issue. Amidst my confused troubleshooting, I changed the execute commands to python, rather than python3. Reverting this fixed it! Thanks again 👍 |
I just installed geany, tried both 1.23 and 1.27. Saved a script as test.py, when I press execute, the 3 gears icon briefly changes to a red cross icon and then goes back to 3 gears. No output anywhere.
The version number of GTK+ is 2.24.23
Doing this in Ubuntu 64bit 14.04.
The script is a simple Hello World.
The text was updated successfully, but these errors were encountered: