-
Notifications
You must be signed in to change notification settings - Fork 202
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
Add expression evaluation for Scala 2.12 and 2.13 #1567
Conversation
828a381
to
2b4fec2
Compare
0c26af4
to
7ad6b98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @adpi2 ! I added some minor comments, but the biggest issue is the updated to newest Scala. It would probably be best to tackle it separately ass there seem to be issues with native image.
Upgrade scala-debug-adapter to 2.0.2 For expression evaluation, the scala-debug-adapter now needs: - a set of all the class path entries to be able to map the source files to the class files - the jvm runtime - the expression compiler class loader containing the expression-compiler jar and the compiler jars Add a simple test on expression evaluation
7ad6b98
to
a747cfa
Compare
c278de9
to
ec508fc
Compare
@tgodzik Out of curiosity, do you know why native images are broken on 2.12.13? |
It's probably a part of Scala that is not supported on Native Image, there are ways around it with https://github.com/scalameta/sbt-native-image, but I haven't had time to look properly into that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great work and pretty exciting!
Upgrade to scala 2.12.13 to be able to test expression evaluation. The tests were running with Scala 2.12.8 but expression evaluation is only available on Scala 2.12.10 or greater.
Upgrade scala-debug-adapter to 2.0.2, the debug server now needs:
Add a simple test on expression evaluation.
Warning: After merging this PR, Bloop debug session will no longer be compatible with the current version of Metals. scalameta/metals#2959 in Metals intends to fix this.