<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="">On 20 Feb 2017, at 23:04, FĂ©lix Fischer via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">How much of it is possible? I want to make a plugin for autocompletion and syntax highlighting that is cross-platform too.</div></blockquote></div><div class=""><div class=""><br class=""></div></div>The sourcekit library now builds in a single pass on Linux when the dispatch libraries are available in the build. This is in master, but it's not been cherry-picked yet onto the Swift 3.1 branch:<div class=""><br class=""></div><div class=""><a href="https://github.com/apple/swift/blob/96f92a94285a77b63707a50fb0d4e5f21b9372ca/CMakeLists.txt#L364-L369" class="">https://github.com/apple/swift/blob/96f92a94285a77b63707a50fb0d4e5f21b9372ca/CMakeLists.txt#L364-L369</a></div><div class=""><br class=""></div><div class="">You should be able to cherry pick</div><div class=""><br class=""></div><div class=""><span style="color: rgb(68, 68, 68); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; background-color: rgb(255, 255, 255);" class="">3e9f66c6cae</span></div><div class=""><span style="color: rgb(68, 68, 68); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; background-color: rgb(255, 255, 255);" class="">1673b5e8fd3</span></div><div class=""><br class=""></div><div class="">onto swift 3.1 in order to have that built there.</div><div class=""><br class=""></div><div class="">At the moment the build scripts don't package up the libsourcekitd library in the downloadable builds but you can experiment with it like that.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Another proyect I'd like to take on is to make an error-checker for text editors. Is there a way of collecting compiling errors in some structure that is easy to handle with a program?</div><div class=""><div class="">If not a Sublime/Atom/Vim plugin, I'd want to make a base for those plugins to be able to exist.</div></div></blockquote><br class=""></div><div>You should look at SourceKitten, which wraps libsourcekit with a network protocol, and at the Language Server Protocol which is a generic way of hosting language backends with a generic front end editor. There's also SDE which originally used sourcekitd-repl, but which looks like is targetting sourcekit for the upcoming 2.0 release: </div><div><br class=""></div><div><a href="https://github.com/jinmingjian/sde" class="">https://github.com/jinmingjian/sde</a></div><br class=""></div><div class="">Alex</div></body></html>