Dan2552 / SublimeTextSwiftAutocomplete

Swift autocompletion in Sublime Text using SourceKitten
MIT License
155 stars 7 forks source link

possibility of SourceKit directly? #17

Open Dan2552 opened 7 years ago

Dan2552 commented 7 years ago

In the Swift/SourceKit source there are Python bindings for using SourceKit directly

I couldn't work out how to compile SourceKit, but from the comment here, I think it would be required to do so as I couldn't find libsourcekitdInProc.dylib in my Xcode directory:

if name == 'Darwin':
            # The XPC service cannot run via the bindings due to permissions
            # issue.
            # file = 'sourcekitd.framework/sourcekitd'
            file = 'libsourcekitdInProc.dylib'

If this were to work as I'd hope it might: