-
Notifications
You must be signed in to change notification settings - Fork 141
linter-eslint is very loud when stuff is not installed #387
Comments
Personally I feel it should be left as is, if it is throwing an error then something is so wrong that it is unable to handle the situation. The only way it would be trying (and apparently failing) to load a local Thoughts @AtomLinter/linter-eslint? |
That's true, but I think it can communicate that something is wrong with a single error notification, and repeatedly spamming the notifications is never a good UX. |
Definately agree to that, I would recommend we do this in the core linter, so the feature is available to all linters |
I actually think this is a reasonable enhancement. There are legitimate circumstances where the constant popup of the same error is just noise. |
This should be solved upstream in atom/notifications#88 as it's an issue with many packages (i. e. linter-rubocop spams you with errors after adding to the Gemfile before you've had a chance to run bundle install). |
I'd prefer it if the errors did not throw notifications at all, but rather showed in the status line (instead of Sometimes I just want to make a quick edit in a repo where I haven't installed anything, but the linter errors are so loud that I end up using TextEdit. An improperly-configured linter isn't important enough that it ought to block my view of the text with brightly-colored notifications. |
Given that atom/notifications#88 has been open for 16 months and activity on that project has been very low, are we open to implementing @r24y's proposal? If so, I can work up a PR. |
How about we transform it into a fake Linter message instead, just like has been done for invalid point errors in #761? |
@Arcanemagus that sounds perfect! That's probably the easiest way to implement it, and would be consistent across all linter UI packages. |
Well, not currently, but that's the eventual idea 😉. So far this is an experiment in |
Actually it's a problem for people developing I wonder how you deal with this @IanVS ? We also added |
@alberto, I haven't done a ton of work on ESLint lately, but when I did/do, I |
Sometimes, I dive into a package in That is probably an edge-case, but on second though I wonder if |
@dominicbarnes Linter itself controls whether VCS ignored files are linted, and it defaults to not, maybe you re-enabled them at some point? |
Thanks @IanVS that probably helps, although it still worries me we cause this to contributors. It would be great if something could be done. Anyway, this is a great plugin, it made me decide to switch to Atom. Thanks ❤️ |
@dominicbarnes Here is something that vaguely resembles a workaround, and should at least make this slightly less annoying for you: Whenever error messages are displayed, the |
Translate all errors coming from ESLint into a lint message instead of throwing them out to be caught by Linter's generic error catching mechanism. This allows us to preent them in a much cleaner manner and gives the user immediate feedback on what is going wrong. Fixes #387.
Translate all errors coming from ESLint into a lint message instead of throwing them out to be caught by Linter's generic error catching mechanism. This allows us to present them in a much cleaner manner and gives the user immediate feedback on what is going wrong. Fixes #387.
Translate all errors coming from ESLint into a lint message instead of throwing them out to be caught by Linter's generic error catching mechanism. This allows us to present them in a much cleaner manner and gives the user immediate feedback on what is going wrong. Fixes #387.
I think you guys are gonna be really happy with this #1015 merge. Thanks @Arcanemagus |
Currently, if linter-eslint tries to run, but stuff is missing from npm, it complains very loudly and repeatedly as I try to navigate through the project. It is really obstructive, and it quickly gets to the point where I either have to disable linter-eslint (which is a pain that I sometimes forget to undo) or I have to wait on
npm install
. (sometimes it just takes longer than I want)One idea I have: if the exact same error message comes up repeatedly, it would only be sent as a notification one time. This could be accomplished by using
err.message
as a key and setting a timeout of 5 minutes or something before that message will be allowed to be shown again. (with the timeout length configurable)To be clear, this is definitely a nit-pick on my part, especially since the solution is as simple as running
npm install
, but I think limiting how often these messages show up would be helpful.The text was updated successfully, but these errors were encountered: