-
Notifications
You must be signed in to change notification settings - Fork 15
Triggering diagnostics in a new file not on disk spams error messages #28
Comments
Should be fixed by the latest commit. Please update and check:) |
This works, but now I don't receive diagnostic messages until the file is written. There is no virtual text, and using Is this something that needs to be fixed in neovim itself? |
Hmm looks like an issue on my side since I can't reproduce without |
Could you share the steps you use to try to reproduce? Then I can try too. |
I think I found the cause. Initially my fix was disabling diagnostic when buffer doesn't exist in disk(which leads to the current result). But then I found out the default behavior does have diagnostic even when buffer doesn't exit... so I went to compare my custom callback with neovim's. I found out the cause is the built-in |
My latest commit fix this by disabling |
The line in my original error message in |
Hmm maybe that means I should create my own |
Sorry for the wait..but the latest commit should fix this issue. |
Hi,
This bug might be in neovim, however I can't get it reproduced without your plugin as I'm failing to navigate the undocumented
vim.api.lsp
calls. If you can figure it out I'd be very grateful!Test steps I used:
sumneko_lsp
server is set up and working:e mytestfile.lua
local foo
(should trigger a variable not used Hint)The messages bar will then show:
Error executing vim.schedule lua callback: /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1018: bad argument #1 to 'lines' (/home/gecko/.config/nvim/mytestfile.lua: No such file or directory)
Unfortunately this error is very aggressive and can make editing, or even controlling nvim, impossible.
Using up to date nightly nvim and this repo.
The text was updated successfully, but these errors were encountered: