1
votes

I am starting a Scala project and I'm using SBT and Intellij 2020.2.3 as my IDE.

I have the following build.sbt file from the project, but I can't seem to get the dependencies in the Idea IDE "External Libraries" section to show up in "libraryDependencies" of SBT after running "sbt update". The Idea version is that: IDEA VERSION

The Idea External Libraies are that: Idea IDE

The Sbt libraryDependencies are that: SBT

1
try invalidate cache/restartRaman Mishra
@RamanMishra it does not work!Toni.W

1 Answers

0
votes

In my experience , Intellij is very slow to pickup on dependencies and display them. Bare in mind this is not a reflection on sbt , and asides for the annoyance, you should still be able to sbt compile from the console. That is the first thing I suggest you test. If you can compile , that means the dependencies were downloaded, are available on the classpath, and its just a matter of getting Intellij to recognize that You can try one of 2 things, hover over the dependencies in your build.sbt file and you might see a refresh project option , or you can go to module section in project settings and reimport