foreshadow / atom-python-run

A simple atom package. Press one key to run your python code in atom.
https://atom.io/packages/atom-python-run
MIT License
44 stars 32 forks source link

Terminal instantly exits when running a file #115

Open johnharmon opened 5 years ago

johnharmon commented 5 years ago

I'm trying to run atom from a flash drive and have everything installed and working except for this package. Whenever I try to run a simple "hello world" file the terminal opens and instantly exits before I can even read anything. I've manually run the file from the cmd line and it works fine. This is the output from the console:

f5 pressed C:\Users\John.Harmon.atom\packages\atom-python-run\lib\terminal.js:221 platform: win32 shell: C:\Windows\system32\cmd.exe option: /c,start call: python script: C:\Users\John.Harmon.atom\packages\atom-python-run\lib..\cp\main.py command: tell app "Terminal" to do script " python E:\python_scripts\first.py" C:\Users\John.Harmon.atom\packages\atom-python-run\lib\terminal.js:232 pause: true pipeFile: true pipePath: test.txt log: true args: python,E:\python_scripts\first.py options: { "cwd": "E:\python_scripts", "detached": true } C:\Users\John.Harmon.atom\packages\atom-python-run\lib\terminal.js:250 child process exited with code 0

foreshadow commented 5 years ago

You seemed to have enabled Pipe to file option. Check the file test.txt, or set that to empty.