-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not lint anymore #30
Comments
Did you update AtomLinter as well? |
atom linter 1.2.4 |
It's probably because of the two new options, which I have both disabled. |
If so you still have the style option fallback, what can happen is if you have |
I haven't ticked My config looks like "linter-js-standard": {} package.json: "devDependencies": {
"faucet": "0.0.1",
"groc": "0.6.3",
"istanbul": "0.3.0",
"jasmine": "2.2.1",
"node-inspector": "0.10.1",
"nodemon": "1.3.2",
"standard": "*",
"supertest": "0.13.0",
"tape": "^4.0.0"
} |
This is probably as puzzling to you as it is to me 😕 |
Hmm awkward, let me try to replicate. |
Ah I get a rejected promise:
|
The rejection does not happen with other linters. |
this line ends up being called with this string as "standard: Use JavaScript Standard Style (https://github.com/feross/standard)
" Thus |
What the hell?? 😧 |
Could you insert this console.log(occurences) on this line and give me the output |
Get's never called. :( |
Which makes sense, since this promise is rejected, so |
Ok standard outputs If you pass no options it assumes 'stdout' and will reject if there is anything in stderr (which there is: This is a pretty fucked up situation, there is simply no way to reach line 30 😕 steelbrain/atom-linter@40d9f0e is the offending commit. |
As a precaution I'd always use fixed versions in the package.json. |
Couldn't we redirect stderr to stdout? |
Try the following fix in this line to see if it works for you: args.push('2>&1') |
In the upcoming release that promise will have a |
This does nothing, I doubt it's passed to a shell as such, the process is probably started with a syscall, which would mean the argument is just passed to through to |
I made a PR to fix this for now. |
Ehehe 😄 Thank you @despairblue |
Published a patch, could you see if that works for you? |
👍 works. @steelbrain is also implementing an option to disable the rejection when the linter writes to stderr. I'll issue another PR when it's published. |
Cool! Many thanks 👍 |
atom-linter released 3.0.0 with it came the new option you were talking about |
Happens when updating to version 2.0.0 or later
1.2.0 still lints.
The text was updated successfully, but these errors were encountered: