-
Notifications
You must be signed in to change notification settings - Fork 72
[Solved] Activating extension 'sswg.swift-lang' failed: Cannot find swift executable.. #218
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
Comments
Is the swift executable in your PATH? If not you need to set the path in the |
yes, I have set: swift.path: sourcekit-lsp.serverPath: sourcekit-lsp.toolchainPath: |
swift-path should be |
As an aside can you verify that swift is in your $PATH. It should work straight off if it is in your $PATH. Open a terminal in VSCode and type |
works! thanks for help me 😀 |
vscode-swift not works, but another SourceKit-LSP is fine.
To Reproduce
Steps to reproduce the behavior:
Ctrl
+Shift
+X
, installvscode-swift
extension/opt/swift-toolchain/usr
Package.swift
Not yet activated
Ctrl
+Shift
+I
, OpenToggle Developer Tools
, see error:Expected behavior
vscode-swift activated automatically when I open Swift workspace.
Environment
Ubuntu Desktop 20.04 arm64
1.65.2
v0.4.1 Preview
Additional context
Download
code_1.65.2-1646922911_arm64.deb
from https://code.visualstudio.com/downloadInstall via
sudo apt-get --fix-broken install ./code_1.65.2-1646922911_arm64.deb
Install Swift toolchain from https://swift-toolchain.com
The text was updated successfully, but these errors were encountered: