Skip to content
the backend of SDE's language server
Swift Makefile
Branch: master
Clone or download
This branch is 18 commits ahead of jinmingjian:master.

README.md

sourcekite

pronounced: [source kite] 😄

SDE's language server's backend which is written in Swift. You need to build this tool if you want to use SDE.

Swift version sourcekite version
5 0.6.0
4 and 5 0.5.0
3.1 and 4 0.4.2

Installation

The easiest way to install sourcekite is through Mint:

$ mint install vknabel/sourcekite
🌱 Cloning sourcekite master
🌱 Resolving package
🌱 Building package
🌱 Installed sourcekite master
🌱 Linked sourcekite master to /usr/local/bin

Manual

$ git clone https://github.com/vknabel/sourcekite
$ cd sourcekite

clone this project, then run build command in that project as follow:

for Linux

# Ensure you have libcurl4-openssl-dev installed (not pre-installed)
# $ apt-get update && apt-get install libcurl4-openssl-dev
# Ensure LD_LIBRARY_PATH contains /your/swift/usr/lib
# And have $ sudo ln -s /your/swift/usr/lib/libsourcekitdInProc.so /usr/lib/libsourcekitdInProc.so
# Other PREFIX paths are fine, too
$ make install PREFIX=/usr/local

For more information see jpsim/SourceKitten#how-is-sourcekit-resolved.

for MacOS

$ make install PREFIX=/usr/local

Finally set "swift.path.sourcekite" in vscode to let SDE know the location of this tool. It recommends to add this setting to the gloabl via "File" -> "Preferences" -> "Settings". Like:

{
    "swift.path.sourcekite": "/usr/local/bin/sourcekite"
}

Issues

file an issues if you have problem.

License

Apache License v2.

You can’t perform that action at this time.