Skip to content

sourcekitd crashes silently #1201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
award999 opened this issue Nov 6, 2024 · 0 comments
Closed

sourcekitd crashes silently #1201

award999 opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working sourcekit-lsp SourceKit-LSP issue wontfix This will not be worked on

Comments

@award999
Copy link
Contributor

award999 commented Nov 6, 2024

Describe the bug
When there is an SDK mismatch, sourcekitd silently fails

To Reproduce
Steps to reproduce the behavior:

  1. Have a tasks.json entry that points to an SDK from one Xcode installation
  2. Build that task
  3. Configure the SDK in settings to points to an SDK from a different Xcode installation
  4. Reload the window
  5. Next time sourcekit-lsp starts, no IntelliSense is available
  6. Open the output channel and should see an error like this
2024-11-05 13:32:44.195827-0500 0x47bb1    Error       0x0                  29814  0    sourcekit-lsp: [org.swift.sourcekit-lsp:request-26] Received sourcekitd response:
error response (Request Failed): Loading the standard library failed

Expected behavior
Gracefully fails and notifies the user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sourcekit-lsp SourceKit-LSP issue wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant