-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to reload and automatically reapply settings modified by set
#3540
Comments
Could you describe your typical work day This might be a tricky one if we are partly depending on this amnesia for things like
which one wins? |
Those last two are common use cases. I also change scala versions a lot, and I want them to be persisted. I find that the feature I'm adding is especially useful when fiddling with interactions between the settings that i've just added to the build (like a compiler plugin) and the settings I've added via
Good point. In my view, |
I agree this would be a useful feature to add. I propose we add it as a flag to |
/cc @edmundnoble who could've used this too when he wanted to add (and then remove) some session settings and use |
problem
I agree this is not a major feature, but I find it important for sbt to be consistent.
Sbt provides lots of functionality around the
session
and the ability to control the modifications to the build that have been done viaset
. Let's see it:In my personal case, I always have a long-running instance of sbt. I use it across different work days. During my work session, I do modifications to the build that I want to persist across the session, no matter if I reload. Reloading is required to add new plugins, modify versions of
project
dependencies, etc.When I'm forced to reload, I usually spent some time finding the previous
set
commands and applying them one by one (note that doing so in just oneset
instruction is possible but not often since theset
executions are incremental and unrelated to each other).expectation
Right now,
reload
reloads the build from a clean slate and throws away my modified settings "at runtime" viaset
.I'd like that sbt includes a way for me to persist these settings across different reloads. That can come in two different shapes (they are not necessarily exclusive, they can both be implemented if deemed appropriate):
session reload
that will do areload
keeping my current session.sbt version: all sbt versions.
The text was updated successfully, but these errors were encountered: