-
Notifications
You must be signed in to change notification settings - Fork 3
cannot spawn puppet-lint ENOENT #17
Comments
resolved this by setting executablePath to puppet-lint.bat, so for whatever reason in either the new package or maybe something about one of my later atom updates causing some issue that now it needs to use the batch file wrapper which calls the shell script explicitly with ruby.exe: @echo OFF |
I'm also getting this error on Mac OS X with Atom version: 1.0.11 |
I am getting same error on windows 7 with atom version: 1.0.11 'puppet-lint' could not be spawned. Is it installed and on your path? Uncaught Error: spawn puppet-lint ENOENT |
I added the puppet-lint.bat executable path to config.cson, it doesn't show the error anymore. |
Another victim of this here. The issue seems to be related (or at least very similar) to this issue in node where spawn ignores the PATHEXT variable and therefore doesn't invoke puppet-lint.bat: |
Until a fix is found, downgrading the packages has got me working again:
|
I tried to reproduce this bug on my linux and I couldn't. I'll try to get a windows box to reproduce it this weekend. |
@rafitadiaz It's due to the fact that the spawn() call doesn't invoke scripts on Windows - https://www.npmjs.com/package/win-spawn is a shim for this exact issue. |
Any progress on this? Running OSX and bitten by this bug. |
@janorn me too, after upgrading OS X to 10.11.1 and Atom to 1.1.0, with all plugins updated including Linter. Puppet-Lint is installed and accessible: |
@janorn, @dieterdemeyer, all: see @mafredri's work-around to explicitly set your puppet-lint executable path in the plugin settings. This works for me, but the plugin really should be fixed: this path is certainly in my $PATH. |
This does not work for me. I have already tried it. Uncaught BufferedProcessError: Failed to spawn command
|
Wiping atom cson config file. And pasting in the suggested config from the wiki made it start working again. |
There are 2 issues here.
|
@paul-krohn it sure is in my PATH. All of my rvm installed gems are in my path.
|
I have the same issue in OSX where puppet-lint is installed to /usr/local/bin. The workaround of hardcoding the full path to the executable works fine. For reference: gem installation: /etc/paths: path: @steelbrain had a similar issue in steelbrain/linter#726 |
@adam-moss that's just a part of running on OS X and Apple's "interesting" choice of giving applications launched from the GUI an empty environment. Workarounds for that are planned in Atom itself, and over in steelbrain/atom-linter#62. I'm going to mark this as closed since from what I can tell every case reported has been a configuration issue and not an issue with If anyone is having an issue running it that doesn't fall into one of these categories please comment further or better yet file a new issue 😉.
|
since going to 0.5.0 the package is unable to call puppet-lint:
activate linter-erb
index.js:46 Window load time: 3113ms
events.js:141 Uncaught Error: spawn c:\tools\ruby200\bin\puppet-lint ENOENT
events.js:141 Uncaught Error: spawn c:\tools\ruby200\bin\puppet-lint ENOENT
2events.js:141 Uncaught Error: spawn puppet-lint ENOENT
this is windows 7, puppet-lint is in windows path, works fine from powershell, worked fine in previous versions of the package. I did have the path to puppet-lint explicitly configured in config.cson but have since removed that - doesn't seem to matter either way. clearly it's finding it, it just cannot execute it anymore, any ideas?
The text was updated successfully, but these errors were encountered: