You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fails in 3.2.0-RC1
Fails with 3.2.1-RC1-bin-20220706-9d07d52-NIGHTLY
Works with 3.1.3
Minimized code
The snippet seems to be running correctly when using scalac + javac directly, however it fails in build-tools, eg. scala-cli used to reproduce this issue or sbt in the mentioned project
Compiling project (Scala3.2.1-RC1-bin-20220706-9d07d52-NIGHTLY, JVM)
[error] ./JavaMDCBinder.java:5:18: value ScalaMDCAdapter is not a member of bar.slf4j - did you mean slf4j.ScalaMDCAdapter?
[error] importbar.slf4j.ScalaMDCAdapter$;
[error] ^Error compiling project (Scala3.2.1-RC1-bin-20220706-9d07d52-NIGHTLY, JVM)
Expectation
The text was updated successfully, but these errors were encountered:
Hmmm, it works for me with 3.2.0-RC1, but fails on more recent nightlies.
The snippet seems to be running correctly when using scalac + javac directly, however it fails in build-tools, eg. scala-cli used to reproduce this issue or sbt in the mentioned project
I was able to reproduce without a build tool by running scalac JavaMDCBinder.java ScalaMDCAdapter.scala, javac not required.
Moving import selector checking from PostTyper to Typer had the
side-effect that they were also checked in Java code. But that does
not work since the Java files are compiled before the Scala files
so the selected reference has not been seen yet.
Fixed by disabling import selector checks for Java files.
Fixesscala#15608
Community build regression for https://github.com/outr/scribe (maintainer @darkfrog26)
Based on https://scala3.westeurope.cloudapp.azure.com/blue/organizations/jenkins/buildCommunityProject/detail/buildCommunityProject/572/pipeline/
Compiler version
Fails in 3.2.0-RC1
Fails with 3.2.1-RC1-bin-20220706-9d07d52-NIGHTLY
Works with 3.1.3
Minimized code
The snippet seems to be running correctly when using scalac + javac directly, however it fails in build-tools, eg. scala-cli used to reproduce this issue or sbt in the mentioned project
Output
Expectation
The text was updated successfully, but these errors were encountered: