These are chat archives for sbt/sbt

29th
Apr 2016
Zack Powers
@Milyardo
Apr 29 2016 01:51
by asyncronously, you mean you want to not block the command engine?
@pfn
if so, set-core-next maybe? I’m unsure if that’s still being maintained
Perry
@pfn
Apr 29 2016 02:14
@Milyardo, basically, what's that? a task?
eugene yokota
@eed3si9n
Apr 29 2016 02:55
I'm guessing it was a typo of https://github.com/sbt/sbt-core-next
which does provide backgound task, but not quite what you want
Miles Sabin
@milessabin
Apr 29 2016 12:26
Is it possible to specify an SBT setting on the command line?
Or, at least, something external to a project, but not in the global configuration.
OlegYch
@OlegYch
Apr 29 2016 12:58
sbt ";set bla := bla; shell"
Miles Sabin
@milessabin
Apr 29 2016 13:08
That's what I was expecting, but,
miles@frege:scalaorgtest$ sbt "set scalaOrganization := \"com.milessabin\""                                                                
[info] Loading global plugins from /home/miles/.sbt/0.13/plugins                                                                            
[info] Loading project definition from /home/miles/projects/scalaorgtest/project                                                            
[info] Set current project to scalaorgtest (in build file:/home/miles/projects/scalaorgtest/)                                               
[error] set usage:                                                                                                                          
[error]   set [every] <setting>   Evaluates a Setting and applies it to the current project.                                                
[error]                                                                                                                                     
[error] set                                                                                                                                 
[error]    ^
Am I escaping the quotes wrongly?
Perry
@pfn
Apr 29 2016 13:15
@milessabin, use single outer quotes to make it easier to read
Miles Sabin
@milessabin
Apr 29 2016 13:21
It still fails,
miles@frege:scalaorgtest$ sbt ';set scalaOrganization := "com.milessabin";shell'
[info] Loading global plugins from /home/miles/.sbt/0.13/plugins
[info] Loading project definition from /home/miles/projects/scalaorgtest/project
[info] Set current project to scalaorgtest (in build file:/home/miles/projects/scalaorgtest/)
[error] set usage:
[error]   set [every] <setting>   Evaluates a Setting and applies it to the current project.
[error] 
[error] set
[error]    ^
Perry
@pfn
Apr 29 2016 13:23
@eed3si9n, seems like the problems people are encountering with dependent plugin resolution is because I published protify using coursier
and it's missing attributes
@milessabin, can you do that set from the repl?
@eed3si9n, I'm confused why it doesn't always happen though
Miles Sabin
@milessabin
Apr 29 2016 13:25
Yes I can,
miles@frege:scalaorgtest$ sbt
[info] Loading global plugins from /home/miles/.sbt/0.13/plugins                                                                            
[info] Loading project definition from /home/miles/projects/scalaorgtest/project                                                            
[info] Set current project to scalaorgtest (in build file:/home/miles/projects/scalaorgtest/)                                               
> set scalaOrganization := "com.milessabin"                                                                                                 
[info] Defining *:scalaOrganization                                                                                                         
[info] The new value will be used by *:allDependencies, *:evicted and 2 others.                                                             
[info]  Run `last` for details.                                                                                                             
[info] Reapplying settings...                                                                                                               
[info] Set current project to scalaorgtest (in build file:/home/miles/projects/scalaorgtest/)                                               
> show scalaOrganization
[info] com.milessabin                                                                                                                       
>
You should be able to too. Can you try it and then try the command line equivalent?
My hunch is that it's the quotes that are causing trouble.
Perry
@pfn
Apr 29 2016 13:29
 $ sbt ';set scalaOrganization := "com.example";shell'
[info] Loading global plugins from C:\Users\pfnguyen\.sbt\0.13\plugins
[info] Loading project definition from C:\Users\pfnguyen\src\sbt\project
[info] Set current project to sbt-android (in build file:/C:/Users/pfnguyen/src/sbt/)
[info] Defining sbt/*:scalaOrganization
[info] The new value will be used by sbt/*:allDependencies, sbt/*:evicted and 2 others.
[info]  Run `last` for details.
[info] Reapplying settings...
[info] Set current project to sbt-android (in build file:/C:/Users/pfnguyen/src/sbt/)
[info] SBT server listening on port 58748
>
Miles Sabin
@milessabin
Apr 29 2016 13:32
Seems it was sbt-extras causing the problem.
I can also get it to work if I go straight to the launcher.
Miles Sabin
@milessabin
Apr 29 2016 13:51
Can anyone get it to work with sbt-extras?
InTheNow
@InTheNow
Apr 29 2016 13:59
@milessabin I don't use sbt-extras, but have my own shell script - and that does not work either, fails in the same way
Miles Sabin
@milessabin
Apr 29 2016 14:04
It's some bash-related escape/unescape weirdness.
InTheNow
@InTheNow
Apr 29 2016 14:06
yes... it works if I escape '"()
eg ++2.12.0-M5 \'set every scalaHome := Some\(file\(\"/home/alistair/prj/git/ws/docker-catalysts/rt/scala/build/pack\"\)\)\' shell
Miles Sabin
@milessabin
Apr 29 2016 14:07
Oh! The outermost ' as well.
InTheNow
@InTheNow
Apr 29 2016 14:14
(also note I am using a custom compiler just by using ++)
Miles Sabin
@milessabin
Apr 29 2016 14:14
Nice!
InTheNow
@InTheNow
Apr 29 2016 14:15
Actually, the full line is :
echo $BIGBASE 
/home/alistair/prj/git/ws/docker-catalysts/rt/big
alistair@linux-XEN1:~/prj/git/ws/docker-catalysts/rt/scala-parser-combinators> sbt -Dsbt.global.base=$BIGBASE/.sbt/0.13 -Dsbt.ivy.home=$BIGBASE/.ivy2 -Dsbt.boot.directory=$BIGBASE/.sbt/boot -Dsbt.override.build.repos=true -Dsbt.repository.config=$BIGBASE/.sbt/repositories ++2.12.0-M5 'set every scalaHome := Some(file("/home/alistair/prj/git/ws/docker-catalysts/rt/scala/build/pack"))' publishLocal
So as I'm using a custom ivy repo, local sbt and repository file, the whole thing is sandboxed.
Ferdinand Svehla
@fsvehla
Apr 29 2016 16:56
Is the SBT version still specified in project/build.properties? I also see a sbtVersion key in the build definitions
OlegYch
@OlegYch
Apr 29 2016 16:57
val sbtVersion = SettingKeyString
Zack Powers
@Milyardo
Apr 29 2016 17:00
the set version in build.properties is for bootstrapping the right version of sbt
the key is for figuring out what version is of sbt is running from sbt
Ferdinand Svehla
@fsvehla
Apr 29 2016 17:03
Ah, right, I guess it can't be specified in build.sbt since that might not even compile
So the sbtVersion is the read-only equivalent?
Matthew de Detrich
@mdedetrich
Apr 29 2016 18:04
Does anyone know if its possible to use addSbtPlugin in crossProject (i.e. I only want to add it jsSettings, and not globally)
Dale Wijnand
@dwijnand
Apr 29 2016 20:07
@fsvehla yes
Seth Bromberger
@sbromberger
Apr 29 2016 22:43
hi all
can someone give me some advice on how to get sbt assembly working to create a valid .jar file?
every one that I create results in Error: Could not find or load main class hw.HW
(pinging @eed3si9n :) )