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

Error instead of StaleSymbol crash for certain cyclic macro dependencies #19549

Merged
merged 2 commits into from Jan 30, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jan 27, 2024

If a suspended macro refers back to a symbol in a previously compiled package object, report this as an error instead of crashing with a StaleSymbol exception.

There's unfortunately not a lot of info available at the point where the error is raised, so the error message is a bit vague. But it's better than crashing.

Fixes #19351

If a suspended macro refers back to a symbol in a previously compiled package
object, report this as an error instead of crashing with a StaleSymbol exception.

There's unfortunately not a lot of info available at the point where the error
is raised, so the error message is a bit vague. But it's better than crashing.
@odersky odersky linked an issue Jan 27, 2024 that may be closed by this pull request
@odersky odersky merged commit 321a614 into scala:main Jan 30, 2024
19 checks passed
@odersky odersky deleted the fix-19351 branch January 30, 2024 13:58
@Kordyjan Kordyjan added this to the 3.4.1 milestone Feb 14, 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.

Stale symbol for top-level alias type in suspended compilation unit
3 participants