-
Notifications
You must be signed in to change notification settings - Fork 950
Description
problem
I've noticed that when I start sbt
as a build server, it will remain on my system for a long time. I've asked and searched for information about this, and I ended up finding a few related issues:
- sbt launcher terminates BSP server when sbt is not on path #6176
- [BSP] -
exit
notification not shutting down the server. #6536
From this, it seemed I could reduce the timeout delay by adding serverIdleTimeOut
to my global.sbt
. However, when I try that, I get the following error:
/home/lervag/.sbt/1.0/global.sbt:5: error: not found: value serverIdleTimeOut
Global / serverIdleTimeOut := Some(new FiniteDuration(5, TimeUnit.MINUTES))
I'll admit, it may be possible that I just misunderstand something essential. However, I don't find this option documented anywhere and the issue threads were ~3 years old or older. Thus, it is equally likely to me that this is a bug.
If I am doing something wrong, then I would be very happy to get some assistance. And if I'm pointed to the right direction I might consider helping with suggesting a minor update of some relevant docs.
steps
I have ~/.sbt/1.0/global.sbt
with this content:
import scala.concurrent.duration.FiniteDuration
import java.util.concurrent.TimeUnit
Global / serverIdleTimeOut := Some(new FiniteDuration(5, TimeUnit.MINUTES))
I have sbt
version 1.10.1 installed. I do this:
cd $HOME
mkdir tmp
cd tmp
sbt -bsp
expectation
I expect the build server to start properly, but it fails with the error message displayed above.
Let me know if more details are needed here.