-
Notifications
You must be signed in to change notification settings - Fork 26
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
Warning causing evaluation to fail #747
Comments
I realized I created the issue in Bloop 🤦♂️ The issue I had was that expression evaluation was failing in a file which had potential warning when adding -Xsource:3. Do we add that flag by default? |
Yes, if it is a Scala 2 entry it seems we had the scala-debug-adapter/modules/core/src/main/scala/ch/epfl/scala/debugadapter/internal/DebugTools.scala Line 135 in 50ba5c0
The reason for this is to be able to evaluate expressions in Scala 2 libraries. We don't know what were there compiler options, but it is likely that they use I see 2 possibilities to fix this issue:
I think I prefer solution 2 because, in mixed Scala 2 - Scala 3 projects, we also need to add |
Though isn't the warning fatal by default with -Xsource:3 from what I see? https://docs.scala-lang.org/scala3/guides/migration/tooling-scala2-xsource3.html Maybe we need to change to |
Yes you're right. Then maybe adding |
I am getting:
though the workspace doesn't use -Xsource:3
Maybe we could at least silence the warning?
The text was updated successfully, but these errors were encountered: