Skip to content

Unable to create a system terminal with Scala on Windows on ARM64 #15150

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

Open
rubin55 opened this issue May 9, 2022 · 1 comment
Open

Unable to create a system terminal with Scala on Windows on ARM64 #15150

rubin55 opened this issue May 9, 2022 · 1 comment

Comments

@rubin55
Copy link
Contributor

rubin55 commented May 9, 2022

Compiler version

Scala compiler version 3.1.2 -- Copyright 2002-2022, LAMP/EPFL

Issue

Simply running scala command to get to REPL fails with an exception on Windows on ARM64:

~\> scala
Exception in thread "main" java.lang.IllegalStateException: Unable to create a system terminal
        at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:323)
        at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:265)
        at dotty.tools.repl.JLineTerminal.<init>(JLineTerminal.scala:23)
        at dotty.tools.repl.ReplDriver.runUntilQuit(ReplDriver.scala:136)
        at dotty.tools.repl.ReplDriver.tryRunning(ReplDriver.scala:127)
        at dotty.tools.repl.Main$.main(Main.scala:6)
        at dotty.tools.repl.Main.main(Main.scala)

Expectation

I expect scala to work as any Java application on Windows on ARM64. The issue might be related to Jansi support (or lack thereof) for this specific os.name/os.arch combination, or it may be an initialization issue in scala itself.

@rubin55 rubin55 added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels May 9, 2022
@griggt
Copy link
Contributor

griggt commented May 9, 2022

Somewhat related to #11978. I don't know if the TERM=dumb workaround is applicable on Windows.

@nicolasstucki nicolasstucki added area:tooling and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels May 17, 2022
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

4 participants