code-google-com / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

[Launch] Support stdio #156

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What Plugin does this relate to? What version of the Plugin?
Launch, 1.8

What steps will reproduce the problem?
1.Write a piece of Python code containing 'input()'.
2.Run it from the Launch plugin.

What is the expected output? What do you see instead?
What I see: "EOFError: EOF when reading a line>>> Exit Code: 1"

What version of Editra are you using? On what operating system?
v0.5.99 on Windows XP SP2

Original issue reported on code.google.com by gyk....@gmail.com on 29 Dec 2010 at 3:30

GoogleCodeExporter commented 9 years ago
Hi,

Launch is intended for viewing the output of processes only. It does not 
currently handle support for any kind of input from stdio.

Setting as feature request and changing title to match

Original comment by CodyPrec...@gmail.com on 29 Dec 2010 at 3:46

GoogleCodeExporter commented 9 years ago
Hi,
can I configure Editra to get simple "Run script" feature like the one provided 
by Notepad++(just execute commands in console without redirecting i/o)?

Original comment by gyk....@gmail.com on 29 Dec 2010 at 4:19

GoogleCodeExporter commented 9 years ago
Hi,

You should be able to create a batch script that does something like

start python %1

And then configure that script as your launch command in the Launch plugin 
configuration. That way it should just start a new shell and run the command 
directly instead of redirecting through the launch plugins output buffer.

Original comment by CodyPrec...@gmail.com on 29 Dec 2010 at 5:28

GoogleCodeExporter commented 9 years ago
Thanks.

"start python %1" works well with code containing 'raw_input()',but still 
raises "EOF when reading a line" error when handling input() statement.

Original comment by gyk....@gmail.com on 1 Jan 2011 at 2:54