klaaspieter / coc-sourcekit

Swift language server extension using sourcekit-lsp for coc.nvim.
MIT License
73 stars 9 forks source link

Is it still necessary to download a toolchain? #9

Open benwoodward opened 4 years ago

benwoodward commented 4 years ago

sourcekit-lsp seems to be included as part of XCode 11.4. Does this mean downloading a toolchain is no longer necessary ?

matthewspear commented 4 years ago

The path can be found using xcrun --find sourcekit-lsp and can be used as the command path to write and complete Swift, although couldn't get UIKit support to work

klaaspieter commented 4 years ago

If sourcekit-lsp is provided by Xcode now than you shouldn't have to download a separate toolchain.

Under the hood coc-sourcekit already runs xcrun --toolchain swift --find sourcekit-lsp so it should automatically find the Xcode version if no other toolchains are installed.

klaaspieter commented 4 years ago

@benwoodward @Matthewspear if it works, feel free to update the README 😄