Coder Social home page Coder Social logo

Comments (6)

Sciss avatar Sciss commented on June 21, 2024

sbt 1.4.3, Linux. Process just hangs on forever, never pressing "any" key, nor ctrl-C, ctrl-D help. Only kill.

[info] Main Scala API documentation successful.
Embedded server listening at
  http://127.0.0.1:4000
Press any key to stop.

pp
^C
[warn] Canceling execution...
^F^C
[warn] Canceling execution...
^C
[warn] Canceling execution...
^C
[warn] Canceling execution...
^C
[warn] Canceling execution...
^C
[warn] Canceling execution...
^C
[warn] Canceling execution...

from sbt-site.

ennru avatar ennru commented on June 21, 2024

Does this still happen with sbt-site 1.4.1?
See #163

from sbt-site.

Sciss avatar Sciss commented on June 21, 2024

yes, I'm using 1.4.1

from sbt-site.

steinybot avatar steinybot commented on June 21, 2024

The issue is that unfiltered.util.RunnableServer does:

        println("Press any key to stop.")
        def doWait(): Unit = {
          try { Thread.sleep(1000) } catch { case _: InterruptedException => () }
          if(System.in.available() <= 0)
            doWait()
        }
        doWait()

But input from sbt doesn't go on standard input.

from sbt-site.

steinybot avatar steinybot commented on June 21, 2024

But input from sbt doesn't go on standard input.

Actually it is that System.in.available always returns 0.

from sbt-site.

steinybot avatar steinybot commented on June 21, 2024

Fixed in sbt 1.7 (yet to be released) sbt/sbt#6964

from sbt-site.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.