artemave / workspace-diagnostics.nvim

Populate diagnostics for _all_ projects files, not just opened ones.

Home Page:https://artem.rocks/posts/workspace_diagnostics_nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't find errors / react on changes except oppened buffers

miroshQa opened this issue · comments

Description

I recorded video of my issue:
https://drive.google.com/drive/folders/1BT9gN4lYgKCO2lsD3Q8er95HfUa1F_N2

Expected behavior

All errors after changing the file in the workspace should be found without restarting the nvim, or at least after restarting the Lsp

(I use autowriteall)

I have no idea what's going on in that video. Could you please describe the problem in writing?

look at this example
Снимок экрана 2024-04-26 002257

I have a project with these three files
main.cpp
other.cpp
other.hpp

I declare function in other.hpp and implement in other.cpp
And then I include other.hpp in main.cpp and use this function there
I can run nvim by openning other.hpp and delete declaration of this function
Now I expect what when I open diagnostics through a telescope being in other.hpp I will see an error in main.cpp. But this is not happening

Am I demanding something too much?

I forgot to mention that I will see the error when entering the diagnostics through the telescope, but only on condition that I first opened main.cpp , then I will go to other.hpp and comment/delete the definition

Oh, after I made git init and added the project files to it, everything works as I wanted from the very beginning. (Also i need save changes in file manually because it doesn’t react on autowriteall option for some reason (The fact that I was relying on autowriteall was a problem in the first video and In my previous comment, the problem was that I didn't have git in the project)).

It was necessary to take a closer look at how it works in your post at README.

Thanks for the great plugin!