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

Fixed infinite background compilation in scala 2.13.14 #37

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

freddie713
Copy link

Fixed infinite background compilation caused by changes in scala.reflect.internal.util.BatchSourceFile.hashCode introduced in scala 2.13.13
If scala.tools.nsc.interactive.Global#isOutOfDate returns true then scala.tools.nsc.interactive.Global#backgroundCompile runs infinitely because waitLoadedTypeResponses are not cleaned properly due to the fact that hashCode implementation for ScexSourceFile is taken from Object.
Changed hashCode/equals for ScexSourceFile so it's computed as before 2.13.13

…ect.internal.util.BatchSourceFile.hashCode introduced in scala 2.13.13
@ddworak ddworak self-requested a review June 5, 2024 08:20
Copy link
Member

@ddworak ddworak left a comment

Choose a reason for hiding this comment

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

LGTM with minor comment

@ddworak ddworak merged commit 8e745b3 into master Jun 5, 2024
7 checks passed
@ddworak ddworak deleted the scala-2.13.14-hash-code-fix branch June 5, 2024 08:29
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