apple / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Diagnostics are not refreshed after build when a new file is added

wojciech-kulik opened this issue · comments

Steps to reproduce:

  1. Add a new file with some class.
  2. Reference this class within the same target.
  3. Build the project using xcodebuild command.

Actual result:
The build succeeds, LSP doesn't print any errors in the log, LSP still shows issues:
image

Expected result:
LSP should be automatically refreshed and errors should disappear.

Workaround:
Restart LSP (in Neovim :LspRestart).

Version:
Sourcekit-lsp provided by Xcode Version 15.2 (15C500b)

Related issue:
wojciech-kulik/xcodebuild.nvim#56

Notes:
I reproduced it both in Neovim and Visual Studio Code, so I guess it's not the LSP client's fault.

Tracked in Apple’s issue tracker as rdar://123971779