-
Notifications
You must be signed in to change notification settings - Fork 202
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
REPL appears not to start #385
Comments
Update: running I wonder if the JLine interactivity in the REPL is failing due to some sort of buffering going on. I have vague memories of having to send some sort of |
Still not working with M8, including the behavior described in my "update" comment. |
Seems like there are three issues at play here:
I've captured some TCP traffic between the client and the server and decoded it:
First character after As you can see, there is no Reference (probably outdated): http://www.martiansoftware.com/nailgun/protocol.html |
Thanks for the detailed analysis, @tues! Hopefully gets us a step closer to a fix. :) |
I've tested this with the newest
The other two issues are still present:
I was typing I've been experimenting with
and
so it seems that It's worth noting that stdin is working for the |
Since we are using Nailgun, the REPL is being run in a different process than the one connected to the user's terminal, so we cannot run Scala's ILoop with InteractiveReader - we must use SimpleReader instead. By passing -Xnojline argument to AnalyzingCompiler.console we make sure that it will use SimpleReader. Fixes scalacenter#385.
Turned out to be much easier to fix. I was fooled by
|
Since we are using Nailgun, the REPL is being run in a different process than the one connected to the user's terminal, so we cannot run Scala's ILoop with InteractiveReader - we must use SimpleReader instead. By passing -Xnojline argument to AnalyzingCompiler.console we make sure that it will use SimpleReader. Fixes scalacenter#385.
I'm experiencing this on M11, is that expected?
macOS 10.13.5, installed via brew |
A command invocation such as
bloop console kaleidoscope/core
appears to work right up until it starts the REPL. The last lines I see are (including a blank one),The invocation does not appear to terminate, and the cursor is left "hanging".
There is no output at all on the server until I hit
Ctrl+C
, then:This is the beaviour for the first five invocations of
bloop console
. On the sixth attempt, no output is shown on the frontend at all.Bloop-frontend: 1.0.0-M7
Zinc: 1.1.0+9-57ca9e0f
Scala: 2.12.4
The text was updated successfully, but these errors were encountered: