atom-script: Got error when I try to run js code
I just installed the script plugin today on the latest atom editor 0.69.
I have a file named test.js
, I defined a test function like it
function test() {
console.log('hello world');
}
test();
Then I hit cmd-i, I got an error
execvp(): No such file or directory
Tried in the readme shell script ls example, it did not work for me at all. I am using the script@2.0.2 , is there any special setup to use this plugin? thanks
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 52 (17 by maintainers)
W10 +1
It seems to work randomly. Even if I run it from the command line.
You’ve truly made me curious. You can also modify your init script:
Hi. Let us consider this proposal. How about creating a BAT file?..
The command prompt does open,but does not remain open.
Helpful?
Alright, updated env suggestion in 655ccfb35e1e4d4c4b15267c8bae9b7d9be8256e.
On to
launchctl
. I covered this a bit in #5, but issues/PRs clearly aren’t the documentation.I don’t have Alfred, so if this doesn’t work let me know.
What you’ll want to do is setup
launchctl
to use the PATHing from your normal setup. This can either be done programmatically:or in
~/.launchd.conf
:Someone on StackOverflow has a ridiculous solution for changing launchctl as your export vars in bash.
Let me know what you think of these, and feel free to update the README. I’m always happy to review and merge PRs!
Whoa, wait. I just re-read what you said about the shell script example. Bash doesn’t work either?