hrsh7th / vim-lamp

💡Language Server Protocol client for Vim.
MIT License
32 stars 0 forks source link

Wrong diagnostics on file reopening #28

Closed Shatur closed 4 years ago

Shatur commented 4 years ago

For some reason if I reopen file diagnostics will think that this is another file.

Steps to reproduce

  1. Open any class header, for example keyboarddaemon.h
  2. Open class implementation and wait for diagnostics.
  3. Close and open the same source file again.

Actual behavior It says that all function was already defined: изображение

Expected behavior Diagnostics still the same.

Shatur commented 4 years ago

Video: asciicast

hrsh7th commented 4 years ago

Thank you for reporting. Fixed it.

Shatur commented 4 years ago

Now works, thanks!

Shatur commented 4 years ago

After this change sometimes after :bd it I have an error message that unable to close the latest window. Currently I can't provide steps to reproduce because it happened randomly.

hrsh7th commented 4 years ago

Hm... Could you provide full error msg?

I don't use bdelete expricitly.

Shatur commented 4 years ago

It prints E444: Cannot close last window. twice.

Shatur commented 4 years ago

After this change sometimes after :bd it I have an error message that unable to close the latest window. Currently I can't provide steps to reproduce because it happened randomly.

Can't reproduce anymore, sorry for bothering.