Reputation: 806
In intelliJ 2018.1.4 I am able to compile my scala source code within sbt console, by typing compile, then importing my main method and typing run.
[success] Total time: 2 s, completed Jun 1, 2018 11:28:44 AM
However, the same code produces the following error within sbt shell, or when i click the green arrow start button. any idea? which one should I trust?..
[error] (*:update) sbt.ResolveException: unresolved dependency:
org.jetbrains#sbt-structure-extractor;2017.2: not found [error] unresolved
dependency: org.jetbrains#sbt-idea-shell;2017.2: not found Project loading failed:
(r)etry, (q)uit, (l)ast, or (i)gnore? Process finished with exit code 1
Upvotes: 0
Views: 675
Reputation: 105077
As observed by JetBrains' support line, reinstalling the Scala plugin also seems to make it work.
Upvotes: 0
Reputation: 2376
Had the same issue. This fixed it:
Copy org.jetbrains folder from /home/<username>/.IdeaIC2018.<version>/config/plugins/Scala/repo
to /home/<username>/.ivy2/local
Run sbt package or similar in the project to import on console to load all required sbt plugins
Import project in Intellij
Upvotes: 2