score:0
UPDATE: Found this https://confluence.jetbrains.com/display/IntelliJIDEA/Getting+Started+with+SBT mentioning the "refresh" button (under 5. Add a Dependency to an SBT Project), which works fine.
--
IntelliJ has now integrated SBT support into the Community edition, however this is still an issue. The old plugin doesn't seem to exist anymore, i.e. links are broken and releases are outdated. One solution that seems to work is reimporting the project everytime a new dependency is added, which is a very time consuming task though.
Another trick is adding the dependency manually from the project settings:
Project Structure->Project Settings->Libraries
- Click the "+" and select "Java"
- Find the JAR in your ivy cache, e.g. under ~/.ivy2/cache/
score:3
Are you using the JetBrains plugin? Because that is the only one that claims to support automatic project update.
With the sbt-idea plugin, you'll have to close the project, run sbt gen-idea
, and re-open the project after you change dependencies.
Source: stackoverflow.com
Related Query
- Add dependencies to sbt build.scala file does not have effect in IntelliJ
- IntelliJ Build does not execute sbt 'compile' dependencies
- Scala sbt assembly jar does not work (class implementation not found) but code works when through IntelliJ
- How to add Java dependencies to Scala projects's sbt file
- How do I add additional file to class path which is not java or scala file using SBT configuration?
- Running a scala script: changing function name and recompiling does not have an effect
- Does Scala have a library method to build Option-s that takes into account empty strings?
- How to add Jar libraries to an IntelliJ Idea SBT Scala project?
- Why does Scala not have a return/unit function defined for each monad (in contrast to Haskell)?
- Why does sbt build fail with "MissingRequirementError: object scala.runtime in compiler mirror not found."?
- Add lib dir to IntelliJ for unmanaged sbt dependencies
- Why "could not find implicit" error in Scala + Intellij + ScalaTest + Scalactic but not from sbt
- IntelliJ IDEA Hotkey for comment does not work with Scala
- Intellij: SBT-based Scala project does not build with Java 9
- Why it took so long to download sbt dependencies when I create a scala project in intellij idea?
- why Scala does not have concept of checked and unchecked exception?
- scala.reflect.internal.FatalError: package scala does not have a member Int
- Scala worksheet does not evaluate object in IntelliJ IDEA 2016.2
- dynamically changing library dependencies in sbt build file from provided etc
- Intellij does not recognize Scala List operator
- IntelliJ IDE does not detect Scala templates properly
- scala project does not work in intellij
- Why Scala does not have a decltype?
- Why does Scala have SeqView but not SetView?
- Renaming a .scala file in Scala IDE does not rename the class
- Scala does not read file from resources folder
- "Error:scalac: Error: object VolatileFloatRef does not have a member create" when using Scala 2.11.8 SDK
- How to get Intellij to use dependencies from SBT scala
- SBT Publish local does not include dependencies
- Scala sorted map does not have methods floor or ceil
More Query from same tag
- Scala: avoiding redundant type parameters
- ScalaTest + ScalaCheck : Cannot find implicit Arbitrary[List[Integer]]
- How do I yield pairwise combinations of a collection, ignoring order?
- Understaing Abstract types
- Scala playfamework - how to wrap one JSON string with another?
- return content from S3 in Playframework 2.5 (scala)
- IntelliJ does not hit Breakpoint but code is executed (console shows println)
- Count the number of non-null values in a Spark DataFrame
- Replacing all JSON String values recursively with Circe
- Read python pickle with scala
- scala play action composition response header
- How to refer to data in Spark SQL using column names?
- Need to pass class at runtime generics scala
- Spark Structured Streaming, multiples queries are not running concurrently
- A question on traits
- Summing arrays grouped by key in spark(scala)
- Scala cats trampoline
- Is Scala Option the same as a C# Nullable type?
- Infer generic types on scala shell
- Scala Parser Combinator
- Why a encoder is needed for creating dataset in spark
- Play framework 2 template using method with two and more blocks of code (like Option.fold)
- Returning and iterable collection using yield in scala
- Make a Spark code more efficient and cleaner
- Boot timeout when deploying an sbt project to heroku
- How to instantiate an instance of type represented by type parameter in Scala
- Scala - Cannot access variable inside for loop
- Scala case class extending Product with Serializable
- Why am I getting this IllegalArgumentException exception when trying to inject services into an actor?
- Scala streaming a live/growing file