Skip to content
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

Unable to find Swift toolchain when using Remote SSH #1399

Open
matthewbastien opened this issue Feb 20, 2025 · 0 comments
Open

Unable to find Swift toolchain when using Remote SSH #1399

matthewbastien opened this issue Feb 20, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@matthewbastien
Copy link
Member

matthewbastien commented Feb 20, 2025

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:

  1. Install a Swift toolchain on a Linux machine and make it available in PATH.
  2. Use the Remote SSH extension in VS Code to connect to the Linux machine
  3. Install the Swift extension on the remote extension host
  4. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant