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

Crashing while compiling a generic Java record. #19279

Closed
charpov opened this issue Dec 16, 2023 · 3 comments
Closed

Crashing while compiling a generic Java record. #19279

charpov opened this issue Dec 16, 2023 · 3 comments

Comments

@charpov
Copy link
Contributor

charpov commented Dec 16, 2023

Compiler version

3.3.1

Minimized code

I do not have yet a minimized code.

Output (click arrow to expand)

compile
[info] compiling 207 Scala sources and 33 Java sources to /Users/charpov/GIT/FCP-code/target/scala-3.3.1/classes ...
[error] -- [E161] Naming Error: /Users/charpov/GIT/FCP-code/Java/main/chap14/javatrampoline/Computation.java:3:11 
[error] 3 |record Foo<Boo>(Boo s) {}
[error]   |           ^^^
[error]   |Boo is already defined as type Boo
[error]   |
[error]   |Note that overloaded methods must all be defined in the same group of toplevel definitions
scala.MatchError: NoType (of class dotty.tools.dotc.core.Types$NoType$) while typechecking /Users/charpov/GIT/FCP-code/Java/main/chap14/javatrampoline/Computation.java
[info] exception occurred while typechecking /Users/charpov/GIT/FCP-code/Java/main/chap14/javatrampoline/Computation.java
[info] 
[info]   exception occurred while compiling List(/Users/charpov/GIT/FCP-code/Java/main/appendix/AtomicityLockingJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/FunctionalConcurrentJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/FunctionsJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/HandlingFailuresJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/HigherOrderFunctionsJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/ImmutabilityJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/LazyEvaluationJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/MinimizingBlockingJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/PatternMatchingJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/SynchronizationJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/ThreadPoolsJ.java, /Users/charpov/GIT/FCP-code/Java/main/appendix/ThreadSafeJ.java, /Users/charpov/GIT/FCP-code/Java/main/chap01/Section_2J.java, /Users/charpov/GIT/FCP-code/Java/main/chap02/Section_1J.java, /Users/charpov/GIT/FCP-code/Java/main/chap03/Section_2J.java, /Users/charpov/GIT/FCP-code/Java/main/chap03/Section_3J.java, /Users/charpov/GIT/FCP-code/Java/main/chap03/Section_4J.java, /Users/charpov/GIT/FCP-code/Java/main/chap10/Section_9J.java, /Users/charpov/GIT/FCP-code/Java/main/chap12/Section_2J.java, /Users/charpov/GIT/FCP-code/Java/main/chap12/Section_3J.java, /Users/charpov/GIT/FCP-code/Java/main/chap12/Section_6J.java, /Users/charpov/GIT/FCP-code/Java/main/chap13/Section_3J.java, /Users/charpov/GIT/FCP-code/Java/main/chap14/Section_3J.java, /Users/charpov/GIT/FCP-code/Java/main/chap14/javatrampoline/Computation.java, /Users/charpov/GIT/FCP-code/Java/main/chap15/BookPublisher.java, /Users/charpov/GIT/FCP-code/Java/main/chap15/Section_1J.java, /Users/charpov/GIT/FCP-code/Java/main/chap15/Section_5J.java, /Users/charpov/GIT/FCP-code/Java/main/chap15/Section_8J.java, /Users/charpov/GIT/FCP-code/Java/main/chap15/Section_9J.java, /Users/charpov/GIT/FCP-code/Java/main/chap17/Section_2J.java, /Users/charpov/GIT/FCP-code/Java/main/chap27/Section_1J.java, /Users/charpov/GIT/FCP-code/Java/main/preface/FirstOf.java, /Users/charpov/GIT/FCP-code/Java/main/preface/RandShiftJ.java, /Users/charpov/GIT/FCP-code/Scala/main/appendix/HandlingFailures.scala, /Users/charpov/GIT/FCP-code/Scala/main/appendix/HigherOrderFunctions.scala, /Users/charpov/GIT/FCP-code/Scala/main/appendix/Immutability.scala, /Users/charpov/GIT/FCP-code/Scala/main/appendix/LazyEvaluation.scala, /Users/charpov/GIT/FCP-code/Scala/main/appendix/ThreadPools.scala, /Users/charpov/GIT/FCP-code/Scala/main/appendix/ThreadSafe.scala, /Users/charpov/GIT/FCP-code/Scala/main/appendix/Types.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_10.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_8.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap02/Section_9.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_8.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap03/Section_9.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap04/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap04/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap04/activepassive/functional/ActivePassive.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap04/activepassive/immutable/ActivePassive.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap04/activepassive/mutable1/ActivePassive.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap04/activepassive/mutable2/ActivePassive.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap05/Aside.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap05/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap05/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap05/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap05/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap05/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap05/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap05/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap06/Aside.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap06/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap06/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap06/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap06/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap06/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_8.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap07/Section_9.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap08/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap08/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap08/avl/bst/BinTree.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap08/avl/bst/variant/Node.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap08/bst/BinTree.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Aside.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap09/Section_8.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Aside.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_8.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap10/Section_9.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap11/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap11/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap11/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap11/fs/DirFile.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap11/fs/DirNav.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_10.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_11.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_8.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap12/Section_9.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap13/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap13/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap13/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap13/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap13/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap14/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap14/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap14/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap14/badtrampoline/Computation.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap14/simpletrampoline/Computation.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap14/trampoline/Computation.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Aside.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_10.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_8.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap15/Section_9.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap16/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap17/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap17/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap17/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap18/Aside.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap18/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap18/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap18/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap18/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap18/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap19/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap19/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap19/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap19/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap19/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap20/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap20/singleprivate/ConcurrentQueue.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap20/singlepublic/ConcurrentQueue.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap20/split/ConcurrentQueue.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap21/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap21/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap21/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap21/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap22/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap22/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap22/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap22/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap22/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap23/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap23/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap23/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap23/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap23/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Demos.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_8.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap24/Section_9.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap25/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap25/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap25/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap25/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap25/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap25/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap26/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap26/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap26/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap26/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap26/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap26/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap27/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap27/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap27/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap27/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap27/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap27/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap27/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap28/Section_1.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap28/Section_2.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap28/Section_3.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap28/Section_4.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap28/Section_5.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap28/Section_6.scala, /Users/charpov/GIT/FCP-code/Scala/main/chap28/Section_7.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Appendix.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap02.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap03.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap06.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap09.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap10.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap12.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap13.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap15.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap17.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap18.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap19.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap21.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap22.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap23.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap24.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap25.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap26.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Chap27.scala, /Users/charpov/GIT/FCP-code/Scala/main/mocks/Preface.scala, /Users/charpov/GIT/FCP-code/Scala/main/preface/FirstOf.scala, /Users/charpov/GIT/FCP-code/Scala/main/preface/RandShift.scala)
[info] 
[info]   An unhandled exception was thrown in the compiler.
[info]   Please file a crash report here:
[info]   https://github.com/lampepfl/dotty/issues/new/choose
[info] 
[info]      while compiling: <no file>
[info]         during phase: <no phase>
[info]                 mode: Mode(ImplicitsEnabled)
[info]      library version: version 2.13.10
[info]     compiler version: version 3.3.1
[info]             settings: -Wunused List(imports) -bootclasspath /Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.3.1/scala3-library_3-3.3.1.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar -classpath /Users/charpov/GIT/FCP-code/target/scala-3.3.1/classes:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-parallel-collections_3/1.0.4/scala-parallel-collections_3-1.0.4.jar:/Users/charpov/Library/Caches/Coursier/v1/https/charpov.github.io/TinyScalaUtils/maven/com/github/charpov/tiny-scala-utils_3/1.0.0/tiny-scala-utils_3-1.0.0.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/github/rssh/dotty-cps-async_3/0.9.17/dotty-cps-async_3-0.9.17.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/io/projectreactor/reactor-core/3.5.4/reactor-core-3.5.4.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-actor-typed_2.13/2.8.0/akka-actor-typed_2.13-2.8.0.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-simple/2.0.5/slf4j-simple-2.0.5.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-actor_2.13/2.8.0/akka-actor_2.13-2.8.0.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/akka/akka-slf4j_2.13/2.8.0/akka-slf4j_2.13-2.8.0.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.5/slf4j-api-2.0.5.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/config/1.4.2/config-1.4.2.jar:/Users/charpov/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-java8-compat_2.13/1.0.0/scala-java8-compat_2.13-1.0.0.jar -d /Users/charpov/GIT/FCP-code/target/scala-3.3.1/classes -deprecation true -feature true -language List(noAutoTupling) -new-syntax true -source future
[info] 
[info]                 tree: EmptyTree
[info]        tree position: :<unknown>
[info]            tree type: <notype>
[info]               symbol: val <none>
[info]            call site: package <root> in module class <root>
[info] 
[info]   == Source file context for tree position ==
[info] 
[error] ## Exception when compiling 240 sources to /Users/charpov/GIT/FCP-code/target/scala-3.3.1/classes
[error] scala.MatchError: NoType (of class dotty.tools.dotc.core.Types$NoType$)
[error] dotty.tools.dotc.core.Types$TypeLambdaCompanion.toPInfo(Types.scala:3997)
[error] dotty.tools.dotc.core.Types$TypeLambdaCompanion.toPInfo(Types.scala:3995)
[error] dotty.tools.dotc.core.Types$LambdaTypeCompanion.fromParams$$anonfun$2$$anonfun$1(Types.scala:3983)
[error] scala.collection.immutable.List.map(List.scala:250)
[error] dotty.tools.dotc.core.Types$LambdaTypeCompanion.fromParams$$anonfun$2(Types.scala:3983)
[error] dotty.tools.dotc.core.Types$PolyType.<init>(Types.scala:4197)
[error] dotty.tools.dotc.core.Types$PolyType$.apply(Types.scala:4303)
[error] dotty.tools.dotc.core.Types$PolyType$.apply(Types.scala:4300)
[error] dotty.tools.dotc.core.Types$LambdaTypeCompanion.fromParams(Types.scala:3984)
[error] dotty.tools.dotc.core.NamerOps$.recur$1(NamerOps.scala:54)
[error] dotty.tools.dotc.core.NamerOps$.methodType(NamerOps.scala:56)
[error] dotty.tools.dotc.typer.Namer.wrapMethType$1(Namer.scala:1783)
[error] dotty.tools.dotc.typer.Namer.defDefSig(Namer.scala:1787)
[error] dotty.tools.dotc.typer.Namer$Completer.typeSig(Namer.scala:791)
[error] dotty.tools.dotc.typer.Namer$Completer.completeInCreationContext(Namer.scala:934)
[error] dotty.tools.dotc.typer.Namer$Completer.complete(Namer.scala:814)
[error] dotty.tools.dotc.core.SymDenotations$SymDenotation.completeFrom(SymDenotations.scala:174)
[error] dotty.tools.dotc.core.Denotations$Denotation.completeInfo$1(Denotations.scala:187)
[error] dotty.tools.dotc.core.Denotations$Denotation.info(Denotations.scala:189)
[error] dotty.tools.dotc.core.NamerOps$ApplyProxyCompleter.complete(NamerOps.scala:106)
[error] dotty.tools.dotc.core.SymDenotations$SymDenotation.completeFrom(SymDenotations.scala:174)
[error] dotty.tools.dotc.core.Denotations$Denotation.completeInfo$1(Denotations.scala:187)
[error] dotty.tools.dotc.core.Denotations$Denotation.info(Denotations.scala:189)
[error] dotty.tools.dotc.core.SymDenotations$SymDenotation.ensureCompleted(SymDenotations.scala:393)
[error] dotty.tools.dotc.core.SymDenotations$SymDenotation.annotations(SymDenotations.scala:231)
[error] dotty.tools.dotc.core.SymDenotations$SymDenotation.getAnnotation(SymDenotations.scala:269)
[error] dotty.tools.dotc.core.SymDenotations$SymDenotation.targetName(SymDenotations.scala:573)
[error] dotty.tools.dotc.core.SymDenotations$SymDenotation.hasTargetName(SymDenotations.scala:563)
[error] dotty.tools.dotc.core.Denotations$SingleDenotation.matches(Denotations.scala:1006)
[error] dotty.tools.dotc.typer.Checking.checkDecl$1$$anonfun$2(Checking.scala:1102)
[error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
[error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
[error] scala.collection.IterableOnceOps.foreach(IterableOnce.scala:575)
[error] scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:573)
[error] scala.collection.AbstractIterable.foreach(Iterable.scala:933)
[error] scala.collection.IterableOps$WithFilter.foreach(Iterable.scala:903)
[error] dotty.tools.dotc.typer.Checking.checkDecl$1(Checking.scala:1114)
[error] dotty.tools.dotc.typer.Checking.checkNoDoubleDeclaration$$anonfun$1(Checking.scala:1119)
[error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
[error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
[error] scala.collection.immutable.List.foreach(List.scala:333)
[error] dotty.tools.dotc.core.Scopes$Scope.foreach(Scopes.scala:93)
[error] dotty.tools.dotc.typer.Checking.checkNoDoubleDeclaration(Checking.scala:1119)
[error] dotty.tools.dotc.typer.Checking.checkNoDoubleDeclaration$(Checking.scala:809)
[error] dotty.tools.dotc.typer.Typer.checkNoDoubleDeclaration(Typer.scala:116)
[error] dotty.tools.dotc.typer.Typer.typedClassDef(Typer.scala:2671)
[error] dotty.tools.dotc.typer.Typer.typedTypeOrClassDef$1(Typer.scala:3036)
[error] dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:3040)
[error] dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3111)
[error] dotty.tools.dotc.typer.Typer.typed(Typer.scala:3184)
[error] dotty.tools.dotc.typer.Typer.typed(Typer.scala:3188)
[error] dotty.tools.dotc.typer.Typer.traverse$1(Typer.scala:3210)
[error] dotty.tools.dotc.typer.Typer.typedStats(Typer.scala:3256)
[error] dotty.tools.dotc.typer.Typer.typedPackageDef(Typer.scala:2812)
[error] dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:3081)
[error] dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:3112)
[error] dotty.tools.dotc.typer.Typer.typed(Typer.scala:3184)
[error] dotty.tools.dotc.typer.Typer.typed(Typer.scala:3188)
[error] dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:3300)
[error] dotty.tools.dotc.typer.TyperPhase.typeCheck$$anonfun$1(TyperPhase.scala:44)
[error] dotty.tools.dotc.typer.TyperPhase.typeCheck$$anonfun$adapted$1(TyperPhase.scala:54)
[error] scala.Function0.apply$mcV$sp(Function0.scala:42)
[error] dotty.tools.dotc.core.Phases$Phase.monitor(Phases.scala:440)
[error] dotty.tools.dotc.typer.TyperPhase.typeCheck(TyperPhase.scala:54)
[error] dotty.tools.dotc.typer.TyperPhase.runOn$$anonfun$3(TyperPhase.scala:88)
[error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
[error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
[error] scala.collection.immutable.List.foreach(List.scala:333)
[error] dotty.tools.dotc.typer.TyperPhase.runOn(TyperPhase.scala:88)
[error] dotty.tools.dotc.Run.runPhases$1$$anonfun$1(Run.scala:246)
[error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
[error] scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
[error] scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1321)
[error] dotty.tools.dotc.Run.runPhases$1(Run.scala:262)
[error] dotty.tools.dotc.Run.compileUnits$$anonfun$1(Run.scala:270)
[error] dotty.tools.dotc.Run.compileUnits$$anonfun$adapted$1(Run.scala:279)
[error] dotty.tools.dotc.util.Stats$.maybeMonitored(Stats.scala:67)
[error] dotty.tools.dotc.Run.compileUnits(Run.scala:279)
[error] dotty.tools.dotc.Run.compileSources(Run.scala:194)
[error] dotty.tools.dotc.Run.compile(Run.scala:179)
[error] dotty.tools.dotc.Driver.doCompile(Driver.scala:37)
[error] dotty.tools.xsbt.CompilerBridgeDriver.run(CompilerBridgeDriver.java:88)
[error] dotty.tools.xsbt.CompilerBridge.run(CompilerBridge.java:22)
[error] sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:91)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$7(MixedAnalyzingCompiler.scala:193)
[error] scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
[error] sbt.internal.inc.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:248)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$4(MixedAnalyzingCompiler.scala:183)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$4$adapted(MixedAnalyzingCompiler.scala:163)
[error] sbt.internal.inc.JarUtils$.withPreviousJar(JarUtils.scala:239)
[error] sbt.internal.inc.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:163)
[error] sbt.internal.inc.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:211)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1(IncrementalCompilerImpl.scala:534)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1$adapted(IncrementalCompilerImpl.scala:534)
[error] sbt.internal.inc.Incremental$.$anonfun$apply$5(Incremental.scala:180)
[error] sbt.internal.inc.Incremental$.$anonfun$apply$5$adapted(Incremental.scala:178)
[error] sbt.internal.inc.Incremental$$anon$2.run(Incremental.scala:464)
[error] sbt.internal.inc.IncrementalCommon$CycleState.next(IncrementalCommon.scala:116)
[error] sbt.internal.inc.IncrementalCommon$$anon$1.next(IncrementalCommon.scala:56)
[error] sbt.internal.inc.IncrementalCommon$$anon$1.next(IncrementalCommon.scala:52)
[error] sbt.internal.inc.IncrementalCommon.cycle(IncrementalCommon.scala:263)
[error] sbt.internal.inc.Incremental$.$anonfun$incrementalCompile$8(Incremental.scala:419)
[error] sbt.internal.inc.Incremental$.withClassfileManager(Incremental.scala:506)
[error] sbt.internal.inc.Incremental$.incrementalCompile(Incremental.scala:406)
[error] sbt.internal.inc.Incremental$.apply(Incremental.scala:172)
[error] sbt.internal.inc.IncrementalCompilerImpl.compileInternal(IncrementalCompilerImpl.scala:534)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileIncrementally$1(IncrementalCompilerImpl.scala:488)
[error] sbt.internal.inc.IncrementalCompilerImpl.handleCompilationError(IncrementalCompilerImpl.scala:332)
[error] sbt.internal.inc.IncrementalCompilerImpl.compileIncrementally(IncrementalCompilerImpl.scala:425)
[error] sbt.internal.inc.IncrementalCompilerImpl.compile(IncrementalCompilerImpl.scala:137)
[error] sbt.Defaults$.compileIncrementalTaskImpl(Defaults.scala:2371)
[error] sbt.Defaults$.$anonfun$compileIncrementalTask$2(Defaults.scala:2321)
[error] sbt.internal.server.BspCompileTask$.$anonfun$compute$1(BspCompileTask.scala:31)
[error] sbt.internal.io.Retry$.apply(Retry.scala:47)
[error] sbt.internal.io.Retry$.apply(Retry.scala:29)
[error] sbt.internal.io.Retry$.apply(Retry.scala:24)
[error] sbt.internal.server.BspCompileTask$.compute(BspCompileTask.scala:31)
[error] sbt.Defaults$.$anonfun$compileIncrementalTask$1(Defaults.scala:2319)
[error] scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:63)
[error] sbt.std.Transform$$anon$4.work(Transform.scala:69)
[error] sbt.Execute.$anonfun$submit$2(Execute.scala:283)
[error] sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
[error] sbt.Execute.work(Execute.scala:292)
[error] sbt.Execute.$anonfun$submit$1(Execute.scala:283)
[error] sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
[error] java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[error] java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
[error] java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
[error] java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[error] java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[error] java.base/java.lang.Thread.run(Thread.java:1583)
[error]            
[error] stack trace is suppressed; run last Compile / compileIncremental for the full output
[error] (Compile / compileIncremental) scala.MatchError: NoType (of class dotty.tools.dotc.core.Types$NoType$)

Note that compiling either record Foo(String s) {} or class Foo<Boo> {} works fine.

@charpov charpov added itype:bug itype:crash stat:needs triage Every issue needs to have an "area" and "itype" label labels Dec 16, 2023
@charpov
Copy link
Contributor Author

charpov commented Dec 16, 2023

BTW, everything works fine with Scala 3.3.2-RC1.
Actually, it doesn't. It's confusing because enough retries of incremental compilation can sometimes build the entire code...

@bishabosha
Copy link
Member

thanks for reporting! this is a duplicate of #18639

@bishabosha bishabosha closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2023
@bishabosha bishabosha added stat:duplicate and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Dec 16, 2023
@charpov
Copy link
Contributor Author

charpov commented Dec 16, 2023

Thanks. Sorry for not catching the duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants