Skip to content

Adopt changed SourceKitLSPAPI to return build settings for build plugins#2446

Open
ahoppen wants to merge 2 commits intoswiftlang:mainfrom
ahoppen:plugin-args
Open

Adopt changed SourceKitLSPAPI to return build settings for build plugins#2446
ahoppen wants to merge 2 commits intoswiftlang:mainfrom
ahoppen:plugin-args

Conversation

@ahoppen
Copy link
Copy Markdown
Member

@ahoppen ahoppen commented Jan 10, 2026

@ahoppen
Copy link
Copy Markdown
Member Author

ahoppen commented Jan 10, 2026

@ahoppen
Copy link
Copy Markdown
Member Author

ahoppen commented Mar 16, 2026

@ahoppen
Copy link
Copy Markdown
Member Author

ahoppen commented Mar 23, 2026

swiftlang/swift-package-manager#9583

@swift-ci Please test Windows

ahoppen added a commit to ahoppen/swift-package-manager that referenced this pull request Apr 4, 2026
…ion`

To stage in swiftlang#9583.

Steps:
1. Merge this PR
2. Change SourceKit-LSP to pass a `pluginConfiguration`
3. Merge swiftlang#9583
4. Merge swiftlang/sourcekit-lsp#2446 for a test in SourceKit-LSP
ahoppen added a commit to swiftlang/swift-package-manager that referenced this pull request Apr 12, 2026
The computation of compiler arguments for package plugins was plain out
broken and didn’t even include the search path to
`lib/swift/pm/PluginAPI`. Call into the same logic with which we compute
the build settings during building from `SourceKitLSPAPI`.

Tested as part of swiftlang/sourcekit-lsp#2446.

Fixes swiftlang/sourcekit-lsp#2115
@ahoppen
Copy link
Copy Markdown
Member Author

ahoppen commented Apr 12, 2026

@swift-ci Please test

Teemperor pushed a commit to Teemperor/swift-mono that referenced this pull request Apr 12, 2026
=== indexstore-db ========================================
Merge pull request #285 from ahoppen/index-dump
Create an executable to dump index or record files

=== swiftpm ==============================================
Compute correct compiler arguments for build plugins (#9583)
The computation of compiler arguments for package plugins was plain out
broken and didn’t even include the search path to
`lib/swift/pm/PluginAPI`. Call into the same logic with which we compute
the build settings during building from `SourceKitLSPAPI`.

Tested as part of swiftlang/sourcekit-lsp#2446.

Fixes swiftlang/sourcekit-lsp#2115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No such module 'PackagePlugin' while editing package plugins

2 participants