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

Do not use invalidationResults to compute next invalidations #1312

Merged
merged 5 commits into from Dec 27, 2023

Conversation

Friendseeker
Copy link
Member

@Friendseeker Friendseeker commented Dec 21, 2023

Issue

invalidationResults in AnalysisCallback is computed twice, once in API phase, once in dependency phase. It is not updated again after Java analysis, hence invalidationResults contains incorrect information for Java sources.

Fix

Do not use invalidationResults when computing CompileCycleResult.

Trivia

I am not 100% certain yet, but this is probably the root cause of sbt/sbt#6183, as

c.c. @LaCuneta This should fix #1311 or at least partially fix it (if #1311 has multiple causes).

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eed3si9n eed3si9n merged commit 66dd770 into sbt:develop Dec 27, 2023
7 checks passed
@Friendseeker Friendseeker deleted the stale-invalidationResults branch December 27, 2023 09:17
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.

Overcompilation with incremental, mixed Java/Scala file edits in 1.9.0-RC1
2 participants