SublimeSBT icon indicating copy to clipboard operation
SublimeSBT copied to clipboard

SBT console (REPL) does not accept/echo commands on Windows 10

Open jrlemieux opened this issue 8 years ago • 1 comments

If I do Tools | Command Palette... | SBT: Start Console, SBT is started and enters the REPL. The "scala>" prompt comes up, and I can type characters that are echoed, but there RETURN keys does nothing, there is no result returned from the REPL. The same thing works OK on Linux.

jrlemieux avatar Aug 10 '16 23:08 jrlemieux

Thanks for the report. Unfortunately, I don't have easy access to a Windows 10 machine here to try things.

If you are willing to do some experimentation for me, you could try looking at lib/sbt.coffee in the package. There is a routine called userInput which is called each time some input is seen. Currently, it uses a comparison against '\r' to decide whether a RETURN/ENTER/etc has been typed. This seems to work on most systems but apparently not on Windows 10.

It would help to know what data is received by the package when you hit RETURN. You could try adding

console.log(data)

to the beginning of the userInput routine and then examine the Console log output. Use View|Developer|Toggle Developer Tools to get access to the console.

inkytonik avatar Aug 16 '16 01:08 inkytonik