sbt / sbt

sbt, the interactive build tool
https://scala-sbt.org
Apache License 2.0
4.81k stars 938 forks source link

sporadic ellipsis after quitting console (Scala REPL) #6804

Open eed3si9n opened 2 years ago

eed3si9n commented 2 years ago

steps

Perhaps related to #6767: I get sporadic dots before getting to the sbt shell after trying exit the REPL started via console, requiring an inconvenient extra press on Enter before getting the sbt promp. This is in sbt 1.6.1:

sbt:gist> console
Welcome to Scala 3.1.0 (11.0.13, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
scala> :quit
[success] Total time: 7 s, completed Dec 30, 2021, 11:27:34 AM
…   // these three dots shown sometimes; must press Enter to exit to sbt shell
sbt:gist> 

problem

ellipsis () is displayed, and additional enter key is required to exit console task.

expectation

No additional enter key required.

Originally posted by @bjornregnell in https://github.com/sbt/sbt/issues/6767#issuecomment-1003322216

eed3si9n commented 2 years ago

At first I thought this was also related to the thread waiting behavior, but I am actually not sure. Given that #6767 is leaning towards won't fix, I wanted to branch this ticket out.

At this point I don't know who is displaying the ellipsis.

bjornregnell commented 5 months ago

This gets more and more annoying as the ellipsis (...) seem to add up. After a while in an sbt session you get more ande more of them and have to repeatedly press enter again and again until frustration hits Ctrl+C and start over again with fewer ellipsis for a while until we go again with too many Enter... image

The title says "sporadic" but for me on Scala 3.4.2 with sbt 1.10.0 this happens pretty much every sbt session except for the very first console command.

bjornregnell commented 5 months ago

I think this should be labeled "Bug" and also "sporadic" removed from the title.