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

Problem with terminal's command promt after execution of scala scripts #11536

Closed
BarkingBad opened this issue Feb 25, 2021 · 6 comments
Closed

Comments

@BarkingBad
Copy link
Contributor

Compiler version

Scala compiler version 3.0.0-RC2-bin-SNAPSHOT-git-c037293 -- Copyright 2002-2021, LAMP/EPFL

Execution of scripts like /bin/scalac or /bin/scaladoc breaks the terminal, command prompt is not in new line position and typing is invisible

Operating system:
Description: Ubuntu 20.04.1 LTS
Release: 20.04

I am using default bash terminal.

@philwalk could you take a look, as it seems problem exists since your recent changes. Thanks in advance :D

obraz

@michelou
Copy link
Contributor

I encountered the same issue (aka "typing is invisible") with the MinGW shell prompt (on MS Windows).

@philwalk
Copy link
Contributor

I was able to reproduce the problem on Ubuntu release 18.04.1 ... looking into it.

@philwalk
Copy link
Contributor

I have a probable fix, but I need to verify that it works with all environments.

@philwalk
Copy link
Contributor

philwalk commented Feb 25, 2021

It turns out that manual REPL tests that have to be performed for 4 terminals over 5 windows shell environments, plus Linux, Linux-WSL and OSX.

That's more than 20 terminal/shell combinations.

Terminals:

  • cmd
  • mintty
  • conemu
  • windows terminal

Windows Shell environments:

  • MINGW32_NT-10.0-19042 d5 3.1.7-340.x86_64 2020-11-08 12:32 UTC x86_64 Msys
  • MINGW64_NT-10.0-19042 d5 3.1.7-340.x86_64 2020-11-08 12:32 UTC x86_64 Msys
  • MSYS_NT-10.0-19042 d5 3.1.7-340.x86_64 2020-11-08 12:32 UTC x86_64 Msys
  • CYGWIN_NT-10.0 d5 3.1.7(0.340/5/3) 2020-08-22 17:48 x86_64 Cygwin
  • Linux d5 5.4.72-microsoft-standard-WSL2 allow lazy loading of parts of types #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

In addition, I'm currently able to do manual REPL tests on Ubuntu Linux:
Linux quadd 5.4.0-62-generic #70~18.04.1-Ubuntu SMP Tue Jan 12 17:18:00 UTC 2021 x86_64 x86_64

  • x86_64 GNU/Linux

We should also test OSX/Darwin as well (not currently able to do so myself).
Maybe also need to test X-windows ssh sessions ...

I Will push a working fix soon, hopefully.

@michelou
Copy link
Contributor

@philwalk Thanks for the detailed feedback.

@BarkingBad
Copy link
Contributor Author

Tank you for your fast response and fixes

anatoliykmetyuk added a commit that referenced this issue Mar 3, 2021
fix for #11536 and other terminal and shell environment issues
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

3 participants