Closed
Description
Swift version
Swift version 6.0.2 (swift-6.0.2-RELEASE)
Platform
Windows 11
Editor
vscode-swift extension
Description
swiftlang/vscode-swift#1226 was reported to vscode-swift repo. I am able to reproduce it on Windows with both the ARM64 and x86_64 toolchains downloaded off swift.org. Finding references and go to definition requests are working, the vscode-swift extension just isn't getting diagnostics.
Steps to Reproduce
- Open a project in the vscode-swift extension
- Write some bad code that should produce a compiler error:
let f =1
f = 2
- Notice that no diagnostics show
- Run a vscode build task and see that the
swiftc
diagnostics show up - Fix the error, notice it doesn't get cleared
Logging
attached log for simple project created with "swift init"
sourcekit-lsp diagnostics.zip