Skip to content

SI-8029 Avoid multi-run cyclic error with companions, package object #3229

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
Dec 9, 2013

Conversation

retronym
Copy link
Member

@retronym retronym commented Dec 6, 2013

The bug report suggests this problem only became visible in the
IDE after 2.10.3, but I tested an IDE with exactly 2.10.3 and
saw the same problem.

In fact, my test case fails as far back as 2.10.0. I suspect the
problem showed up after 816cecf, which checks that pairs of
companion symbols are codefined eagerly in Namers.

This commit modifies the check of rawInfo ne NoType
in isCoDefinedWith to avoid triggering adaptation of types from
the previous run. I'm not sure of the precise intent of that check.
I looked at c9861cd (genesis of isCoDefinedWith). Before that we
get back to 3761cb4 (the dawn of Subversion.)

Review by @adriaanm

@retronym
Copy link
Member Author

retronym commented Dec 6, 2013

/cc @dotta

The bug report suggests this problem only became visible in the
IDE *after* 2.10.3, but I tested an IDE with exactly 2.10.3 and
saw the same problem.

In fact, my test case fails as far back as 2.10.0. I suspect the
problem showed up after 816cecf, which checks that pairs of
companion symbols are codefined eagerly in Namers.

This commit modifies the check of `rawInfo ne NoType`
in `isCoDefinedWith` to avoid triggering adaptation of types from
the previous run. I'm not sure of the precise intent of that check.
I looked at c9861cd (genesis of isCoDefinedWith). Before that we
get back to 3761cb4 (the dawn of Subversion.)
@ghost ghost assigned adriaanm Dec 7, 2013
@adriaanm
Copy link
Contributor

adriaanm commented Dec 9, 2013

LGTM

adriaanm added a commit that referenced this pull request Dec 9, 2013
SI-8029 Avoid multi-run cyclic error with companions, package object
@adriaanm adriaanm merged commit db19ddf into scala:2.10.x Dec 9, 2013
@retronym
Copy link
Member Author

/cc @xeno-by

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