Closed
Description
Describe the bug
When using VS Code's Remote SSH feature to connect to a Linux machine, the extension fails to find the Swift toolchain even though it is available in PATH
.
The workaround is to put the path to the Swift toolchain in the remote machine or workspace settings:
{
"swift.path": "/home/<REDACTED>/.local/share/swiftly/bin",
}
You can find the path to the Swift toolchain by running which swift
.
To Reproduce
Steps to reproduce the behavior:
- Install a Swift toolchain on a Linux machine and make it available in
PATH
. - Use the Remote SSH extension in VS Code to connect to the Linux machine
- Install the Swift extension on the remote extension host
- An error notification will appear saying that the Swift toolchain could not be found.
Expected behavior
The Swift toolchain should be automatically detected.
Environment
- Host OS: macOS Sequoia
- Remote OS: Ubuntu 22.04
- Swift version 5.10.1 (swift-5.10.1-RELEASE)
- Visual Studio Code version: 1.97.0
- vscode-swift version: 2.0.2
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done