EnderMega
EnderMega

Reputation: 343

LSP for c/c++ on Windows only works when I have Visual Studio installed

On Windows, my lsp doesnt work if I dont have visual studio installed. I used to only have a hdd and befor trying nvim I was using Visual Studio (the purple one) for c/c++ programming. The config worked fine, but when I tried, the same config, on my notebook running Windows it didnt work? I keept slamming my head against the table for a few hours and SOMEHOW I discovered it was because I had Visual Studio installed on my main pc. I installed Visual Studio on the notebook and the LSP worked. Now I have linux on my notebook and I use the same config; works fine. Does someone know why that happens? The path for gcc/g++/clang is set, I can compile from the terminal, and as I stated, the problem is not on the config, since THE SAME CONFIG works when Visual Studio is installed.

Just to complement, I use mason and lspconfig, gcc/g++/clang were installed via msys2.

Upvotes: 1

Views: 10

Answers (0)

Related Questions