java-repl icon indicating copy to clipboard operation
java-repl copied to clipboard

Scanner cannot read input

Open RobvH opened this issue 9 years ago • 3 comments

Basic "hello {you}" flow doesn't work. Calling scan.next() just blocks but without accepting input or recognizing EOL.

RobvH avatar Nov 30 '16 16:11 RobvH

Is that on System.in?

albertlatacz avatar Nov 30 '16 20:11 albertlatacz

Yes.

RobvH avatar Dec 01 '16 01:12 RobvH

Yeah that might be tricky. Basically javarepl is a web service so more of request-response rather than stream. Let me think a bit on this.

albertlatacz avatar Dec 01 '16 18:12 albertlatacz