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.

Incremental compiler API incompatibility with Scala Compiler 2.13.1

See original GitHub issue

Upgrading from 2.13.0 to 2.13.1 fails my build with:

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.2.0:compile (scala-compile-first) on project wicketstuff-scala: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.2.0:compile failed: An API incompatibility was encountered while executing net.alchim31.maven:scala-maven-plugin:4.2.0:compile: java.lang.NoSuchMethodError: 'scala.tools.nsc.settings.AbsSettings$AbsSetting scala.tools.nsc.Settings.nowarn()'
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>net.alchim31.maven:scala-maven-plugin:4.2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/martin/.m2/repository/net/alchim31/maven/scala-maven-plugin/4.2.0/scala-maven-plugin-4.2.0.jar
...

Related-to: https://github.com/scala/bug/issues/11742

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
slandellecommented, Sep 19, 2019

Thanks for reporting. Actually, the problem is similar, but here it’s a zinc component that gets broken. I’ve opened an issue against zinc: https://github.com/sbt/zinc/issues/698

0reactions
slandellecommented, Oct 16, 2019

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Scala Plugin - Gradle User Manual
The Scala plugin adds the following tasks to the project. Information about altering the dependencies to Java compile tasks are found here.
Read more >
Scala Compiler 2.13.1
Scala Compiler 2.13.1. ... The Scala compiler and reflection APIs. Package Members. package scala. Scala programming documentation.
Read more >
scala-maven-plugin – Using the plugin
(In the incremental mode no process is spawned, so example below overrides default of recompileMode to all). $> mvn scala:compile ...
Read more >
sbt unable to create jar for scala version 2.11.12
This issue is fixed. I have two versions of java 8 running on my local. After uninstalling the older version, I am able...
Read more >
Understanding Incremental Recompilation - SBT
Compiling Scala code with scalac is slow, but sbt often makes it faster. ... The incremental compiler just needs to know whether an...
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