Skip to content

Add a test case that we get build settings for a SwiftPM package if package hasn't been resolved #1618

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

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 7, 2024

When a package had a package dependency but we haven’t resolved packages, we should still be able to get build settings for the existing files – just without the dependencies. This behavior broken by swiftlang/swift-package-manager#7854 and is being fixed by swiftlang/swift-package-manager#7865.

@xedin
Copy link
Contributor

xedin commented Aug 7, 2024

@ahoppen ahoppen merged commit a6e3346 into swiftlang:main Aug 8, 2024
3 checks passed
ahoppen pushed a commit to swiftlang/swift-package-manager that referenced this pull request Aug 8, 2024
### Motivation:

We need to use a separate inner scope to capture any problems during
build plan construction and make a decision to stop based on that. The
current logic checks the scope that is passed in which tracks errors
emitted elsewhere.

### Modifications:

- Passes an child scope called "Planning" to the `computeDestinations`
functions that is used to construct the plan.

### Result:

sourcekit-lsp no longer fails if there is no Package.resolved -
swiftlang/sourcekit-lsp#1618
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.

2 participants