Incremental compiler API incompatibility with Scala Compiler 2.13.1
See original GitHub issueUpgrading 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:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Thanks!