-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix #1750: check problematic owner first to avoid cyclic reference #1852
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
Conversation
90066dc
to
714a8d7
Compare
/rebuild |
I don't think /rebuild works. You have to restart from the web interface, clicking on Details first. |
@felixmulder I tried restarting from the web interface but that did not do anything either. I think it would be good to resurrect /rebuild. Sometimes it is really essential. |
We have an alternative way to restart tasks currently.
The build number can be found in two ways, either by:
or by clicking through the web interface. I restarted this job by running the first command for build number 392. I'll look into the possibility of resurrecting |
|
Thanks @felixmulder . I was wondering why it failed on drone, while pass locally -- the fix is exactly for #1750. |
87f3c41
to
f72eee0
Compare
I would advise against moving |
We need to make sure RefChecks run before ExtractAPI, as there might be cyclic reference exceptions, which is handled in RefChecks. See neg/i1750.scala.
@smarter the comment makes sense, a true concern. Let's try the other way around. |
f72eee0
to
0ffaf60
Compare
@@ -44,13 +44,13 @@ class Compiler { | |||
List(new FrontEnd), // Compiler frontend: scanner, parser, namer, typer | |||
List(new sbt.ExtractDependencies), // Sends information on classes' dependencies to sbt via callbacks | |||
List(new PostTyper), // Additional checks and cleanups after type checking | |||
List(new RefChecks, // Various checks mostly related to abstract members and overriding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment here for why it was moved up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felixmulder Thanks for looking at it. I tend to agree moving RefChecks before Pickler is a huge change we should try our best to avoid. Let's wait for some better fix that deprecate this one.
@liufengyun What was the reason of moving RefChecks before ExtractDependencies? Did you see a crash in ExtractDependencies? |
@odersky : exactly as you noticed, there is |
superseded by #1913 , close this now. |
Fix #1750: check problematic owner first to avoid cyclic reference.
I'm not sure if this is the right fix, could you please advise @odersky ?