SublimeREPL icon indicating copy to clipboard operation
SublimeREPL copied to clipboard

SBT console not working

Open Marvin182 opened this issue 13 years ago • 9 comments

I'm using Windows 7 64bit and both Scala and sbt are working fine in the shell. But in Sublime the sbt RELP starts, prints that the project was loaded successfully, the prompt appears and after that I can enter anything I want sbt will not react at all.

Marvin182 avatar Oct 19 '12 15:10 Marvin182

I know about this behavior — it appears only on Windows, but I don't know solution yet, as I have no Windows installed.. As a temp work around, you can run a shell REPL, change directory and run sbt there.

laughedelic avatar Oct 22 '12 20:10 laughedelic

Good idea, but it doesn't work either. I can continue to run sbt in an extra console window, the time I need to change the window sbt needs to recompile the sources anyway^^

Marvin182 avatar Oct 22 '12 22:10 Marvin182

I think, it's worth to mention for @Marvin182 or anybody else who uses similar approach, that there is a cool plugin SublimeSBT which allows you to do continuous recompilation or testing in the same sublime window and then see errors. Pretty convenient, if you don't use repl.

laughedelic avatar Feb 05 '13 15:02 laughedelic

Thx, I will have a look at it when I work with sbt the next time.

Marvin182 avatar Feb 05 '13 19:02 Marvin182

I get the same issue with SublimeSBT, by the way. Maybe it's a bug in SBT on windows (even though it works from cmd)?

pckujawa avatar Apr 02 '13 23:04 pckujawa

Hi, Is there any good news in this subject?

kowalj avatar Oct 04 '13 09:10 kowalj

The issue above shows SBT_OPTS is the key, but how to configure SublimeREPL to fix it?

bendwarn avatar Oct 05 '13 08:10 bendwarn

I finally get it. In user SublimeREPL setting, add "default_extend_env": {"SBT_OPTS": "-Djline.terminal=jline.UnsupportedTerminal"} Hope this helps.

bendwarn avatar Oct 05 '13 08:10 bendwarn

Solution posted by @bendwarn above helped.

kisileno avatar Feb 28 '14 14:02 kisileno