Skip to content

Fails to find Swift toolchain when upgrading swiftly from 1.0.1 to 1.1.0 #1923

@ettolrach

Description

@ettolrach

Describe the bug
When upgrading the swiftly installation to 1.1.0, the Swift extension no longer finds the Swift toolchain, giving an error notification saying:

Unable to automatically discover your Swift toolchain. Either install a toolchain from Swift.org or provide the path to an existing toolchain.

To Reproduce
Steps to reproduce the behavior:

  1. Install swiftly 1.1.0
  2. Either open an existing Swift project or make a new one (using swift package init) and open it using swiftly 1.0.1 vs 1.1.0 to observe the difference.

Expected behavior
The extension finds the toolchain.

Environment

  • OS: Arch Linux (running on WSL)
  • Swift version (output of swift --version): swift-6.1.3-RELEASE
  • Visual Studio Code version:
$ code --version
1.105.1
7d842fb85a0275a4a8e4d7e040d2625abbf7f084
x64
  • vscode-swift version: 2.12.0

Additional context
Both swiftly 1.0.1 and 1.1.0 use Swift 6.1.3. swiftly installed using the swiftly-bin AUR package (selecting RHEL 9 (ubi9) Swift releases).

Metadata

Metadata

Assignees

Labels

SwiftlyIssues related to Swiftly integration in the extension.bugSomething isn't workingneeds investigationIssue requires some investigation before it can be worked on

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions