Skip to content

Diagnostics Cleared on :e in nvim-metals #709

Answered by ckipp01
todesking asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @todesking thanks for reporting this. Something is definitely wrong here and the behavior wasn't always this way. I'm not sure if this is something that changed on the Metals side or on the Nvim side. What is happening is when you do a :e a textDocument/didClose is sent to Metals and then a textDocument/didOpen is sent to Metals. There are then no diagnostics published. However, that sort of makes sense since the diagnostics were already published and it seems that nvim just loses them, which I wouldn't expect. I need to dig a bit to see if Metals should actually republish them here ( I don't think so ) or better understand why when you close the document Nvim seems to throw away the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ckipp01
Comment options

Answer selected by todesking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants