Skip to content

serverIdleTimeOut does not work #7631

@lervag

Description

@lervag

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions