question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sbt console won't allow any input.

See original GitHub issue

(See the guidelines for contributing, linked above)

steps

Just invoke sbt console in any folder

problem

sbt console won’t allow any input. It doesn’t echo back anything I type except <Enter> key

It responds to my <Enter> and changes a line

Also pressing CTRL-C lets me out of the console.

expectation

Working like a regular console (echoing back what I type)

notes

I have installed scala and sbt through sdkman (http://sdkman.io/index.html); That may be a problem?

scala version : 2.12.4 sbt version: 1.1.1 OS : Mac OS X 10.13.3 openjdk version “1.8.0_152”

And I wonder this is related to this issue ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
suewonjpcommented, Mar 16, 2018

Seems like sdkman has nothing to do with this issue.

This symptom appears with Installing via Homebrew anyway.

And I tried sbt "-Djline.terminal=none" and it worked!

Just invoking the console with typing sbt caused this issue (maybe, only to me?)

I think this is a bug…

0reactions
vegerotcommented, Oct 24, 2019

@suewonjp a year and a half later and no change. BTW this is a demonstration of the problem: https://youtu.be/cwHybM85Vpc

My inputrc:

## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward

set colored-stats On
set completion-prefix-display-length 3
set mark-symlinked-directories  On
set show-all-if-ambiguous On
set visible-stats On

Edit: I forgot to mention in the video that it makes weird files including control characters 'hello-world'$'\177\177\177\177\177\177\177\177\177''hello'$'\177\177\177\177\177\177''wtf?!'

Read more comments on GitHub >

github_iconTop Results From Across the Web

Console input within SBT does not echo to the screen
When I compile this simple code and run it from the command line (outside of sbt), I see the keystrokes as I type...
Read more >
Getting Started with Scala and sbt on the Command Line
Run sbt . This will open up the sbt console. Type ~run . The ~ is optional and causes sbt to re-run on...
Read more >
Chapter 2. Getting started - sbt in Action - liveBook · Manning
Run the settings help on the sbt command line and see if that points you to where source code for the project should...
Read more >
SBT for the absolute beginner 2 (Settings and Tasks) - Medium
So whenever SBT is used to run your project, the commands added will be used to run your program. I'm sure the scalacOptions...
Read more >
sbt Reference Manual — Combined Pages
Starts the Scala REPL with project classes and dependencies on the ... Some of the information inspect displays won't make sense yet, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found