An adorable little framework and command line tool for interacting with SourceKit.
File.clearCaches()
function to clear a file's cached data.SourceKitten now requires Swift 5.6 or higher to build, and macOS 12
or higher to run.
JP Simard
SourceKitten now always uses the in-process version of sourcekitd on
macOS. The IN_PROCESS_SOURCEKIT
environment variable is ignored and
the SourceKittenConfiguration.preferInProcessSourceKit
API has been
completely removed.
JP Simard
Adds Bazel Build Support.
Maxwell Elliott
Support docs generation with Xcode 14 projects.
John Fairhurst
Support docs generation on Swift 5.6.
John Fairhurst
Added SwiftDeclarationAttributeKind
values introduced in Swift 5.6.
JP Simard
Add IN_PROCESS_SOURCEKIT
environment variable, which causes to use
the in-process version of sourcekitd on macOS. This avoids the use of
XPC, which is prohibited in some sandboxed environments, such as in
Swift Package Manager plugins.
Juozas Valancius
Objective C Union support.
Brian Osborn
#705
Add key.attributes
and key.attribute
enum cases to SwiftDocKey
.
Erick Sanchez
Add --prettify
and --sort-keys
flags to complete command, both of
which default to false. Previously these options were hardcoded to be
enabled, which slowed down the command when processing large inputs.
Paul Taykalo
#710
Add new SwiftDeclarationAttributeKind
members available starting
with Swift 5.4/5.5.
John Fairhurst
SourceKitten now requires Swift 5.2 or higher to build.
JP Simard
SourceKittenFramework can no longer be integrated as a Carthage
depdendency.
JP Simard
SourceKitten.xcworkspace
and sourcekitten.xcproject
have been
completely removed. You can still use Xcode to develop SourceKitten by
opening it as a Swift Package by typing xed .
or xed Package.swift
from your shell.
JP Simard
The command line syntax has slightly changed due to migrating from the
Commandant command line parsing library to swift-argument-parser.
For the most part the breaking changes are all to make the syntax more
unix compliant and intuitive to use. For example, commands such as
sourcekitten --help
or sourcekitten -h
now work as expected.
The help output from various commands has greatly improved as well.
A few notable breaking changes:
doc --spm-module
was removed (use --spm --module-name
instead)sourcekitten module_info
is now sourcekitten module-info
SwiftDeclarationAttributeKind
values introduced in Swift 5.3.Update Yams to 4.0.0.
Keith Smiley
JP Simard
Add SwiftDeclarationAttributeKind
values introduced in Swift 5.2.
JP Simard
Fix crashes when parsing .m files.
Joe Laws
Stop the program immediately if the xcodebuild
command fails.
John Fairhurst
#643
Int
/Int64
/NSRange
representing byte offsets
to use newly introduced ByteCount
and ByteRange
values instead.
This will minimize the risk of accidentally using a byte-based offset
in character-based contexts.key.parsed_declaration
in Swift 5.1+ for declarations on
multiple lines without a body.