-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
xxx took too long, syntax highlighting disabled #4838
Comments
I'm tempted to suggest it to be a configuration error to run tools on files not intended for them. Yet if assuming there actually are reasons to have such a setup, could you please consider completing the issue by explaining what you would expect the correct behaviour would be and elaborating on how to achieve a better user experience? |
Actually I also experience similar, albeit less extreme, issue when editing a file with a merge conflict -- the Overall, I would like non-blocking behaviour, that is, even if the file is 2,000 lines long, vim+extension doesn't spend excessive time annotating every line (?) or every visible line (?) with errors. ALE is meant to be asynchronous after all! I think there may be a bad interaction between annotating the code with "fake" comments and the syntax highlighter. Perhaps it's worth annotating the buffer in chunks? |
Please try add these, after |
As far as I can tell, my config has |
I've found a pathological case where vim becomes almost unusable.
The trick is to open a file that's not really a Python file, but try to syntax highlight it and annotated with pyright errors as if it were Python code.
Note that syntax highlighting alone works well enough.
Information
VIM version
Reproducing the bug
Run a virualenv with pyright installed (maybe other tools like ruff of mypy would do as well).
Grab https://gist.github.com/dimaqq/925afea05590de55abd49ab631612738
Open it in vim.
Wait.
Wait some more...
Watch the screen fill in slowly with annotations.
The text was updated successfully, but these errors were encountered: