Skip to content
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

Add nice error when non-exclusive task depends on exclusive task #3887

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Nov 1, 2024

Fixes #3875

I placed a check to raise an error when a non-exclusive task depends on an exclusive task.

We could place this check any time from task instantiation to just before the NoSuchElementException gets thrown. I ended up putting it as late as possible, such that the failure is localized, which allows other un-related parts of the build to proceed despite the failure, as well as allowing other errors in the build to be reported in parallel (rather than having to re-run the build over and over after fixing each one to see the next one)

Covered with an integration test that asserts on the error message. Best reviewed with Ignore Whitespace

@lihaoyi lihaoyi merged commit 2330f34 into com-lihaoyi:main Nov 1, 2024
24 checks passed
@lefou lefou added this to the 0.12.2 milestone Nov 1, 2024
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.

Calling an exclusive command from a non-interactive command results in a NoSuchElementException
2 participants