-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such module PackagePlugin #1704
Open
matthewbastien opened this issue
Sep 21, 2024
· 2 comments
· May be fixed by swiftlang/swift-package-manager#8138 or #1846
Open
No such module PackagePlugin #1704
matthewbastien opened this issue
Sep 21, 2024
· 2 comments
· May be fixed by swiftlang/swift-package-manager#8138 or #1846
Labels
bug
Something isn't working
Comments
This was originally reported in swiftlang/vscode-swift#1044 by @samdeane |
Synced to Apple’s issue tracker as rdar://136423767 |
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Nov 22, 2024
Currently, when there‘s a syntax error in a package manifest, we don’t get any build settings from it in SourceKit-LSP and thus loose almost all semantic functionality. If we can’t parse the package manifest, fall back to providing build settings by assuming it has the current Swift tools version. Currently, when there‘s a syntax error in a package manifest, we don’t get any build settings from it in SourceKit-LSP and thus loose almost all semantic functionality. If we can’t parse the package manifest, fall back to providing build settings by assuming it has the current Swift tools version. Fixes swiftlang#1704 rdar://136423767
ahoppen
added a commit
to ahoppen/swift-package-manager
that referenced
this issue
Nov 22, 2024
Currently, when there‘s a syntax error in a package manifest, we don’t get any build settings from it in SourceKit-LSP and thus loose almost all semantic functionality. If we can’t parse the package manifest, fall back to providing build settings by assuming it has the current Swift tools version. Fixes swiftlang/sourcekit-lsp#1704 rdar://136423767
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Nov 22, 2024
Currently, when there‘s a syntax error in a package manifest, we don’t get any build settings from it in SourceKit-LSP and thus loose almost all semantic functionality. If we can’t parse the package manifest, fall back to providing build settings by assuming it has the current Swift tools version. Currently, when there‘s a syntax error in a package manifest, we don’t get any build settings from it in SourceKit-LSP and thus loose almost all semantic functionality. If we can’t parse the package manifest, fall back to providing build settings by assuming it has the current Swift tools version. Fixes swiftlang#1704 rdar://136423767
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Swift version
swift-driver version: 1.113 Apple Swift version 6.0 (swiftlang-6.0.0.7.6 clang-1600.0.24.1)
Platform
macOS 14
Editor
Visual Studio Code
Does the issue reproduce with Swift 6?
Yes
Description
SourceKit-LSP gives an error diagnostic
No such module PackagePlugin
when trying toimport PackagePlugin
for a SwiftPM plugin. This module should be available and give code completion, go to definition, etc.Steps to Reproduce
Clone
[email protected]:elegantchaos/Versionator.git
checkout 187bc4c0e15dadccb5a65b2f71fa0082bd583f81
open in VSCode and try to edit
Plugins/VersionatorPlugin/plugin.swift
Logging
No response
The text was updated successfully, but these errors were encountered: