Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 22 2015 11:10
    japgolly commented #2066
  • Jun 22 2015 08:25
    keepscoding commented #2044
  • Jun 21 2015 03:24
    xerial commented #157
  • Jun 21 2015 00:10
    eed3si9n unlabeled #2057
  • Jun 21 2015 00:10

    eed3si9n on 0.13

    Adds bundledLauncherProj to all… Remove launcher tests Add unit tests to Travis and 3 more (compare)

  • Jun 21 2015 00:10
    eed3si9n closed #2057
  • Jun 21 2015 00:10

    eed3si9n on fixbuild

    (compare)

  • Jun 20 2015 18:42
    eed3si9n synchronize #2057
  • Jun 20 2015 18:42

    eed3si9n on fixbuild

    Fix typo (compare)

  • Jun 20 2015 18:23

    eed3si9n on fixbuild

    Adds bundledLauncherProj to all… Remove launcher tests Add unit tests to Travis and 1 more (compare)

  • Jun 20 2015 18:23
    eed3si9n synchronize #2057
  • Jun 20 2015 14:59

    eed3si9n on scalaversionbump

    (compare)

  • Jun 20 2015 14:59

    eed3si9n on 0.13

    Bumping up Scala version to 2.1… Try to keep bincompat Fixes #1666 and 1 more (compare)

  • Jun 20 2015 14:59
    eed3si9n unlabeled #2068
  • Jun 20 2015 14:59
    eed3si9n closed #2068
  • Jun 20 2015 14:59
    eed3si9n closed #1666
  • Jun 20 2015 14:57
    eed3si9n commented #2068
  • Jun 20 2015 12:55
    dwijnand commented #2068
  • Jun 20 2015 04:51
    eed3si9n synchronize #2068
  • Jun 20 2015 04:51

    eed3si9n on scalaversionbump

    Fixes #1666 (compare)

scalasolist
@scalasolist
I had not arrived yet to the point where my programs breaks jvm compatibility
Ghost
@ghost~540393fe163965c9bc2018ce
don't use Oracle proprietary crap, use OpenJDK
scalasolist
@scalasolist
Who is responsible for adding src/main/scala-2.11 in source directories: ensime plugin or sbt defaults?
Ghost
@ghost~540393fe163965c9bc2018ce
ensime plugin won't touch that
eugene yokota
@eed3si9n
i thought IDEs do that
Ghost
@ghost~540393fe163965c9bc2018ce
but I think the sbt defaults are wrong most of the time, so I customise them for my projects. e.g. that works for a normal release, but if you use a scala milestone release or somtehing it'll be a long name
oh, you mean actually creating the directory on disk?
read the output of running sbt ensimeConfig and then hang your head in shame :-P
scalasolist
@scalasolist
if @fommil says that ensime does not touch it, I would believe him. So I would search what sbt update added cross-versions as default
Ghost
@ghost~540393fe163965c9bc2018ce
do you mean in show sourceDirectories ? yeah, that's sbt
look in Defaults.scala in sbt
eugene yokota
@eed3si9n
sbt definately scans Scala specific directories
scalasolist
@scalasolist
@fommil I had read sbt ensimeConfig and become suspicions. I had checked show sourceDirectories and found, that someone add new stuff to it
Ghost
@ghost~540393fe163965c9bc2018ce
:-)
eugene yokota
@eed3si9n
but i am not sure if the question is about the setting or mkdir
it's about the setting
scalasolist
@scalasolist
The question is about sourceDirectories and how I could make them clean again
I'm writing my sbt config manually combining both .sbt and project/build.scala and expects no surprises from the sbt
Ghost
@ghost~540393fe163965c9bc2018ce
interesting, I can't see where I disable the default cross directories...
but that's definitely what I use to workaround the bug referenced in there
oh I think I allow the defaults plus these
scalasolist
@scalasolist
I'd read sbt release notes, there is something fishy recently added cross-building support. I'm afraid I should dive deeper to eliminate it
scalasolist
@scalasolist
@fommil JConsole shows that .jvmopts were ignored
Brian Topping
@briantopping
Hi all, does this look like anything that ought to work? this is my first time with these features:
    unmanagedResources in Compile += Def.task {
      val temp = IO.createTemporaryDirectory
      "curl --silent https://example.com/main-module/-/main-module-0.0.2.tgz" #| s"tar -xf -C$temp" !
        (unmanagedResourceDirectories in Compile) += temp
    }.taskValue
Palmer Lao
@palmerlao
I want to write a custom command that's similar to console but sets up spark. I know about initialCommands and cleanupCommands for console itself, but I was hoping for this to be separate. Could someone point me in the right direction?
scalasolist
@scalasolist
@fommil I ended with the following config
  val zeroCrossSettingsTemplate = Seq(
    unmanagedSourceDirectories := unmanagedSourceDirectories.value.filter(f => ! f.getName.startsWith("scala-")),
    managedSourceDirectories := Seq()
  )
  val zeroCrossSettings = inConfig(Compile)(zeroCrossSettingsTemplate) ++ inConfig(Test)(zeroCrossSettingsTemplate)
Brian Topping
@briantopping
Ah, it seems to look like this:
    unmanagedResources in Compile += Def.task {
      val temp = IO.createTemporaryDirectory
      val result = "curl --silent https://example.com/main-module/-/main-module-0.0.2.tgz" #| s"tar -xf -C$temp" !;
      temp
    }.value
scalasolist
@scalasolist
that looks more like managedResources
Brian Topping
@briantopping
hmm, I suppose I should explore, thanks
scalasolist
@scalasolist
unmanaged* - is what you fill with your file manager. And managed* is what you generate with a code
Brian Topping
@briantopping
gotcha ok
Ghost
@ghost~540393fe163965c9bc2018ce
@scalasolist I bet you're using a hand rolled sbt script instead of the official one, aren't you?
That doc page with the 2 line sbt launcher should be taken out the back and put out of its misery.
scalasolist
@scalasolist
I use official one. But hadn't updated it since 2013. Now as you pointed, I believe it is too old
but nevertheless -J-X works fine
ykycxzsv
@ykycxzsv
at the sbt prompt, i can type "project/task" to run a task in a specific project. "project/command" doesn't work however. how can i run a command in a specific project?
Ghost
@ghost~540393fe163965c9bc2018ce
project <name>
then the command
Commands suck
ykycxzsv
@ykycxzsv
there's no way to do it without changing the current project?
Dale Wijnand
@dwijnand
no, but here's the feature request for it sbt/sbt#2900
ykycxzsv
@ykycxzsv
ok. i think i'll try to convert it to a task, but problem is the implementation has to call other existing commands. i understand that i can read state.value and pass to the command's state parameter, but i should also update state based on result of the command. i tried state := command(state.value), but now the task doesn't do anything!
Dale Wijnand
@dwijnand
yeah you can't call commands from tasks
as a workaround to that feature missing you could take the project name as a first argument
ykycxzsv
@ykycxzsv
i don't need the project name, i need to fit in a framework which attempts to do "sbt project/mycommand". since commands don't support that syntax, i have to use a task, but since tasks can't call commands, i'm screwed. guess it's time for some ugly kludge
Ghost
@ghost~540393fe163965c9bc2018ce
if it's your command, you could take the project name as an input
but then you'd want to rewrite your Command as a Task anyway...
ykycxzsv
@ykycxzsv
like i said, i DON'T need the project name. and i can't rewrite my command to a task if a task can't call other commands
Dale Wijnand
@dwijnand
You need to run the command in a specific project, though, right?