Skip to content
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

New REPL doesn't work well in Cygwin #9695

Closed
scabug opened this issue Mar 10, 2016 · 13 comments
Closed

New REPL doesn't work well in Cygwin #9695

scabug opened this issue Mar 10, 2016 · 13 comments

Comments

@scabug
Copy link

scabug commented Mar 10, 2016

A couple of things detected:

  • No history with up/down arrows
  • Semi-random cursor behavior, not easily test-case reproducable, but reproducable when encountered. E.g. typing a particular sequence of characters caused the cursor to jump to the start of the line. This happened every time with that particular string. (Yes, would be nice to have that string, but my console is now closed, and I can't get any history :-) )
@scabug
Copy link
Author

scabug commented Mar 10, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9695?orig=1
Reporter: @nilskp
Affected Versions: 2.11.8

@scabug
Copy link
Author

scabug commented Mar 10, 2016

@som-snytt said:
WFM on cygwin-64, windows 7. Day job lap-top. I haven't researched how to fix wrapping at 80 columns.

@scabug
Copy link
Author

scabug commented Mar 11, 2016

@nilskp said (edited on Mar 11, 2016 1:52:22 AM UTC):
If one calls scala.bat from Cygwin, the behavior is much improved. Perhaps this can be detected inside the bash script?

@scabug
Copy link
Author

scabug commented Mar 11, 2016

@nilskp said:
Quoting from the main page, Cygwin is:
{quote}a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows.{quote}

@scabug
Copy link
Author

scabug commented Mar 11, 2016

@nilskp said:
Sorry about that. I wasn't paying much attention to who commented, just saw "What OS?".

Anyway, I'm on Win10 64-bit, using cyginw64 (not sure what version, but very recent), running inside ConEmu 151210.

I'm actually running through scala.bat now and it mostly works, although seems to hang on :quit. Again, some of this could be ConEmu related, not sure.

@scabug
Copy link
Author

scabug commented Mar 13, 2016

@retronym said:
This change in 2.11.8 is likely involved scala/scala#4674

@scabug
Copy link
Author

scabug commented Mar 13, 2016

@retronym said (edited on Mar 13, 2016 11:30:57 PM UTC):
@nilskp Could you please post a transcripts of bash -x scala from your system for 2.11.7 and 2.11.8?

@scabug
Copy link
Author

scabug commented Mar 15, 2016

@retronym said:
[deleted last two of Nils' comments in favour of this gist]

https://gist.github.com/retronym/bf0aff97f85952bfc545

@scabug
Copy link
Author

scabug commented Mar 15, 2016

@retronym said:
In 2.11.8, we are now using jline.terminal=unix under cygwin, rather than the automatic selection which would have picked =windows.

A similar discussion for SBT: https://groups.google.com/forum/#!topic/simple-build-tool/629FH51VaGM

@scabug
Copy link
Author

scabug commented Mar 15, 2016

@retronym said:
Probable workaround:

scala -Djline.terminal=windows

@scabug
Copy link
Author

scabug commented Mar 15, 2016

@nilskp said:
scala -Djline.terminal=windows does not appear to make any difference.

@scabug
Copy link
Author

scabug commented Jan 12, 2017

@adriaanm said:
Could you give http://downloads.lightbend.com/scala/2.11.9-a5d38ea-nightly/scala-2.11.9-a5d38ea-nightly.zip a try? Upgraded to last jline2 version

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@SethTisue SethTisue modified the milestones: Backlog, 2.13.2 Apr 29, 2020
@SethTisue
Copy link
Member

SethTisue commented Apr 29, 2020

believed fixed in 2.13.2 (and may well have been fixed earlier, actually). if not fixed for you, please open a new ticket and be maximally specific about the conditions for reproducing it

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