No such module PackagePlugin
Describe the bug
In a Swift Plugin package, vscode-swift/SourceKit is reporting that PackagePlugin doesn't exist.
The package builds fine, so it clearly does exist :)
To Reproduce
Clone [email protected]:elegantchaos/Versionator.git
check out 187bc4c0e15dadccb5a65b2f71fa0082bd583f81
open package in vscode
Expected behavior
No problems should be reported.
Environment
~/Developer/Projects/Versionator > versions (main)
+ uname
Darwin
+ sw_vers
ProductName: macOS
ProductVersion: 14.6.1
BuildVersion: 23G93
+ swift --version
swift-driver version: 1.113 Apple Swift version 6.0 (swiftlang-6.0.0.7.6 clang-1600.0.24.1)
Target: arm64-apple-macosx14.0
+ xcodebuild -version
Xcode 16.1
Build version 16B5001e
+ code --version
1.92.2
fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
arm64
+ code --list-extensions --show-versions
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Additional context Add any other context about the problem here.
(I realise that this may be a SourceKit issue...)
Yup, this is definitely a SourceKit-LSP issue. I've raised a separate issue with them, but will keep this open so that it can be verified that the fix works in VSCode once available. Thanks for raising this issue!
swiftlang/sourcekit-lsp#1704
This was fixed in swiftlang/sourcekit-lsp/pull/1846 (this issue can be closed).
Hello,
I'm on Windows 11, Swift 6.1 and unfortunately I still have this error
@daniele-niero can you create a new issue in https://github.com/swiftlang/sourcekit-lsp? Your issue could also be related to swiftlang/sourcekit-lsp#2115.
Thanks @matthewbastien
The other issue you linked on your reply seems to talk exactly about the issue I have, so probably I will follow that one instead of opening a very likely duplicate :)
Cheers