Closed GoogleCodeExporter closed 8 years ago
Hi,
Editra simply passes the command you give it off to the shell and lets it run.
There
is no way to tell if you created an invalid command or not nor what the
definition of
invalid would be. If I create a command that is for some non existent program in
launch I see the following output when I run it.
>>> fakecmd ed_main.py
/bin/sh: fakecmd: command not found
>>> Exit Code: 127
Which is the text returned by the shell on my system (OSX 10.5).
What operating system are you on, version of python, ect...?
Original comment by CodyPrec...@gmail.com
on 14 Nov 2009 at 2:01
Hi,
I'm running Windows with Python 2.6.4. If I click 'Run' to execute some made up
command, then I get no indication that the command isn't running (the 'Run'
button
turns into 'Abort'). A message box would be good in this case.
I don't know how Editra manages this, but I think subprocess.Popen() throws an
exception if a command can't run (can't remember for sure), if that's an option.
Original comment by rogerbr...@gmail.com
on 14 Nov 2009 at 2:18
Hi,
Thanks, I see the issue on Windows and POpen does indeed throw an exception in
this case.
Fix checked in to report the error to the Launch output buffer when a command
fails
to run.
Original comment by CodyPrec...@gmail.com
on 25 Nov 2009 at 4:13
Great, I'll try it out in the next release.
There's another related issue that may have already fixed: when you click the
'abort'
button, it immediately switches to 'run', which you can then click before the
previously running program has time to quit. The net result is sometimes the
run/abort buttons get out of sync with what is actually happening.
Regards
Original comment by rogerbr...@gmail.com
on 25 Nov 2009 at 7:21
Original issue reported on code.google.com by
rogerbr...@gmail.com
on 13 Nov 2009 at 8:37