-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
semanticDbData
target fails for mixed scala/java modules
#2981
Comments
semanticDbData
target fails for mixed scala/java modules
semanticDbData
target fails for mixed scala/java modulessemanticDbData
target fails for mixed scala/java modules
Thanks for reporting! This issue is probably due to the fact, that the Scala compiler understands Java code but does not compile it, so we can have Scala code see Java code, but to have Java code see the Scala version, we need the compiled classfiles. The We might want to try and reevaluate these options:
|
Thanks for the response! We were able to work around the issue by avoiding Java->Scala dependencies, so this is no longer critical for us. |
I'm revisiting a mill 0.10.n -> 0.11.m upgrade and seeing this. Regarding the second option, if I do:
Does that invalidate it as a workaround in the meantime? I might be misinterpreting, but before this 0.11 RC (https://github.com/com-lihaoyi/mill?tab=readme-ov-file#0110-m2---2023-01-13) java wasn't supported for semanticdb/scalafix right (makes sense, we didn't see this issue before)? I think we wouldn't mind just disabling it for Java files (to match old behaviour). |
For example:
With this,
mill foo.compile
works fine, butmill foo.semanticDbData
fails withThe text was updated successfully, but these errors were encountered: