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.

Splitting build.sbt, causes the set command to fail

See original GitHub issue

The 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:open
  • Created 8 years ago
  • Reactions:4
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
DavidPerezIngenierocommented, Dec 1, 2015

If I change in build.sbt the value of the setting it doesn’t work either. Reloading or restarting sbt doesn’t. But if I delete project/target folder and restart SBT, then it works. So this problem is related with an incremental compilation bug.

0reactions
metasimcommented, Jul 26, 2016

@dwijnand Wow! Can’t get much more minimalist than that!

Read more comments on GitHub >

github_iconTop 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 >

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