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.

java.lang.NoSuchMethodError: lmcoursier.definitions with sbt 1.3

See original GitHub issue

Since 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
alexarchambaultcommented, Oct 5, 2019

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.

0reactions
sbrunkcommented, Jul 7, 2020

Fixed by #563

Read more comments on GitHub >

github_iconTop 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 >

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