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 refuses to compile in bash's background mode #701

Closed
kim0 opened this issue Mar 5, 2013 · 4 comments
Closed

sbt refuses to compile in bash's background mode #701

kim0 opened this issue Mar 5, 2013 · 4 comments
Labels
Milestone

Comments

@kim0
Copy link

kim0 commented Mar 5, 2013

Trying to run "sbt compile &" from a bash shell prompt, once I hit enter, the process immediately jump to stopped state. It refuses to compile until it is made to work in "fg" mode again. Since I'm attempting to run this in background shell scripts, it's preventing normal operation. The tool seems to use STTY mode, even in batch mode. Please at least provide an option to turn that off

@charles-dyfis-net
Copy link

To provide a clearer spec -- the stty tool should not be used when operating with -batch passed on the command line.

@harrah
Copy link
Member

harrah commented Mar 8, 2013

This behavior comes from JLine. JLine was upgraded by #684 from 1.0 to version 2.10, which fixes this problem.

@harrah harrah closed this as completed Mar 8, 2013
@cmaeder
Copy link

cmaeder commented Mar 18, 2016

Currently. I'm observing the same behaviour for "sbt compile &" and "sbt -batch compile &" using sbt-version 0.13.11 and I've no clue how to keep it running in the background. (In the foreground I get the message "Resolving jline#jline;2.12.1"). I'm on Ubuntu wily using java version "1.7.0_95"

@darabos
Copy link
Contributor

darabos commented Oct 6, 2016

It's the same here, Ubuntu 16.04, SBT 0.13.12. Can we reopen this?

$ sbt about &
[1]+  Stopped                 sbt about

It never completes. (Unless I run fg.)

There's a workaround:

sbt -Djline.terminal=jline.UnsupportedTerminal about &

Some more info from myself: ninja-build/ninja#1190

Basically the same issue on Hive's Beeline: https://issues.apache.org/jira/browse/HIVE-6758

Basically the same issue on STS: https://issuetracker.springsource.com/browse/STS-2552

It sounds really like a JLine issue, but I haven't seen a ticket for that. Feel free to kick the bucket to them :).

stevebillings pushed a commit to blackducksoftware/synopsys-detect that referenced this issue Apr 12, 2021
…(that is, to enable Detect) to run in the background
stevebillings pushed a commit to blackducksoftware/synopsys-detect that referenced this issue Apr 13, 2021
…yDot" (that is, to enable Detect) to run in the background
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants