Hello,
First, congratulations to the developers for this really nice software, although it is not enough known... Unfortunately !
I work with Windows XP SP3. I write python programs.
1) When executing a python program, I'd like to redirect the output to a Geany window rather than to cmd.exe, which is really ugly and destroys the pleasure to work with Geany... Yes, yes, that's true...
2) Additionally, with cmd.exe, when there is an error and a traceback, there is no hyperlink to press to go directly to the error line.
Is there a way to change these behaviours ?
Thanks in advance Dominique
Am Mittwoch, den 27.05.2009, 09:55 +0000 schrieb Dominique:
Hello,
First, congratulations to the developers for this really nice software, although it is not enough known... Unfortunately !
I work with Windows XP SP3. I write python programs.
- When executing a python program, I'd like to redirect the output to a Geany
window rather than to cmd.exe, which is really ugly and destroys the pleasure to work with Geany... Yes, yes, that's true...
- Additionally, with cmd.exe, when there is an error and a traceback, there is
no hyperlink to press to go directly to the error line.
Is there a way to change these behaviours ?
I would suggest you to try out with the compile command from the build menu. This actually would compile your program with 'python -c', but also would display errors. - In the Geany compiler window at the bottom.
You also can customize this command in the menu Build->Set Includes and Arguments or by editing your ~/.config/geany/filedefs/filetypes.python.
This actually would at least solve your second problem. For the first I'm not yet sure what to do.
Best Regards, Dominic
On Wed, 27 May 2009 09:55:23 +0000 (UTC), Dominique wrote:
Hello,
First, congratulations to the developers for this really nice software, although it is not enough known... Unfortunately !
I work with Windows XP SP3. I write python programs.
- When executing a python program, I'd like to redirect the output to
a Geany window rather than to cmd.exe, which is really ugly and destroys the pleasure to work with Geany... Yes, yes, that's true...
This is possible on non-Windows systems where we have an embedded terminal emulation in Geany. Within this terminal you can run your files so no additional window is opened.
Unfortunately, this isn't available on Windows (yet [1]).
As Dominic said, use the Compile command (F8) this would put the output into the Compiler messages window. However, especially when the Python script expects anything on stdin, this will fail. But for basic testing it could work. Just try it.
[1] http://bugzilla.gnome.org/show_bug.cgi?id=369310
Regards, Enrico
Enrico Tröger <enrico.troeger@...> writes:
On Wed, 27 May 2009 09:55:23 +0000 (UTC), Dominique wrote:
Hello,
Unfortunately, this isn't available on Windows (yet [1]).
As Dominic said, use the Compile command (F8) this would put the output into the Compiler messages window. However, especially when the Python script expects anything on stdin, this will fail. But for basic testing it could work. Just try it.
[1] http://bugzilla.gnome.org/show_bug.cgi?id=369310
Regards, Enrico
Thanks Dominic and Enrico for your answers. Compile (F8) doesn't work even for a simple print !! What a pity ! I'll wait the terminal emulation work on Windows.
Thanks a lot Dominique
On Wed, 27 May 2009 18:08:52 +0000 (UTC), Dominique wrote:
Enrico Tröger <enrico.troeger@...> writes:
On Wed, 27 May 2009 09:55:23 +0000 (UTC), Dominique wrote:
Hello,
Unfortunately, this isn't available on Windows (yet [1]).
As Dominic said, use the Compile command (F8) this would put the output into the Compiler messages window. However, especially when the Python script expects anything on stdin, this will fail. But for basic testing it could work. Just try it.
[1] http://bugzilla.gnome.org/show_bug.cgi?id=369310
Regards, Enrico
Thanks Dominic and Enrico for your answers. Compile (F8) doesn't work even for a simple print !!
Did you adjust the Compile command? I just tried it on Windows with the Compile command python "%f" and it worked fine with this simple test file: http://uvena.de/tmp/dummy.py
it properly highlights the typo on line 6. You just need to adjust the Compile command in Build->Set Includes and Arguments.
I'll wait the terminal emulation work on Windows.
I wouln't expect this happening anytime soon :(.
Regards, Enrico
Enrico Tröger <enrico.troeger@...> writes:
Did you adjust the Compile command? I just tried it on Windows with the Compile command python "%f" and it worked fine with this simple test file: http://uvena.de/tmp/dummy.py
it properly highlights the typo on line 6. You just need to adjust the Compile command in Build->Set Includes and Arguments.
I'll wait the terminal emulation work on Windows.
I wouln't expect this happening anytime soon :(.
Regards, Enrico
Enrico,
Ok you're right. I didn't adjust the compile options. Done now. It works but sometimes, it kills the program without warning... So I'll wait... and I changed the ugly look of this cmd ;)
Thanks a lot and congratulations for this software Bye Dominique