sbt refuses to compile in bash's background mode

Created on 5 Mar 2013  路  4Comments  路  Source: sbt/sbt

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

Bug

Most helpful comment

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: https://github.com/ninja-build/ninja/issues/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 :).

All 4 comments

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

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

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"

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: https://github.com/ninja-build/ninja/issues/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 :).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

christobill picture christobill  路  3Comments

padurean picture padurean  路  3Comments

laughedelic picture laughedelic  路  3Comments

eed3si9n picture eed3si9n  路  3Comments

lxohi picture lxohi  路  3Comments