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.

System-wide sbt/Intellij IDEA cannot import coursier's sbt project

See original GitHub issue

It seems that current branch 0dde4226fad737ea0fa98f799c252db700e5fd50 cannot be compiled <del>on some environment</del> if system-wide installed sbt used. NoSuchMethodError on every sbt sub projects.

[error] (bootstrap-launcher / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (okhttp / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (cacheJVM / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
[error] (utilJVM / coursierResolutions) java.lang.NoSuchMethodError: lmcoursier.definitions.ToCoursier$.project(Llmcoursier/definitions/Project;)Lcoursier/core/Project;
... all sub project
  • Ubuntu
  • JDK: JDK 1.8.0_222, 11.0.3

Due to this, Intelij IDEA also fails to import the sbt project. I think this makes it difficult for Intellij users to contribute.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fthomascommented, Oct 8, 2019

I get the same errors when I’m using the system-wide installed sbt but it works fine when I’m using the sbt runner that is in the root directory of this repo.

0reactions
jopricecommented, Dec 10, 2019

Looks like this has something to do with my SBT_OPTS env var, which starts with “-Xms512m”. Not quite sure where the bash quoting goes wrong…

Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliJ Cannot Import sbt Project - scala - Stack Overflow
I solved the sync issue following info here: https://youtrack.jetbrains.com/issue/SCL-13024. Key info is "It seems that sbt is trying to ...
Read more >
IntelliJ fails to import sbt 1.3.4 project with Coursier disabled
IntelliJ fails to import the project with an error message. [error] (updateSbtClassifiers) java.lang.IllegalArgumentException: Cannot add dependency ...
Read more >
Creating a Spark Project with SBT, IntelliJ, sbt-spark-package ...
This blog post will show you how to create a Spark project in SBT, write some tests, and package the code as a...
Read more >
[Solved]-IntelliJ Cannot Import sbt Project-scala - appsloveworld
[Solved]-IntelliJ Cannot Import sbt Project-scala · Add addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.3") to your project's build.sbt file. Or install ...
Read more >
sbt Reference Manual — Combined Pages
Starts the Scala REPL with project classes and dependencies on the classpath ... Follow Install page, and install Scala using Coursier.
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