Skip to content

Wrong setup og "JLINE_TERMINAL*" in common / scalac shell scripts #11171

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
flomebul opened this issue Jan 19, 2021 · 2 comments · Fixed by #11172
Closed

Wrong setup og "JLINE_TERMINAL*" in common / scalac shell scripts #11171

flomebul opened this issue Jan 19, 2021 · 2 comments · Fixed by #11172

Comments

@flomebul
Copy link
Contributor

When launching "scala" under cygwin, the output is

$ scala
Starting scala3 REPL...
←[?1h←=←[90m~←[0m
←[?2004h←[34mscala> ←[0m:quit
:quit
←[?1l←>←[?1000l←[?2004lLuc@Mulan ~
$

This is due to an incomplete setup of the "JLINE_TERMINAL"
The "jna-5.3.1.jar" library must be added to the "jline-terminal-jna-3" library

@michelou
Copy link
Contributor

michelou commented Jan 19, 2021

@flomebul You can find the JNA setup I use on MS Windows (Windows command prompt) for over two years (since Dotty 0.9) in the batch file common.bat (lines 51-54).

The above file is called from the batch files scala.bat, scalac.bat and scalad.bat which are the commands to be run by a Scala 3 user.

PS. For more information see my GitHub project dotty-examples.

@flomebul
Copy link
Contributor Author

@michelou I agree. I already have apply these update around "JNA" variable in my cygwin environment.
If I can, I can propose a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants