Closed Trudko closed 7 years ago
This could be an issue with node. However I will have a look.
This might be an issue with Windows support which is largely untested. It's something we'd like to support but the options right now are pretty bleak (i.e. pty support)
Yea. I can't really do much to test this part atm, however this stack trace looks suspiciously similar to one you would get if you called ChildProcess.spawn with something that can't be executed. My best guess is that there might not be a SHELL environment variable on Windows.
@Trudko could you please run:
SET SHELL
in cmd and post the output? (if there is any)
SHELL variable isn't available.
No updates on this?
This would be an awesome feature, please feel free to submit a PR. Otherwise, we will slowly work towards this goal. Unfortunately most of us have real jobs, families or education to attend to :D
Does anybody know if this issue has been resolved? I'm trying to run a python script on widows and I'm getting the following error:
TypeError: Bad argument at TypeError (native) at ChildProcess.spawn (internal/child_process.js:274:26) at Object.exports.spawn (child_process.js:351:9)
Not sure if it's the same problem, or similar.
@darkgrunge what version of script-runner are you using? This was originally an issue with environment extraction on Windows. From v1.8.1 we moved this functionality over to a different package called shell-environment which uses process.env when a user shell is not available and script-runner now relies on that.
We just released 2.0.0 which has no specific platform code in it. In theory, it should work on windows.. can anyone try it out?
If this is still an issue let me know.
Hi, I've tried your package by running JS Example, but I got an error.
Atom Version: 0.182.0 System: Microsoft Windows 7 Professional Thrown From: script-runner package, v1.7.0
Stack Trace
Uncaught TypeError: Bad argument
Commands
Config
Installed Packages