-
Notifications
You must be signed in to change notification settings - Fork 60
Description
I'm trying to use sourcekit with my swiftly-installed toolchain.
In my editor I've got swiftly's env vars set as such:
PATH is: /Users/camdennarzt/.cargo/bin/:/Users/camdennarzt/.config/swiftly/bin/:/Users/camdennarzt/.rbenv/shims:/Users/camdennarzt/.dotnet/tools:/Users/camdennarzt/Developer/Go/bin:/opt/homebrew/opt/go/libexec/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin
SWIFTLY_HOME_DIR: ~/.config/swiftly
SWIFTLY_BIN_DIR: ~/.config/swiftly/bin
SWIFTLY_TOOLCHAINS_DIR: ~/Library/Developer/Toolchains
The swiftly executable itself is in /opt/homebrew/bin.
When I start sourcekit with sourcekit-lsp I get a bunch of messages one of which is:
[jsonrpc] e[12:01:01.749] <-- window/logMessage {"jsonrpc":"2.0","method":"window\/logMessage","params":{"message":"⬛️🟫🟩 [error]: Invalid manifest (compiled with: [\"\/Users\/camdennarzt\/Library\/Developer\/Toolchains\/swift-6.2.1-RELEASE.xctoolchain\/usr\/bin\/swiftc\", \"-vfsoverlay\", \"\/var\/folders\/s4\/dngqck910_9b86xnm9cfv3gc0000gn\/T\/TemporaryDirectory.fsDEjj\/vfs.yaml\", \"-L\", \"\/Users\/camdennarzt\/Library\/Developer\/Toolchains\/swift-6.2.1-RELEASE.xctoolchain\/usr\/lib\/swift\/pm\/ManifestAPI\", \"-lPackageDescription\", \"-Xlinker\", \"-rpath\", \"-Xlinker\", \"\/Users\/camdennarzt\/Library\/Developer\/Toolchains\/swift-6.2.1-RELEASE.xctoolchain\/usr\/lib\/swift\/pm\/ManifestAPI\", \"-target\", \"arm64-apple-macosx13.0\", \"-I\", \"\/Users\/camdennarzt\/Library\/Developer\/Toolchains\/swift-6.2.1-RELEASE.xctoolchain\/usr\/lib\/swift\/macosx\/testing\", \"-L\", \"\/Users\/camdennarzt\/Library\/Developer\/Toolchains\/swift-6.2.1-RELEASE.xctoolchain\/usr\/lib\/swift\/macosx\/testing\", \"-plugin-path\", \"\/Users\/camdennarzt\/Library\/Developer\/Toolchains\/swift-6.2.1-RELEASE.xctoolchain\/usr\/lib\/swift\/host\/plugins\/testing\", \"-sdk\", \"\/Library\/Developer\/CommandLineTools\/SDKs\/MacOSX.sdk\", \"-swift-version\", \"6\", \"-I\", \"\/Users\/camdennarzt\/Library\/Developer\/Toolchains\/swift-6.2.1-RELEASE.xctoolchain\/usr\/lib\/swift\/pm\/ManifestAPI\", \"-sdk\", \"\/Library\/Developer\/CommandLineTools\/SDKs\/MacOSX.sdk\", \"-package-description-version\", \"6.0.0\", \"\/Users\/camdennarzt\/Developer\/Swift\/getargv.swift\/Package.swift\", \"-o\", \"\/var\/folders\/s4\/dngqck910_9b86xnm9cfv3gc0000gn\/T\/TemporaryDirectory.P3OqIg\/getargv.swift-manifest\"])\n⬛️🟫🟩 error: link command failed with exit code 1 (use -v to see invocation)\n⬛️🟫🟩 Circular swiftly proxy invocation\n⬛️🟫🟩 clang: error: linker command failed with exit code 1 (use -v to see invocation)","logName":"SourceKit-LSP: Indexing","type":3}}
Message parsed out for legibility:
⬛️🟫🟩 [error]: Invalid manifest (compiled with: ["/Users/camdennarzt/Library/Developer/Toolchains/swift-6.2.1-RELEASE.xctoolchain/usr/bin/swiftc", "-vfsoverlay", "/var/folders/s4/dngqck910_9b86xnm9cfv3gc0000gn/T/TemporaryDirectory.fsDEjj/vfs.yaml", "-L", "/Users/camdennarzt/Library/Developer/Toolchains/swift-6.2.1-RELEASE.xctoolchain/usr/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/Users/camdennarzt/Library/Developer/Toolchains/swift-6.2.1-RELEASE.xctoolchain/usr/lib/swift/pm/ManifestAPI", "-target", "arm64-apple-macosx13.0", "-I", "/Users/camdennarzt/Library/Developer/Toolchains/swift-6.2.1-RELEASE.xctoolchain/usr/lib/swift/macosx/testing", "-L", "/Users/camdennarzt/Library/Developer/Toolchains/swift-6.2.1-RELEASE.xctoolchain/usr/lib/swift/macosx/testing", "-plugin-path", "/Users/camdennarzt/Library/Developer/Toolchains/swift-6.2.1-RELEASE.xctoolchain/usr/lib/swift/host/plugins/testing", "-sdk", "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk", "-swift-version", "6", "-I", "/Users/camdennarzt/Library/Developer/Toolchains/swift-6.2.1-RELEASE.xctoolchain/usr/lib/swift/pm/ManifestAPI", "-sdk", "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk", "-package-description-version", "6.0.0", "/Users/camdennarzt/Developer/Swift/getargv.swift/Package.swift", "-o", "/var/folders/s4/dngqck910_9b86xnm9cfv3gc0000gn/T/TemporaryDirectory.P3OqIg/getargv.swift-manifest"])
⬛️🟫🟩 error: link command failed with exit code 1 (use -v to see invocation)
⬛️🟫🟩 Circular swiftly proxy invocation
⬛️🟫🟩 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Which mentions a Circular swiftly proxy invocation, what can I do to fix this?