question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

steps

  1. Change the target sbt version with ^^: ^^1.0.0-RC2
  2. Change the target Scala version with ++: ++2.12.2

problem

The target sbt version has been reverts:

> show pluginCrossBuild::sbtVersion
[info] 0.13.16-M1

> ^^1.0.0-RC2
[info] Setting `sbtVersion in pluginCrossBuild` to 1.0.0-RC2
[info] Set current project to t (in build file:/s/t-2017-07-17.1722/)

> show pluginCrossBuild::sbtVersion
[info] 1.0.0-RC2

> ++2.12.2
[info] Setting version to 2.12.2
[info] Reapplying settings...
[info] Set current project to t (in build file:/s/t-2017-07-17.1722/)

> show pluginCrossBuild::sbtVersion
[info] 0.13.16-M1

expectation

I expect my session-set target sbt version to not be affected by ++.

notes

sbt version: 0.13.16-M1

Workaround: Call ++ first, then ^^. 😞

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sjrdcommented, Jul 22, 2017

Don’t be so sure. You can have a multi-project build with an sbt plugin depending on other non-sbt-plugin projects. In such a case you still need to ++ for the other projects to have the right Scala version, don’t you?

It’s a pretty common setup too. A lot of sbt plugins try to abstract away their core logic from sbt integration, so that the core logic can be reused in other build tools or as CLI applications.

0reactions
dwijnandcommented, Aug 1, 2017

Situation’s pretty complicate now:

> show pluginCrossBuild::sbtVersion
[info] 0.13.16

> ^^1.0.0-RC3
[info] Setting `sbtVersion in pluginCrossBuild` to 1.0.0-RC3
[info] Set current project to sbt-whitesource (in build file:/d/sbt-whitesource/)

> show pluginCrossBuild::sbtVersion
[info] 1.0.0-RC3

> show scalaVersion
[info] 2.12.2

> ++2.12.3
[info] Setting version to 2.12.3
[info] Reapplying settings...
[info] Set current project to sbt-whitesource (in build file:/d/sbt-whitesource/)

> show pluginCrossBuild::sbtVersion
[info] 0.13.16

… I’m going back to using set.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Revert Definition & Meaning - Merriam-Webster
verb ; 1 · to come or go back (as to a former condition, period, or subject) ; 2 · to return to...
Read more >
Revert - Definition, Meaning & Synonyms - Vocabulary.com
While revert means to return to something earlier or to go back, it's often used ... You can revert to a simpler way...
Read more >
Revert Definition & Meaning - Dictionary.com
to return to a former habit, practice, belief, condition, etc.: They reverted to the ways of their forefathers. Law. to go back to...
Read more >
Revert Definition & Meaning | Britannica Dictionary
REVERT meaning: 1 : to go back or return to (an earlier state, condition, situation, etc.); 2 : to be given to (a...
Read more >
REVERT | definition in the Cambridge English Dictionary
revert meaning: 1. to reply: 2. to reply: . Learn more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found