So I am getting the following error while trying to setup SourceKit-LSP :
[Error - 5:12:30 PM] Starting client failed
Launching server using command sourcekit-lsp failed.
I opened a swift file into VS code and this error message shows up on the terminal. The steps I did before this:
- I added the .vsix file through command palette
- I installed swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-16-a-osx. I know that the recommended toolchain is swift-DEVELOPMENT-SNAPSHOT-2019-02-14-a but the oldest version for Swift 5 toolchain that I could find on the link provided was 2019-02-16-a.
- I added the path '/Applications/Xcode.app/Contents/Developer/Toolchains' to the toolchain at Preferences/Settings/ SourceKit-LSP
- I also tried 'swift build' on the terminal after this and I get the following error - error: terminated(72): xcrun --sdk macosx --find xctest output:
Do I have to change the swift version to swift 5 somehow using the toolchain since I currently use Swift 4.2?
Please let me know if I'm doing something wrong. Thank you for your time and attention.