java.lang.NoSuchMethodError: lmcoursier.definitions with sbt 1.3
See original GitHub issueSince we’ve switched to sbt 1.3.2, I’m getting this error. Might be related to https://github.com/sbt/sbt/issues/5040
sbt:almond> compile
[error] stack trace is suppressed; run last protocol / coursierResolutions for the full output
[error] stack trace is suppressed; run last channels / coursierResolutions for the full output
[error] stack trace is suppressed; run last logger / coursierResolutions for the full output
[error] stack trace is suppressed; run last interpreter-api / coursierResolutions for the full output
[error] stack trace is suppressed; run last scala-interpreter / coursierResolutions for the full output
[error] stack trace is suppressed; run last kernel / coursierResolutions for the full output
[error] stack trace is suppressed; run last interpreter / coursierResolutions for the full output
[error] stack trace is suppressed; run last almond-rx / coursierResolutions for the full output
[error] stack trace is suppressed; run last scala-kernel-api / coursierResolutions for the full output
[error] stack trace is suppressed; run last jupyter-api / coursierResolutions for the full output
[error] stack trace is suppressed; run last almond-spark / coursierResolutions for the full output
[error] stack trace is suppressed; run last test / coursierResolutions for the full output
[error] stack trace is suppressed; run last echo / coursierResolutions for the full output
[error] stack trace is suppressed; run last scala-kernel / coursierResolutions for the full output
[error] stack trace is suppressed; run last coursierResolutions for the full output
[error] (protocol / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (channels / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (logger / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (interpreter-api / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (scala-interpreter / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (kernel / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (interpreter / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (almond-rx / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (scala-kernel-api / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (jupyter-api / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (almond-spark / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (test / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (echo / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (scala-kernel / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
sbt can not compile Scala project because of java.lang ...
Removing the coursier plugin and upgrading to sbt 1.3.13 worked for me. build.properties sbt.version=1.3.13. plugins.sbt
Read more >coursier/coursier - Gitter
It is built with sbt 1.3.2, and coursierDependencyTree results in "Not a valid command" (is that expected?) ... NoSuchMethodError: lmcoursier.definitions.
Read more >import of project via sbt shell is broken in case coursier plugin ...
NOTE: after 1.3.0 sbt version coursier is enabled with sbt by default. Expected result: ... java.lang.NoSuchMethodError: lmcoursier.definitions.
Read more >sbt Reference Manual — Combined Pages
sbt 1.3.x releases ... sbt is a build tool for Scala, Java, and more. ... have been reports about SSL error using Ubuntu:...
Read more >sbt-coursier
sbt Native Packager conflict. If you use sbt-native-packager and encounter a compile error java.lang.NoClassDefFoundError: org/vafer/jdeb/ ...
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 Free
Top 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
That’s because the coursier-based sbt launcher is required for now. The most straightforward way of using it is by using the custom sbt-extras script. I committed it as
sbt
at the root of the almond sources.This is required as the build is relying on some stuff from sbt-coursier, and sbt-coursier conflicts with sbt 1.3 ’s own coursier stuff.
It may be possible to get rid of sbt-coursier in the almond build, that should just require rewriting some stuff in
project/Settings.scala
.Fixed by #563