Open yadavan88 opened 4 months ago
interesting... so it seems this warning is printed somewhere in Bloop, maybe?
it goes away when using --server=false
:
scala-cli JavaArgs.java --server=false
# Note: ~/IdeaProjects/scala-cli-tests-2/untitled/cli-java-repro/JavaArgs.java uses preview features of Java SE 21.
# Note: Recompile with -Xlint:preview for details.
# appName = baeldungApp , language = english and country = usa
It seems we should explicitly enable annotation processing in some cases, so that the Java compiler is satisfied... Still not sure where we introduce a processor, however.
Likely guess: this may be caused by us using the SemanticDB compiler plugin. it seems we should explicitly enable annotation processing on JDKs 21+, and possibly pass the processor path to the Java compiler. Some more investigation may be required.
Version(s) 1.4.0
Describe the bug When running a Java class using scala-cli, it shows this warning.
To Reproduce
JavaArgs.java
scala-cli JavaArgs.jav
touch Test.scala
andscala-cli Test.scala
). Obviously it fails to runscala-cli JavaArgs.java
, this time it runs without any warningExpected behaviour No warning
Metals Log: