You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To automatically show diagnostics when I save a file, I added the following to my .vimrc:
autocmdBufWritePost* LspDocumentDiagnostics
However, using pyls, if I add something like the following to a file, and then write with :w:
dummy_string='Hello there!'
I get the diagnostic message EOL while scanning string literal. When I write again a second later, it gives the correct diagnostics. It seems like lsp is using diagnostics from a partially-updated file?
I may just be using vim-lsp wrong, in which case a suggestion how to do this properly would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
To automatically show diagnostics when I save a file, I added the following to my
.vimrc
:However, using
pyls
, if I add something like the following to a file, and then write with:w
:I get the diagnostic message
EOL while scanning string literal
. When I write again a second later, it gives the correct diagnostics. It seems like lsp is using diagnostics from a partially-updated file?I may just be using
vim-lsp
wrong, in which case a suggestion how to do this properly would be appreciated. Thanks!The text was updated successfully, but these errors were encountered: