SublimeTextSwiftAutocomplete icon indicating copy to clipboard operation
SublimeTextSwiftAutocomplete copied to clipboard

possibility of SourceKit directly?

Open Dan2552 opened this issue 8 years ago • 0 comments

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:

  • Reduce dependencies
  • Reduce overhead from calling SwiftKitten and JSON parsing the results

Dan2552 avatar Jan 12 '17 13:01 Dan2552