Splitting build.sbt, causes the set command to fail
See original GitHub issueThe problem is explained in this Stack overflow question. I open a bug, as I receive no answers.
I have this in my build.sbt
:
val myKey = settingKey[Boolean]("My key")
in the interactive console of SBT, I make this:
> set myKey in Global := true
<set>:1: error: type mismatch;
found : Boolean(true)
required: T
myKey in Global := true
I’m using SBT 0.13.9. I think this is a bug. I could do it before.
String keys can be set normally:
set myStringKey in Global := "...."
[edit from @dwijnand, full reproduction steps in https://github.com/sbt/sbt/issues/2203#issuecomment-228872196]
Issue Analytics
- State:
- Created 8 years ago
- Reactions:4
- Comments:24 (10 by maintainers)
Top Results From Across the Web
How run sbt assembly command without tests ... - Stack Overflow
On a Mac, sbt 0.13.7 I get <set>:1: error: not found: value assembly [error] Type error in expression" Is this really an issue...
Read more >sbt Reference Manual — Combined Pages
Reload the build The command causes the build. sbt file to be re-read, and its settings applied. Note that the prompt has now...
Read more >Chapter 9. Debugging your build - sbt in Action
In this chapter we're going to look at a set of common failures in sbt and how to debug the underlying causes. The...
Read more >Improving your project with SBT - kubuszok.com
sbt [info] Set current project to our-project (in build ... effect running application by sbt run might cause application to fail since it ......
Read more >sbt/sbt - Gitter
[info] Set current project to xyniac-dynamic-config (in build file:/Users/xiningli/projects/xyniac/) [error] Expected ';' [error] Not a valid command: pgp- ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If I change in
build.sbt
the value of the setting it doesn’t work either. Reloading or restartingsbt
doesn’t. But if I deleteproject/target
folder and restart SBT, then it works. So this problem is related with an incremental compilation bug.@dwijnand Wow! Can’t get much more minimalist than that!