Skip to content

SourceKit-LSP crashes when selecting non-Xcode toolchain on macOS #1521

@twof

Description

@twof

Swift version

swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-22-a

Platform

macOS 15.0 beta

Editor

VS Code

Does the issue reproduce with Swift 6?

Yes

Description

I get an error

EverythingButTheBagelCore/Package.swift: {"code":null,"killed":false,"signal":"SIGSEGV","cmd":"/Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-06-22-a.xctoolchain/usr/bin/swift package describe --type json"}

EverythingButTheBagelCore is the name of the package.

Steps to Reproduce

Install noted toolchain, switch to it in VS Code selecting workspace

Logging

% sourcekit-lsp diagnose
sourcekit-lsp diagnose collects information that helps the developers of sourcekit-lsp diagnose and fix issues.
This information contains:
- Crash logs from SourceKit
- Log messages emitted by SourceKit
- Versions of Swift installed on your system
- If possible, a minimized project that caused SourceKit to crash
- If possible, a minimized project that caused the Swift compiler to crash

All information is collected locally.

                                          Diagnosing sourcekit-lsp issues
 0% [-------------------------------------------------------------------------------------------------]
Collecting log messageszsh: segmentation fault  sourcekit-lsp diagnose

It does not appear that anything was generated. Where should it be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions