Re: [sbt] Re: Setting key not overriden

30 views
Skip to first unread message

Mark Harrah

unread,
Mar 12, 2013, 8:20:00 AM3/12/13
to simple-b...@googlegroups.com
On Mon, 11 Mar 2013 02:34:44 -0700 (PDT)
François-Xavier Thomas <fx.t...@gmail.com> wrote:

> Ah, I think I found what I did wrong, don't mind my last message.
>
> By the way, is there a way I could see where exactly (file and line) a
> setting key is applied? Some kind of debug setting?

If you do 'inspect <key>', you can see the source for a setting, but only for .sbt files. Doing it for .scala files requires compiler support, so that is only supported in the upcoming 0.13 series via macros. (See also 'help inspect'.)

-Mark

> On Monday, March 11, 2013 10:06:54 AM UTC+1, François-Xavier Thomas wrote:
> >
> > Hi all,
> >
> > I've run into some weird issue with SBT, which makes me believe I did not
> > understand things fully.
> >
> > Basically, I can't seem to figure out the order in which my settings are
> > resolved. I added a setting key (predexLibraries) to the Android plugin, as
> > well as a default value (false) inside AndroidDefaults. What I wrote looks
> > exactly like all the other keys from the Android plugin, so I'm pretty sure
> > it should work.
> >
> > If I force the setting inside the SBT console, it works.
> >
> > When I try to change the setting inside my Build.scala, however, it stays
> > at the default value, e.g. :
> >
> > In Build.scala :
> > lazy val defaultSettings = ...
> > lazy val fullSettings = defaultSettings ++
> > Seq(..., predexLibraries in Android := true, ...)
> >
> > In SBT :
> > > show android:predex-libraries
> > [info] false
> >
> > I thought the order of execution was the same as the order of declaration,
> > but apparently it is not so.
> > Any idea as to what's happening and what I am doing wrong?
> >
> > Cheers,
> > François-Xavier
> >
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
> To post to this group, send email to simple-b...@googlegroups.com.
> Visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages