You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Dotty, we are using dotty.tools.repl.ReplDriver.run as it looks like it's the closest analogue to IMain.interpret.
Unfortunately, ReplDriver prints all the errors / warnings to the out: PrintStream parameter (e.g. see ReplDriver.displayErrors) together with normal output.
Could you please add some reporter parameter similarly to how it is done in IMain ins Scala 2, so that we can have more control of how the errors are reported in Scala Plugin?
Here is an example of how warnings/errors are displayed now:
The text was updated successfully, but these errors were encountered:
Hi!
I am working on support of Worksheet / REPL for Dotty in IntelliJ.
In Scala 2 under the hood of Worksheets we are using
scala.tools.nsc.interpreter.ILoop
andscala.tools.nsc.interpreter.IMain.interpret
.It allows injecting your own errors-reporter, see:
https://github.com/JetBrains/intellij-scala/blob/0bed3d4fc4f411ff14d98dfb52d9e30b7a6c2957/scala/compiler-jps/resources/ILoopWrapper213Impl.scala#L46
https://github.com/JetBrains/intellij-scala/blob/0bed3d4fc4f411ff14d98dfb52d9e30b7a6c2957/scala/compiler-jps/resources/ILoopWrapperImpl.scala#L45
In Dotty, we are using
dotty.tools.repl.ReplDriver.run
as it looks like it's the closest analogue toIMain.interpret
.Unfortunately,
ReplDriver
prints all the errors / warnings to theout: PrintStream
parameter (e.g. seeReplDriver.displayErrors
) together with normal output.Could you please add some
reporter
parameter similarly to how it is done inIMain
ins Scala 2, so that we can have more control of how the errors are reported in Scala Plugin?Here is an example of how warnings/errors are displayed now:

The text was updated successfully, but these errors were encountered: