-
Notifications
You must be signed in to change notification settings - Fork 84
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
Invalid syntax - no visual indication of error #187
Comments
It should be highlighted with something like Try setting a custom highlighting for highlight lscDiagnosticError ctermbg=Red See You can also use
Using the sign column is a feature request at #165. You can 👍 that issue if you'd like it to get implemented. I haven't had time to make it a priority so far. |
Hey thanks for reply
It does not :( |
It depends on the server, if the server is slow to reply to an autocomplete request we can't do much about it on the client.
Hmm, I wonder if it's due to something like putting the error after the end of the line, or having a zero width range or something. When this is happening and there are diagnostics you know you're not seeing could you try running |
code
I understand but nonetheless it is not asynchronous, I do not see an option to change timeout time. I have to dig into lsc config more I think. Thank you for reply |
I'm 99% sure that this is indeed the case. The pycodestyle message range starts beyond the end of file:
(line numbers are zero based, therefore the last line number is 9). The pyflakes message range starts after the opening brace in the
That would make this issue mostly a duplicate of #157 |
You're correct - when used as I can certainly add an option for the timeout - would need to replace the hardcoded number here: vim-lsc/autoload/lsc/complete.vim Line 157 in c491351
Thanks for the confirmation! Will dedup with #157 after I fix the other issue. |
@drozdowsky - I added a Closing for now since the remaining issue can be tracked at #157 |
Hi,
I think screenshot will explain the problem the best:
As you can see last line has invalid syntax but there is no visual indication in buffer to show me that. I can see that there is a problem only when I have cursor on the same line. I use pyls.
Also it would be cool if I could choose if I want to "color the line" if there is error OR only show e.g. "E>" at the begining of the line (as many vim linters do).
Is it possible to bind completion to another key? I use
<C-X><C-P>
to complete words using tags (it is faster).@edit I use VIM 8 AND visual indication works most of the time, it is just an example where it does not work (probably because the character is missing where with misspelling it would prob. work)
Thank you
Best Regards,
H.
The text was updated successfully, but these errors were encountered: