Skip to content

Compiler hangs during compilation #12878

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

Closed
chrislailee opened this issue Jun 18, 2021 · 3 comments
Closed

Compiler hangs during compilation #12878

chrislailee opened this issue Jun 18, 2021 · 3 comments
Labels
itype:bug stat:needs minimization Needs a self contained minimization

Comments

@chrislailee
Copy link

chrislailee commented Jun 18, 2021

Refer to second issue described in Issue 12876.

When compile under sbt, it reports a number of errors. The last of which is the following. Then the console hangs at compile incremental with the timer keeps ticking:

[error] 457 | } yield passwordOk
[error] | ^
[error] |Could not find an instance of FlatMap for cats.Id.
[error] |I found:
[error] |
[error] | cats.Invariant.catsStdCommutativeMonadForTuple11[A0, A1, A2, A3, A4, A5, A6, A7
[error] | ,
[error] | A8, A9]
[error] |
[error] |But method catsStdCommutativeMonadForTuple11 in trait NTupleMonadInstances1 does not match type cats.FlatMap[cats.Id].
[error] -- [E008] Not Found Error: xxx.scala:48:25
[error] 48 | import scala.reflect.runtime.universe
[error] | ^^^^^^^^^^^^^^^^^^^^^
[error] | value runtime is not a member of reflect

| => root / Compile / compileIncremental 457s

Please refer to #12876 for stack traces of the compiler process when hang occurs.

@chrislailee
Copy link
Author

chrislailee commented Jun 18, 2021

The problem can be reproduced by compiling project at: https://github.com/chrislailee/CatsTest3.git.

Compiling environment:
Scala version: 3.0.0
JDK: Azul Zulu 11.0.11
SBT: 1.5.4

@smarter smarter added the stat:needs minimization Needs a self contained minimization label Jun 18, 2021
@smarter
Copy link
Member

smarter commented Jun 18, 2021

Thanks for the reproduction. Interestingly I can reproduce the problem on Java 11 and 16 but not 8. I'm not sure what the issue was, however it appears to be fixed in 3.0.1-RC1 where I can't reproduce it at all, so I'll close this.

@smarter smarter closed this as completed Jun 18, 2021
@chrislailee
Copy link
Author

Thanks smarter for looking into this. Great to hear that new version already fixed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
itype:bug stat:needs minimization Needs a self contained minimization
Projects
None yet
Development

No branches or pull requests

2 participants