System-wide sbt/Intellij IDEA cannot import coursier's sbt project
See original GitHub issueIt 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >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
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.
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…