Skip to content
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

Smarter debouncing/throttling #182

Closed
dmnd opened this issue Aug 20, 2014 · 1 comment
Closed

Smarter debouncing/throttling #182

dmnd opened this issue Aug 20, 2014 · 1 comment

Comments

@dmnd
Copy link

dmnd commented Aug 20, 2014

We seem to miss the final keystroke sometimes. Type a lot of stuff, then stop. Sometimes the linter state seems to not notice the final keystrokes. Probably because they get throttled. Throttling is great, but the trailing edge should always execute even if it would initially be throttled.

@kachkaev
Copy link

kachkaev commented Jul 6, 2016

I'm still experiencing this. Moreover, this issues sometimes results errors as in #1188.

MWE:
anim

Here I paste a comment followed by blank lines a few times and then quickly ctrl+s, ctrl+a and ctrl+v. At one point the result of linting de-syncs from what's in the editor and a nasty exception shows up. This is because atom linter tries to show an error on the last line that no longer exists.

The exception does not show up in 100% of cases, but in real files with more lines of code it is more likely as re-linting naturally becomes a bit slower.

This exception is the worst-case scenario and is still rather rare. Often you just get something underlined in the wrong place after a few quick changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants