Congratulations with the Geany 0.13 release, I've been following the trunk for a while, and noticed the version bump the other day.
I use Geany a lot for Django based development as of lately, I love the new project manager, how it loads the last open files I had open for each project, as I re-open that project.
I also like the feature, where each project can have it's own build command, I use this for my Django projects, set it to something python manage.py runserver... etc
The thing I sometimes get however, is if I have already typed something prior into the VT terminal prior, the execute button does not work, and at the bottom of the Geany window it reads:
Could not execute the file in the VTE because it probably contains a command
I then have to manually type the python manage.py runserver in the terminal.
I was wondering, if it was possible to maybe add a new option in Geany, a tickbox in the options, something like "Force break previous commands in VTE on execute", so if you hit the execute button, and if this option is enabled, it would send a ^C signal to the VTE, regardless of what's running in it, and then always execute the program.
Would this be difficult/possible to implement?
On Fri, 08 Feb 2008 10:22:46 +1300, Rob van der Linde robvdl@gmail.com wrote:
Hi.
Sorry for the late answer.
Congratulations with the Geany 0.13 release, I've been following the
Thanks.
The thing I sometimes get however, is if I have already typed something prior into the VT terminal prior, the execute button does not work, and at the bottom of the Geany window it reads:
Could not execute the file in the VTE because it probably contains a command
This message also means that there might be something typed on the prompt which would be executed if Geany would perform the desired action (changing the path, run the current file, see below).
I then have to manually type the python manage.py runserver in the terminal.
Or just hit enter to make the VTE "clean" again. This is a security feature to avoid unwanted problems. We discussed this intensively at [1].
I don't want to add a preference to disable this feature. I'm not sure why you get this message. Do you type in the VTE when your program/script is running?
[1] http://lists.uvena.de/pipermail/geany/2007-December/002290.html
Regards, Enrico
Thanks, pressing enter, cleaning the VTE before running the program is fine, I was not aware of this.
I was getting this, because I use Geany a lot for Django development (Python web framework). Because I want my Django development work to be available on the net, I would have to start the server with ./manage.py runserver 0.0.0.0:8000 which was no good typing out all the time. So I use this command as my Geany project's execute command.
This thing is, to shut down my Django project, you have to press Ctrl+C. Even if I do absolutely nothing in the VTE after I pressed the Ctrl+C and on try clicking execute again, it will already come up with the message. Pressing enter however, to clean the VTE does fix this.
On Sat, 2008-02-16 at 10:57 +0100, Enrico Tröger wrote:
On Fri, 08 Feb 2008 10:22:46 +1300, Rob van der Linde robvdl@gmail.com wrote:
Hi.
Sorry for the late answer.
Congratulations with the Geany 0.13 release, I've been following the
Thanks.
The thing I sometimes get however, is if I have already typed something prior into the VT terminal prior, the execute button does not work, and at the bottom of the Geany window it reads:
Could not execute the file in the VTE because it probably contains a command
This message also means that there might be something typed on the prompt which would be executed if Geany would perform the desired action (changing the path, run the current file, see below).
I then have to manually type the python manage.py runserver in the terminal.
Or just hit enter to make the VTE "clean" again. This is a security feature to avoid unwanted problems. We discussed this intensively at [1].
I don't want to add a preference to disable this feature. I'm not sure why you get this message. Do you type in the VTE when your program/script is running?
[1] http://lists.uvena.de/pipermail/geany/2007-December/002290.html
Regards, Enrico
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Feb 16, 2008 6:09 PM, Rob van der Linde robvdl@gmail.com wrote:
Even if I do absolutely nothing in the VTE after I pressed the Ctrl+C and on try clicking execute again, it will already come up with the message. Pressing enter however, to clean the VTE does fix this.
I see this too, even if you just type "cat" in vte and then press Ctrl+C.
Maybe it would be safe to assume that Ctrl+C will make vte "clean" ?
(see patch)
- Jeff
On Sun, 17 Feb 2008 11:41:10 -0600, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
On Feb 16, 2008 6:09 PM, Rob van der Linde robvdl@gmail.com wrote:
Even if I do absolutely nothing in the VTE after I pressed the Ctrl+C and on try clicking execute again, it will already come up with the message. Pressing enter however, to clean the VTE does fix this.
I see this too, even if you just type "cat" in vte and then press Ctrl+C.
Maybe it would be safe to assume that Ctrl+C will make vte "clean" ?
Sure.
(see patch)
Applied, thanks Jeff.
Regards, Enrico