What arguments does the ConsoleArgs parameter to the Scala Console run configuration accept?

Whatever I type in the ConsoleArgs parameter does appear at the end of the command echoed in the Scala console, but seems to be ignored. What arguments are supported? I'm running IDEA 10.5.2 and Scala plugin 0.4.1517

I would like to type a command such as ":load commands.scala" that runs a Scala script when I start the console. I currently type the load command when I start a console but would like to have this done by default.

3 comments

You possibly want to pass to console some internal parameters.
For example: -Xexperimental, -verbose, -Xfuture and so on.
There is no such feature, as you want.

Best regards,
Alexander Podkhalyuzin.

0

So it appears that the "scalac" command options are accepted but not the options to "scala" - correct?

At a command prompt "scala -help" shows a startup option of "-i <file>" that "preloads <file> before starting the REPL". This option does what I want in a command window but in IDEA I get "scala: bad option: '-i'". Note that a defect in Scala 2.9.1 causes the command to hang unless a -Yrepl-sync is also specified (see: https://issues.scala-lang.org/browse/SI-4945).

Thanks,
Rich

0

Yes, it's just scalac options. I should check, is it possible to add scala options too.
I added an issue for it: http://youtrack.jetbrains.net/issue/SCL-3875

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.