Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

possibility of SourceKit directly? #17

@Dan2552

Description

@Dan2552

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions