Closed fommil closed 3 years ago
This needs a function to spin up a server. I thought it did that automatically but apparently not. It can come in a follow up.
Looks like the server isn't staying up when called from emacs, it's a bug in sbtn
https://github.com/sbt/sbt/issues/6271
@hvesalai ok I made the changes, and fixed some things.
@hvesalai upstream changes to sbt
have been merged, I think I've finished this PR now.
Any tips on what I need to do to test this?
if your project is using the latest sbt you should be able to just type M-x scala-compile
from any scala buffer. Change the command from sbtn
to sbt --client
if you don't want to install any extra software but if you want the full experience then also install sbtn
using the instructions in the header.
If you want to go the full hog, we could set up an automated testing rig like https://gitlab.com/tseenshe/haskell-tng.el/-/blob/tng/test/haskell-tng-compile-test.el but that would be a lot of effort at this point.
https://eed3si9n.com/sbt-1.4.7 is released; everything should work fine and dandy with it.
no need for
sbt-mode
for me with this. I use it like thisand individual files can specify a preferred command to override the default (user-configurable) history, e.g. this at the end
folk that don't have
sbtn
can change the defaults tosbt --client
, and it should also pave the way for maven / gradle / fury / whatever.