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

Open
scabug opened this Issue Mar 10, 2016 · 12 comments

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Author

scabug commented Mar 13, 2016

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

@scabug

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Author

scabug commented Mar 15, 2016

@retronym said:
Probable workaround:

scala -Djline.terminal=windows

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Mar 15, 2016

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

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Jan 12, 2017

@scabug scabug added this to the Backlog milestone Apr 7, 2017

@SethTisue SethTisue removed the critical label Jul 27, 2017

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