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)

Sukant Hajra
@shajra
This message was deleted
Han van Venrooij
@irundaia

Hi guys,

I've got an issue where I package a native lib in a jar along with my sbt plugin. When the user of the plugin has a different version on his machine, there is the possibility for linking issues when the library is loaded with Native.loadLibrary.
Do you know of a way to force loading the library from the jar?

Oron Port
@soronpo
How do I remove options of scalacOptions by pattern matching?
Dale Wijnand
@dwijnand
Such as?
Oron Port
@soronpo
I have
... "-Xplugin:/home/soronpo/.ivy2/cache/org.scalamacros/paradise_2.12.2/jars/paradise_2.12.2-2.1.0.jar", ... "-Xplugin:/home/soronpo/.ivy2/cache/org.scalameta/paradise_2.12.2/jars/paradise_2.12.2-3.0.0-M9.jar" ... and want to just remove .*paradise.*
Dale Wijnand
@dwijnand
scalacOptions ~= { opts => ... }
Oron Port
@soronpo
What does ~= do? I cannot find documentations for it
Dale Wijnand
@dwijnand
modifies the value of the key
Hmm, wow, we really don't have ~= in the docs
Oron Port
@soronpo
@dwijnand I'm sorry, but I still don't follow. How does this allow me to remove the specific settings?
Here is my setting. I want to remove the entries which have paradise in their value.
[info] * -deprecation
[info] * -encoding
[info] * UTF-8
[info] * -feature
[info] * -language:existentials
[info] * -language:experimental.macros
[info] * -language:higherKinds
[info] * -language:implicitConversions
[info] * -unchecked
[info] * -Xfatal-warnings
[info] * -Xfuture
[info] * -Xlint:-unused,_
[info] * -Yliteral-types
[info] * -Yno-adapted-args
[info] * -Ywarn-numeric-widen
[info] * -Xplugin-require:macroparadise
[info] * -Xplugin:/home/soronpo/.ivy2/cache/org.scalamacros/paradise_2.12.2/jars/paradise_2.12.2-2.1.0.jar
[info] * -Xplugin:/home/soronpo/.ivy2/cache/org.scalameta/paradise_2.12.2/jars/paradise_2.12.2-3.0.0-M9.jar
Dale Wijnand
@dwijnand
Sorry, @soronpo, got distracted. scalacOptions ~= (_ filterNot (_ contains "paradise"))
Though really I think you should fix the upstream issue of having different paradise plugins in your build
Oron Port
@soronpo
@dwijnand It's a workaround, since meta isn't currently working in REPL. So actually I'll be doing scalacOptions in (Compile, console) ~= (_ filterNot (_ contains "paradise")).
Dale Wijnand
@dwijnand
gotcha
Oron Port
@soronpo
??
missing parameter type for expanded function ((x$1) => x$1.filterNot(((x$2) => x$2.contains("paradise"))))
scalacOptions in (Compile, console) ~= (_ filterNot (_ contains "paradise"))
^
Dale Wijnand
@dwijnand
scalameta/paradise#10 ?
Oron Port
@soronpo
scalameta/paradise#10 ?
yes
Dale Wijnand
@dwijnand
That message is confusing
worked in my mini repro
Oron Port
@soronpo
OK, my bad. Forgot a comma somewhere .
Yes! Works like a charm. Many thanks.
Dale Wijnand
@dwijnand
cool
Sukant Hajra
@shajra
@eed3si9n question about sbt-doge. Would enabling it with an AutoPlugin on all projects (not just an aggregate root) be a bad idea?
Sorry, I mean CrossCompilePerProjectPlugin.
Jose C
@jmcardon
Hey guys, is sbt-onejar the preferred way of packaging?
Adelbert Chang
@adelbertc
@jmcardon i think sbt-onejar is no longer maintained is it? sbt-assembly seems to be the way to go. also less classloader voodoo
Sukant Hajra
@shajra
I just looked at the sbt-coursier project. Maybe I'm a bit dense, but which problem does it solve that people find most useful? Resolutions taking a while?
Ghost
@ghost~540393fe163965c9bc2018ce
is there an option that when a macro is changed, all downstream code is marked dirty?
it's really hard to find it given that most google for "sbt macro incremental compiler" give completely the wrong thing
Jorge
@jvican
yes, there's a way.
and it's been proven to work well. i would like to try to merge it in the future inside Zinc (in a minor release, after sbt 1.0) @fommil
have a look at Martin Duhem's thesis on incremental macro compilation https://infoscience.epfl.ch/record/204855/files/MacrosInSbtProblemSolved.pdf
Thomas Sutton
@thsutton
@shajra Being faster and not having the ridiculous Ivy lock are the two reasons that leap to mind. I've found the concurrent downloading is especially pleasing when I'm stuck behind particularly obnoxious corporate proxies with rate limiting, etc.
Sukant Hajra
@shajra
I see... I'm not having incredible problems with this right now, but I'll keep it in mind.
Sukant Hajra
@shajra
Is there a good SBT API for comparing versions scalaVersion, which is just a String?
CrossVersion, I see it now.
Sukant Hajra
@shajra
So I tried to change a setting based on scalaVersion.value, and was crossing my fingers that this would work with cross-compiling, but that didn't work. I feel when the +/++ commands are run, the settings don't get re-evaluated.
Ghost
@ghost~540393fe163965c9bc2018ce
@jvican I mean a brute force recompile the world flag, I'm sure I seen it somewhere.
Dale Wijnand
@dwijnand
that's the out the box behaviour
if you don't opt-out it comes with a big annoying message telling you exactly everything it's undone because you're a (dirty) macro user.
@shajra yeah +/++ create session settings, that are used to re-evaluate and re-define all the setting values. If you can share what you're seeing we might be able to help you out.
And your sbt-doge question, did you mean in your project or are you talking about whether sbt-doge should be changed?
Ghost
@ghost~540393fe163965c9bc2018ce
@dwijnand hmm, maybe it's broken for scala.meta
or, rather, doesn't support scala.meta
I was making changes to the freestyle @free macro, and nothing downstream was getting recompiled
I'd have been happy with everything being marked dirty
Dale Wijnand
@dwijnand
mmm could be
Sukant Hajra
@shajra
@dwijnand no, I mean enabling it for all projects internally. It seems to work fine.