Skip to content

sourcekitd silently fails #1812

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 8, 2024 · 4 comments · Fixed by #1886
Closed

sourcekitd silently fails #1812

award999 opened this issue Nov 8, 2024 · 4 comments · Fixed by #1886
Labels
bug Something isn't working

Comments

@award999
Copy link

award999 commented Nov 8, 2024

Swift version

swiftlang-6.0.3.1.4

Platform

macOS 15

Editor

VS Code

Description

When there is an SDK mismatch, sourcekitd silently fails

Steps to Reproduce

  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

Logging

No response

@award999 award999 added the bug Something isn't working label Nov 8, 2024
@award999
Copy link
Author

award999 commented Nov 8, 2024

observed as swiftlang/vscode-swift#1201 against vscode-swift

@ahoppen
Copy link
Member

ahoppen commented Nov 8, 2024

Synced to Apple’s issue tracker as rdar://139514623

@ahoppen
Copy link
Member

ahoppen commented Nov 8, 2024

To be clear, SourceKit does not crash here, it just fails. But the end result looks similar to the user.

@award999
Copy link
Author

@ahoppen ya thought I saw a crash in the log but you're right

@award999 award999 changed the title sourcekitd crashes silently sourcekitd silently fails Nov 11, 2024
ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this issue Dec 13, 2024
…s a diagnostic on the source file

The missing diagnostics might be due to an error that the user can fix. Report it to them.

Fixes swiftlang#1812
rdar://139514623
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants