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.

compiler-bridge recompiled for every scripted test when cross building

See original GitHub issue

When running scripted from an sbt 0.13.16 build, cross building against sbt 1.0, the Scala 2.12 compiler bridge seems to be being recompiled for every scripted test (that does compilation). It doesn’t happen when running scripted against sbt 0.13.16 with sbt 0.13.16, just when it’s a different sbt (or probably rather scala) version.

Example output shown in every scripted test that invokes compile:

[info] [info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.3. Compiling...
[info] [info]   Compilation completed in 9.008s.

9 seconds per scripted test (a lot longer on travis) is not ideal.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
smartercommented, Aug 14, 2019

This should be the default.

0reactions
dwijnandcommented, Aug 15, 2019

I agree. The setting of sbt.global.base (in RemoteSbtCreator.scala) should be only for sbt’s self-usage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sbt Reference Manual — Combined Pages
sbt is a build tool for Scala, Java, and more. ... Use staged releases to test across large projects of independent releases before...
Read more >
How to re-use compiled sources in different machines
- stage 1: Use SBT to compile Scala project into java bitecode using sbt compile We compile the test sources in the same...
Read more >
Building and testing sbt plugins - Roman Timushev
The next step is writing scripted tests, which can verify how your ... you pay a noticeable penalty of sbt initialization for every...
Read more >
Build Scripts - The Cargo Book
By default, Cargo will re-run the build script if any of the files in the package ... cargo:rustc-link-arg-tests=FLAG — Passes custom flags to...
Read more >
The Scala Plugin - Gradle User Manual
To use the Scala plugin, include the following in your build script: Example 1. ... All the Scala source directories can contain Scala...
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