SourceKitten
SourceKitten copied to clipboard
An adorable little framework and command line tool for interacting with SourceKit.
I’ve narrowed the illegal instruction 4 error to the usage of enums, whether or not they are public, inside or outside the scope of my main classes, and whether or...
I'm using SourceKitten indirectly through the Jazzy doc generator. The YAML file does in fact exist and is [attached (compressed)](https://github.com/jpsim/SourceKitten/files/12286092/debug.yaml.zip) ``` Using config file /Users/dave/src/val/.jazzy.yml Running swift build SPM build...
`\` must be escaped for valid JSON. Ensure that we properly escape the character and form the reference string with the proper representation of the path.
## Context The [default method](https://github.com/jpsim/SourceKitten/blob/b1f22c841ef116e68e9fa5f006e20eaeda164308/Source/SourceKittenFramework/Module.swift#L97) of calculating `build result` output directory in `Module.swift`'s `init?(spmArguments:spmName:inPath)` cannot be set from the outside: let file = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("swift-build-\(UUID().uuidString).log") When using CI like CircleCI,...
This initial patch series beings the work to support Windows. It is incomplete in the sense that there are multiple issues with the tests that need to be ironed out...
let file = File(contents: "class A {}") let result = try SourceKittenFramework.Request.syntaxTree(file: file, byteTree: false).send() print(result) apple silicon M2 xcode14.3, "key.serialized_syntax_tree" is not found in result > ["key.diagnostic_stage": "source.diagnostic.stage.swift.parse"] intel...
I'm getting this error running `make install` from the root directory after cloning this repo. How do I resolve this? ``` rm -f "SourceKitten.pkg" rm -rf "/tmp/SourceKitten.dst" swift package clean...
Hi @jpsim Based on our discussion on twitter I want to tell you a bit more about my use case. I want to receive public interfaces from compiled frameworks, both...
I have tried with a lot of different swift files, and I always get back the same error: ``` [bhatfield Jobs]% sourcekitten index --file Job.swift The operation couldn’t be completed....
We noticed that there are issues with the listing of Swift name and declaration in the SourceKitten output for Objective-C API that includes forward declarations. When using a forward declaration...