Skip to content

REPL doesn't work on Windows #4587

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

Closed
Blaisorblade opened this issue May 26, 2018 · 1 comment
Closed

REPL doesn't work on Windows #4587

Blaisorblade opened this issue May 26, 2018 · 1 comment

Comments

@Blaisorblade
Copy link
Contributor

I heard mentions of this, but I wasn't sure and couldn't find an issue for this (only discussion in #2524). I only thought support was limited, not that things crashed right away.

This is inside the Mingw/MSYS2-based "Git Bash" from https://gitforwindows.org/ on an official Win 10 VM. We should also support the standard terminal I guess (well, as well as scala does), but bash scripts don't work in it — IIRC Scala 2 provides .BAT files for that reason.

Output:

$ dotr
Starting dotty REPL...
bash: /dev/tty: No such device or address
Exception in thread "main" java.lang.NullPointerException
        at dotty.tools.repl.terminal.Terminal$.initialConfig$1(Terminal.scala:30                                                                                                                                   2)
        at dotty.tools.repl.terminal.Terminal$.readLine(Terminal.scala:313)
        at dotty.tools.repl.AmmoniteReader.prompt(AmmoniteReader.scala:125)
        at dotty.tools.repl.ReplDriver.readLine(ReplDriver.scala:194)
        at dotty.tools.repl.ReplDriver.loop$1(ReplDriver.scala:140)
        at dotty.tools.repl.ReplDriver.runUntilQuit$$anonfun$1(ReplDriver.scala:                                                                                                                                   154)
        at dotty.tools.repl.ReplDriver.withRedirectedOutput$$anonfun$2$$anonfun$                                                                                                                                   1(ReplDriver.scala:163)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
        at scala.Console$.withErr(Console.scala:192)
        at dotty.tools.repl.ReplDriver.withRedirectedOutput$$anonfun$1(ReplDrive                                                                                                                                   r.scala:163)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:58)
        at scala.Console$.withOut(Console.scala:163)
        at dotty.tools.repl.ReplDriver.withRedirectedOutput(ReplDriver.scala:163                                                                                                                                   )
        at dotty.tools.repl.ReplDriver.runUntilQuit(ReplDriver.scala:154)
        at dotty.tools.repl.Main$.main(Main.scala:6)
        at dotty.tools.repl.Main.main(Main.scala)
@smarter
Copy link
Member

smarter commented May 26, 2018

Known issue: #4309

@smarter smarter closed this as completed May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants