Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
195 stars 48 forks source link

Non-existing reserved words, variables and functions are not flagged as errors. #371

Open Cyrodwd opened 1 month ago

Cyrodwd commented 1 month ago

Hello, I have detected a problem or detail that makes me late to find out about certain errors: I'm not sure if it's my computer, but I tried it on two computers I have with different operating systems (Windows and Linux), and it's exactly the same. When I develop with VSCode and Dlang (with the Dlang extension), I have sometimes had errors when compiling because I mistype a variable, function, reserved word, and the LSP doesn't mark it as an error and I have to notice it when compiling. I tried to see if the same thing happened with typing non-existent functions and reserved keywords, and indeed, it doesn't mark them as errors.

WebFreak001 commented 1 month ago

which serve-d version are you using?

Try upgrading to serve-d nightly by setting the d.servedReleaseChannel setting in vscode (Ctrl-, for User Settings) to nightly - afterwards, reload the window with Ctrl-Shift-P -> Reload Window and let it automatically download the update.