You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error is really common because linters aren't always on a user's system path. Furthermore Atom doesn't even pick up the system path until #150 is fixed.
Right now when someone sees this error, it's not obvious that it comes from linter. Once they work that out, they have to realize that it means something is wrong with their path. The next step is to configure the path for a linter etc.
We should catch the spawn ENOENT message and instead display something like this:
Package linter-foo tried to run foo but the executable was not found. You can fix this in one of the following ways:
If foo is not on your path, configure the full executable path in linter-foo settings.
Try installing GIT and allowing the software to add GIT to the Environment Variable Path. This solved the problem of the ENOENT error during the package installation of Linter for ATOM on Windows 7. This solution was described here: #114
Thanks @thumbpiano! That looks like a different class of error, though: if I understand correctly, it prevents installation of linter on Windows. So it wouldn't make sense to have that solution in the message I describe above.
The error I'm referring to above happens not during installation but instead when a file is being linted. Let's keep discussion of the installation issue to #114.
This error is really common because linters aren't always on a user's system path. Furthermore Atom doesn't even pick up the system path until #150 is fixed.
Right now when someone sees this error, it's not obvious that it comes from linter. Once they work that out, they have to realize that it means something is wrong with their path. The next step is to configure the path for a linter etc.
We should catch the
spawn ENOENT
message and instead display something like this:See also AtomLinter/linter-rubocop#11
The text was updated successfully, but these errors were encountered: