These are chat archives for sbt/sbt

16th
Mar 2016
vito-c
@vito-c
Mar 16 2016 03:17
is it possible to define concurrentRestrictions in Global := Seq( ...) in a conditional?
vito-c
@vito-c
Mar 16 2016 03:46
what's the default values for the tags in htere?
Simon Hafner
@reactormonk
Mar 16 2016 14:20
How do I set the scala version for the build? ensime complains You have a different version of scala for your build (2.10.5) and sub-project (2.11.7)
OlegYch
@OlegYch
Mar 16 2016 15:04
you probably have some project with default scalaVersion
afair ensime generates separate configs for project from build and metabuild
iow sbt 'show scalaVersion' | grep 2.10
Simon Hafner
@reactormonk
Mar 16 2016 15:12
Oh, you're right.
[info] main/*:scalaVersion <- that one.
Thanks. Solved.
Simon Hafner
@reactormonk
Mar 16 2016 15:30
How can I set the default project in a .scala build file?
OlegYch
@OlegYch
Mar 16 2016 15:49
sbt.Build#rootProject
Bas van Gijzel
@nebasuke
Mar 16 2016 16:07

Hey guys, I tried switching from sbt 0.13.8 (or 0.13.9) to 0.13.11, however 0.13.11 seems to have changed the way it resolves repositories. I've got a repositories file set up, together with a build repo override flag which used to cause sbt to first look at our local maven/ivy repos on our artifactory, but for some reason it now tries to resolve externally:

[info] Resolving com.someorg#mylibrary-core_2.11;2.3.2-SNAPSHOT ...
[error] Server access Error: Connection timed out: connect url=https://repo1.maven.org/maven2/com/someorg/mylibrary-core_2.11/2.3.2-SNAPSHOT/maven-metadata.xml
[error] Server access Error: Connection timed out: connect url=https://repo1.maven.org/maven2/com/someorg/mylibrary-core_2.11/2.3.2-SNAPSHOT/mylibrary-core_2.11-2.3.2-SNAPSHOT.pom
[error] Server access Error: Connection timed out: connect url=https://repo1.maven.org/maven2/com/someorg/mylibrary-core_2.11/2.3.2-SNAPSHOT/mylibrary-core_2.11-2.3.2-SNAPSHOT.jar
[warn] Unable to reparse com.someorg#mylibrary-core_2.11;2.3.2-SNAPSHOT from libs-snapshot, using Wed Mar 16 15:16:50 GMT 2016
[warn] Choosing libs-snapshot for com.someorg#mylibrary-core_2.11;2.3.2-SNAPSHOT
[info] Resolving com.someorg#mylibrary-macro_2.11;2.3.2-SNAPSHOT ...

etc.

Would this be a bug, or has the behaviour deliberately changed?
megri
@megri
Mar 16 2016 17:08

I am trying to build a plugin directly from git (https://github.com/joescii/sbt-jasmine-plugin/tree/5cd673151763c8f43aeaf12310dd98a049d556ee) and when I add it to my plugins.sbt-file with

lazy val sbtJasminePlugin = uri("git://github.com/joescii/sbt-jasmine-plugin#5cd673151763c8f43aeaf12310dd98a049d556ee")
lazy val root = (project in file("."))
  .dependsOn(sbtJasminePlugin)

... my other plugins can no longer be resolved. The log says the build is suddenly looking for _2.9.2-versions of them, which aren't available.

Removing the lazy val root = … part lets me compile the project again (obviously without the plugin I want)

Anthony Holland
@aholland
Mar 16 2016 18:33
@nafg thanks re "Try show update". It looked promising, but unfortunately its resolver and artifactResolver properties are never anything other than "sbt-chain" and "inter-project". I guess I'll just remove all non-default resolvers, hide my ivy cache, and see what fails to download...
Adelbert Chang
@adelbertc
Mar 16 2016 20:52
i was under the impression, in an SBT multiproject, you can use source in test from one project in compialtion of another by doing like dependsOn(otherProject % "compile;test->compile")
but it doesnt seem to be working..
Perry
@pfn
Mar 16 2016 21:01
it sounds about right
Dale Wijnand
@dwijnand
Mar 16 2016 21:46
Try "compile;compile->test"
I can't find a link now, but the explanation I remember goes something like "this dependency I'll define in compile scope, but refering to the module's test scope"
Perry
@pfn
Mar 16 2016 21:48
hmm, reverse to intuition if so
Dale Wijnand
@dwijnand
Mar 16 2016 21:57
Perhaps, I'm probably in the "that's ambiguous, what do the docs say" camp.
Adelbert Chang
@adelbertc
Mar 16 2016 23:24
the SBT Prompt on my mac is really messed up
for 0.13.11
i believe this is because of that readline (?) thing that was replaced
is anyone else having this issue?
eugene yokota
@eed3si9n
Mar 16 2016 23:26
@adelbertc sbt/sbt#2480
Adelbert Chang
@adelbertc
Mar 16 2016 23:27
boo :(
eugene yokota
@eed3si9n
Mar 16 2016 23:27
we're stuck between Mac and Windows issue - sbt/sbt#871
Adelbert Chang
@adelbertc
Mar 16 2016 23:28
the solution is simple: dont support windoze /snarky :P
eugene yokota
@eed3si9n
Mar 16 2016 23:28
are you seeing ^J or something else?
Adelbert Chang
@adelbertc
Mar 16 2016 23:29
i am not
i just type stuff
and its not registering
not visually showing on the prompt
at some point i think it would refuse to register anything until i typed r. at another point i had to type "project" once before it would register anything
so project foo would not switch projects, but project project foo did
eugene yokota
@eed3si9n
Mar 16 2016 23:31
that sounds pretty messed up
could you report it?
Adelbert Chang
@adelbertc
Mar 16 2016 23:31
ill try to reproduce to verify and file an issue
Dale Wijnand
@dwijnand
Mar 16 2016 23:33
I think I've heard the project project thing before..
as in in the last month
Adelbert Chang
@adelbertc
Mar 16 2016 23:35
@dwijnand was it from me?
i complained about it here a couple weeks back
Perry
@pfn
Mar 16 2016 23:35
that was @adelbertc
about project coreJVM
Dale Wijnand
@dwijnand
Mar 16 2016 23:36
right ok :)
Adelbert Chang
@adelbertc
Mar 16 2016 23:41
guilty as charged