-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Scala 3: Toplevel definition targetName is defined in... #4348
Comments
Yup, I've seen this issue. Indeed the error message explains the problem perfectly:
I.e., don't put both |
The problem is here, among many places: Adding JVM dependencies to Scala.js projects creates issues like this. |
Oh thank you very much for the speedy response, @armanbilge ! I was looking at my build file struggling to see where the issue may be, I'll look into that dependency and see how I can solve it. |
@gvolpe it's probably not just that dependency. You need to carefully audit your dependencies and separate them into |
Thanks @armanbilge , looking into it now. Wondering how the same build worked with previous versions, it must be a recent change, no? |
Yes, you are seeing an artifact of #4315 which landed in 2.9.0. That was a change to Cats private code, so it has no compatibility implications. However, Scala 3 / TASTy appears to be a lot more brittle to these sort of build misspecifications. |
Hi folks,
Has anyone have come across this issue when cross-compiling to JVM and JS using Scala 3? According to the release notes, Cats 2.8.0 is binary-compatible with 2.9.0, so I'm not sure if this issue is related to binary compatibility, it seems more of a duplication of top-level definitions both in
cats-core
andcats-core_sj1
.This started failing right after upgrading to Cats 2.9.0, you can find the full logs here, using Scala
3.2.2-RC1
.I also tried downgrading to the stable version
3.2.1
, same issue.Any help would be much appreciated, as this is blocking me from upgrading to the latest Cats Effect version and all the dependencies built using the latest Cats version. Thank you! 🙏🏽
The text was updated successfully, but these errors were encountered: