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
SI-8308 Fix REPL tab completion after suspend/resume #5032
Conversation
Wow, it works on Ubuntu. I had to build with ant, |
i've had the same complaint about we should fix that, since it violates common expectations. could be by just printing a doc message on |
@lrytz Thx for spreading the education. I haven't deep-dived into the sbt build yet. |
I must have seen |
Reworked to indirect reference to |
f56a7ec
to
ebb7f15
Compare
IDE build is failing due to scala/scala-dev#97 |
I was going to joke, "That's what they all say." But it's a classic thread. "I have no idea what is going on but I have to find it out." (NB order tee-shirt.) And "The .sbt format evolved." I thought the beauty of sbt is that the build file is just Scala code. (Modulo blank lines.) I don't understand the comment about ueber-build props, but even your crummy build issues are interesting! |
I was actually surprised that several people (including myself at one point...) ran into the problem with |
There are also restrictions about the types of each expression. In 0.13.5 and earlier, you had to manually squash a sequence of settings into a single setting:
Seems like this was improved in: But not release noted: http://www.scala-sbt.org/0.13/docs/sbt-0.13-Tech-Previews.html#sbt+0.13.6
|
Community Testing Drive.
Platforms:
|
Cygwin 64 on windows 7.
|
Off to a flying start :) |
I'll refactor to eagerly call However, I think we'll still get an stacktrace spew on J9, if sbt/sbt#1027 is to be believed. |
Implementation borrowed from SBT. For best results, we need to use `sun.misc.SignalHandler` to repair JLine immediately after SIGCONT. If that isn't avaialable, we avoid crashing, and get the terminal working after the next newline is entered. The signal handler registration can be disabled with `-Dscala.repl.disable.cont`. Access to `sun.misc` is performed via reflection. Tested manually on MacOS X: http://recordit.co/mjOTxvu84K
Triggered a build to produce a distribution based on this PR to help facilitate testing on other platforms. Hopefully that will result in the following artifacts in an hour or so: http://www.scala-lang.org/files/archive/nightly/2.11.x/scala-2.11.9-bfdee84-nightly.tgz |
@som-snytt Could you please re-test with the latest build on Windows and Windows+cygwin? My expectation is that you should no longer see the |
Sure, it's the least I could do that isn't |
Quickly sanity checked on Win 7 and cygwin 64. The autocomplete had an extra line feed, maybe due to wrapping, in an 80-column windows shell with scala.bat:
Starting
I don't get my scala back in cygwin:
|
@som-snytt Do you know which of those problems are regressions and which are existing issues? |
Lack of |
I'm going to close this in favour of the upgrade to JLine 2.14.1 (#5129), which natively supports this with |
Implementation borrowed from SBT. For best results, we need to use
sun.misc.SignalHandler
to repair JLine immediately after SIGCONT.If that isn't avaialable, we avoid crashing, and get the terminal
working after the next newline is entered.
The signal handler registration can be disabled with
-Dscala.repl.disable.cont
.Tested manually on MacOS X: http://recordit.co/mjOTxvu84K
Review by @som-snytt