Latest 1.1.1
release seems to no longer recognize .jshintrc
in project
#140
Comments
Super-weird, the only update in this release was that it uses atom as the nodejs runtime instead of the system installed one, can you try to hard-code the jshint path in settings and see if it fixes it for you? |
@steelbrain How can I hard code the |
Dynamic for each project? I don't understand. It's actually the same IMO |
@steelbrain So, instead of having one master
Make sense? |
I know what the problem is. Gonna fix it soon! |
Also experiencing this. |
For those having this problem, install version 1.1.0: apm uninstall linter-jshint && apm install linter-jshint@1.1.0 And then if you have any problem with the jshint/node executable (when linting), add this to your atom init file: process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":") Workaround for now or just revert back to 1.0. |
@peduxe Thanks for the tip. Reverting back and adding the the environment path to my init file worked great for me. |
Thanks @peduxe 👏 |
Just wanted to raise this issue as well, as suddenly my node files were throwing jshint errors on undefined |
Yep, same here! Looks like it's already being tackled—thanks! :-) |
Same issue here, until the update, |
I have tracked it down to this line return helpers.execNode(executablePath, parameters, {stdin: text}).then (output) -> if you change it to return helpers.exec(executablePath, parameters, {stdin: text}).then (output) -> it works, which means that detection is working via global nodejs and not working via electron. |
The error seems to be in |
@steelbrain I'm not sure that modifying the environment in the atom init file is the right solution here. For one thing, it'll break the detection logic in https://atom.io/packages/environment should we decide to integrate it. |
@joefitzgerald but it should still work this way, for users who don't have nodejs installed at all. |
I'm saying we shouldn't be instructing people to add |
@joefitzgerald for |
Consider consuming the service provided by environment, and using that for the environment that you pass to execNode. If you don't allow the caller of execNode to specify the environment then you need to make that configurable. |
But yes, I understand that jshint is bundled and the embedded node that Atom uses should suffice. My comments simply apply to ensure use of global node (if required) will work. |
We don't really need node, anywhere in this project 😅 |
The latest
1.1.1
release (I updated in Atom today) seems to no longer recognize the.jshintrc
settings in my projects: I am gettting linter errors/warnings that don't line up with my.jshintrc
settings (see screenshot below). It has been working for me for months (no code changes) until this last update.The text was updated successfully, but these errors were encountered: