Closed janvhs closed 9 months ago
If you open a terminal inside VSCode and type /bin/sh -c "LCMESSAGES=C type swift"
what is the output?
Sorry, for the late response. It's the following:
$ /bin/sh -c "LCMESSAGES=C type swift"
swift ist /usr/bin/swift
I installed VSCode and Swift as RPM packages.
Setting "swift.path": "/usr/bin" resolved the issue. Autodetection doesn't work, although I'm not sure if it is supposed to.
Sorry that was a typo what happens when you call.
/bin/sh -c "LC_MESSAGES=C type swift"
It should return its output in English so I have a consistent language to parse.
It's basically the same:
swift is /usr/bin/swift
Is auto-discovering the Swift executable a supported feature?
Ah it's different. This time it is in English.
The latest release of the extension shouldn't need you to set the path anymore.
Super random and hope you do not mind the ping, but thanks @adam-fowler for teaching me the LC_MESSAGES trick. I used it several times since you taught me its existence. It is really handy!
Describe the bug The LSP won't start on Linux arm64. It shows the following message:
and shows the stack trace:
To Reproduce Steps to reproduce the behavior:
Expected behavior Start the LSP.
Environment
swift --version
): Swift version 5.8.1 (swift-5.8.1-RELEASE) Target: aarch64-unknown-linux-gnuAdditional context Keep in mind that I am on a MacBook Air running an arm64 Linux version.