Skip to content

SourceKit-LSP not publishing diagnostics on Windows #1855

Closed
@award999

Description

@award999

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

  1. Open a project in the vscode-swift extension
  2. Write some bad code that should produce a compiler error:
let f =1
f = 2
  1. Notice that no diagnostics show
  2. Run a vscode build task and see that the swiftc diagnostics show up
  3. Fix the error, notice it doesn't get cleared

Logging

attached log for simple project created with "swift init"
sourcekit-lsp diagnostics.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsWindows platform supportbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions