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

SBT prompt for 'new scala/scala-seed.g8' is broken in Windows using MSYS2 / Git Bash / Cygwin #414

Open
bruno-medeiros opened this issue Jan 31, 2019 · 2 comments

Comments

@bruno-medeiros
Copy link

steps

Run sbt new scala/scala-seed.g8 in MSYS2 / Git Bash / Cygwin
The new task will ask for the new project name

problem

Typing characters into the prompt, but they will not be displayed. Also backspace gets interpreted as a character (\177), not as a deletion. Pressing either creates a project with weird name:

image

expectation

Typed characters are displayed, and backspace/delete delete characters (and arrow keys move, etc)

notes

sbt version: 12.8

Tried with Git-Bash: Git-2.20.1-64-bit
and MSYS2: msys2-x86_64-20180531

@eugeniyk
Copy link
Contributor

eugeniyk commented Jun 1, 2021

sbt/sbt#5063
as a workaround, suggested to use --supershell=false for sbt or update sbt version

@ches
Copy link
Contributor

ches commented Jul 25, 2021

Although this may have been fixed in sbt for sbt new, supershell still interferes the same way for g8Scaffold when a scaffold has variable parameters. Maybe this should be filed as a new issue.

The scaffold case is perhaps even more frustrating, because you're often in the middle of long-running interactive sbt shell session when using g8Scaffold, unlike sbt new—starting another shell session with --supershell=false disrupts you mid-workflow.

(I've tried various forms of set Global/useSuperShell := false and set g8Scaffold/useSuperShell := false in an interactive session without success in actually disabling the super shell, maybe that's a separate issue for upstream sbt).

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

No branches or pull requests

3 participants