-
Notifications
You must be signed in to change notification settings - Fork 8
Improper message on missing csslint #181
Comments
Hmmm, I'm unable to replicate as it works fine for me on that file unfortunately. Are you still seeing this? |
+1 |
@bax- Can you share a file that consistently reproduces this? |
Here is an example:
The problem is gone when I e.g. delete any of the following lines: 2 |
Hmmm, what version of |
I'm using |
Yes, but that's just a wrapper around |
I never installed |
Oh wow, I bet that's the entire problem. It's catching the "failed to find Since nobody wanted to take on maintaining this package it was moved from the fork of You are required to install CSSLint on your system to use this now. |
OK – I didn't get that / thought the information said otherwise. |
You would have to have some version of CSSLint installed in order to get anything, so either you do have it installed or those aren't coming from |
I just installed csslint (
|
I'm having exactly the same problem here.
The executable path is set to /usr/local/bin/csslint, but I get "Invalid response received from CSSLint, check your console for more details.", despite the console |
Can you place a breakpoint here in Atom's developer tools and see what output it is getting back from |
@Arcanemagus that seems to do the trick… |
I'm seeing the exact same behavior. csslint is installed (same version/output as @bax- and @SmiVan), but same error output. @Arcanemagus, breaking the main.js where you say, the output looks to legitimately be csslint output; standard filename/messages/etc. output. But copying it out of the devtools and into a text editor, it looks like its truncated — it's 8195 characters long, but truncates in the middle of the JSON. I'm happy to share it with you outside this thread (since it contains filenames and whatnot, and don't want to worry about sanitizing it for public consumption); just let me know how. |
Ah ha! It sounds like Unfortunately there is nothing that can be done about that here, since the bug is on |
@Arcanemagus So my guess is that it's here: https://github.com/CSSLint/csslint/blob/78d218d591387783c8c62579974618b69e1d92bb/src/cli/node.js#L22 yes? More or less, all the calls in csslint to process files are wrapped in a call to this... is it worth filing an issue with the project so it wouldn't be a form, but rather a fix at the source? |
The problem with moving away from You can file an issue there, but development is very slow, when it happens at all. It took almost 1.5 years to get basic JSON output merged there... |
If CSSLint returns text on `stderr`, or more likely a message is thrown for a miss-configured path to CSSLint, show this message to the user instead of attempting to go on and parse the (empty) output. Messages are shown until the user interacts with them, but are deduplicated so they are only actively shown once. Fixes #181. Fixes #189.
🎉 This issue has been resolved in version 2.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Note, the above PR only fixes the "no error shown even though it says there is an error" bug. The fact that CSSLint is calling |
I get this error displayed in the linter tooltip when linting the following CSS:
I checked the developer console, but there were no errors listed there. I ran csslint manually from the command-line on the file and received normal output (no error visible):
Any thoughts on what might be going on? Thanks! :)
The text was updated successfully, but these errors were encountered: