dbdahl / rscala

The Scala interpreter is embedded in R and callbacks to R from the embedded interpreter are supported. Conversely, the R interpreter is embedded in Scala.
Other
99 stars 18 forks source link

Release for Scala 3? #27

Open darrenjw opened 3 years ago

darrenjw commented 3 years ago

Would it be possible to release rscala for Scala 3?

dbdahl commented 3 years ago

I have not been using Scala for my own projects in the last couple of years. I have not followed changes in Scala 3 and migrating to Scala 3 seems to be nontrivial. I would be glad to help get rscala working for Scala 3, but the heavy lifting will have to come from contributors...

philwalk commented 1 year ago

I looked at it, and there would need to be a scala3 version of rscala/server because the compiler no longer provides scala.tools.nsc.interpreter.IMain. I found this possible basis for a rewrite (not sure if it's right):

Dmitrii Naumenko
@unkarjedy
Feb 03 2020 05:12
Hi.
I am working on Worksheet / REPL support for Scala 3 in IntelliJ.
As I understand the closest analogue to Scala 2 scala.tools.nsc.interpreter.IMain.interpret is dotty.tools.repl.ReplDriver.run