question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

shading not working when building sbt 1.0 plugins

See original GitHub issue

in ensime we see this

[info] Shading 7 JAR(s):
[info]   /home/fommil/.coursier/cache/v1/https/repo1.maven.org/maven2/io/get-coursier/coursier-cache_2.12/1.0.0-RC12/coursier-cache_2.12-1.0.0-RC12.jar
[info]   /home/fommil/.coursier/cache/v1/https/repo1.maven.org/maven2/io/get-coursier/coursier_2.12/1.0.0-RC12/coursier_2.12-1.0.0-RC12.jar
[info]   /home/fommil/.coursier/cache/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.12/1.0.6/scala-xml_2.12-1.0.6.jar
[info]   /home/fommil/.coursier/cache/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.3/scala-library-2.12.3.jar
[info]   /home/fommil/.coursier/cache/v1/https/repo1.maven.org/maven2/org/scalaz/scalaz-concurrent_2.12/7.2.13/scalaz-concurrent_2.12-7.2.13.jar
[info]   /home/fommil/.coursier/cache/v1/https/repo1.maven.org/maven2/org/scalaz/scalaz-core_2.12/7.2.13/scalaz-core_2.12-7.2.13.jar
[info]   /home/fommil/.coursier/cache/v1/https/repo1.maven.org/maven2/org/scalaz/scalaz-effect_2.12/7.2.13/scalaz-effect_2.12-7.2.13.jar
[info] :: delivering :: org.ensime#sbt-ensime;1.12.16-SNAPSHOT :: 1.12.16-SNAPSHOT :: integration :: Sun Sep 24 16:44:33 BST 2017
[info] 	delivering ivy file to /tmp/fommil-sbt/home/fommil/Projects/ensime-sbt/target/ivy-1.12.16-SNAPSHOT.xml
[info] Main Scala API documentation to /tmp/fommil-sbt/home/fommil/Projects/ensime-sbt/target/api...
[info] Compiling 6 Scala sources to /tmp/fommil-sbt/home/fommil/Projects/ensime-sbt/target/scala-2.12/sbt-1.0/classes...
[info] Found 6817 class(es) in JAR(s) to be shaded
[info] 778 classes already filtered out by shaded namespace coursier
[info] 3298 classes already filtered out by shaded namespace scalaz
[info] 2741 remaining class(es) to be shaded
model contains 22 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging /tmp/fommil-sbt/home/fommil/Projects/ensime-sbt/target/sbt-ensime-1.12.16-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
[info] Packaging /tmp/fommil-sbt/home/fommil/Projects/ensime-sbt/target/scala-2.12/sbt-1.0/sbt-ensime-1.12.16-SNAPSHOT.jarg ...
[info] Done packaging.

and it just hangs forever here with the CPU spinning…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fommilcommented, Sep 24, 2017

Best ticket number. Ever.

1reaction
fommilcommented, Sep 24, 2017

good stuff, that seems to have fixed it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

rallyhealth/sbt-shading - GitHub
Shading is not checked during compile because it does not affect compilation : your code should compile fine whether it is shaded or...
Read more >
maven-shade like plugin for SBT - scala - Stack Overflow
I've been writing Scala since 2.7 and I still prefer to use Maven, FWIW. – lmm · Does the sbt-assembly plugin do what...
Read more >
sbt-shade - Scaladex
Resource transformers for sbt-assembly plugin. Scala versions: 2.10 2.12. sbt plugins: 0.13 1.0 ... But keep other libs as normal dependencies (not shade):....
Read more >
sbt/sbt-assembly - Gitter
It works fine on Mac OS X, but moving to another (CentOS) machine, the shading barely seems to work at all. It seems...
Read more >
sbt Reference Manual — Combined Pages
Please make sure to report any issues with these packages to the relevant ... for all your projects at once by declaring them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found