Oh, this bring back memories…
Anyway, using the :quit
command is the preferred way to close the REPL. The deprecation warning is indeed about Predef.exit()
vs sys.exit()
, see SI-4563. But that whitespace error seems to be a bug in the bat launcher.
It manages to start the REPL successfully, so the error is not with starting scala. Looking at your error message, try replacing line 92 of scala.bat
(the last one), which should be:
@%COMSPEC% /C exit %errorlevel% >nul
with this (note the double quotes):
@"%COMSPEC%" /C exit %errorlevel% >nul
This happens to you because you use TCC (which is in Progam Files) as the default interpreter instead of cmd (which is in system32).
I'm opening a ticket, %COMSPEC%
should always be escaped anyway.
— Antoine
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
There's another ticket about passing in jvm options on Windows.
And I actually could never use the script runner on cygwin, for whatever reason. That's too bad, because it's kind of fun.