Skip to content

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

@wojciech-kulik

Description

@wojciech-kulik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions