Closed eed3si9n closed 6 months ago
I guess more than anything these are reflection of the lack of test coverage against the Scala compiler bridges that seceded away from Zinc repo.
@bishabosha wrote on https://github.com/scala/scala3/pull/20157#issuecomment-2069464291
@eed3si9n on the current main branch with sbt 1.9.9, I printed out the relations after
a/compile
in that task and it seems some classes are missing (such asa.A.Inner_sel
):class names: Relation [ ${BASE}/a/src/main/scala/a/A.java -> a.A ${BASE}/a/src/main/scala/a/A.java -> a.A$.Inner ${BASE}/a/src/main/scala/a/A.java -> a.A$.Inner_sel ${BASE}/a/src/main/scala/a/AImport.java -> a.AImport ${BASE}/a/src/main/scala/a/AImport.java -> a.AImport.Inner ]
here are the set of
apis.allInternalClasses
:[ a.A, a.AImport.Inner, a.A$.Inner_sel, a.A.Inner_sel, a.AImport, a.A$.Inner, a.A.Inner, a.AImport$.Inner ]
I'm still not sure where the source of regression is, but one thing we can try is make isJavaClass
more robust - https://github.com/sbt/zinc/blob/3de85577eebec74fb2cddb53f616eecb565b7d12/internal/zinc-core/src/main/scala/sbt/internal/inc/Analysis.scala#L103-L107
and try a.A$.Inner_sel
when a.A.Inner_sel
if not found by substituting the last .
with $.
.
With https://github.com/scala/scala3/pull/20279, pipelining/Yjava-tasty-fromjavaobject
works on my machine with sbt 1.10.0-RC2.
I'm going to close this as not-a-bug.
steps
See https://github.com/scala/scala3/pull/20157
problem
The following scripted tests failed on Scala 3 repo: