score:0
I simply installed the newest sbt version on my system and updated project/build.properties so it contains the new version number. This solved the issue for me. You might have to trigger a refresh in IntelliJ manually.
score:1
You can also try cutting and pasting everything in your build.sbt file to a word doc, importing your changes, and then pasting it back into the build.sbt file.
score:18
I closed and removed the project in IntelliJ, then, in my project folder, I removed the subfolders project/
, target/
and .idea/
. Then there were remaining only build.sbt
and src/
. Afterwards, in IntelliJ, I did: File -> New -> Project from existing sources -> import project from external model -> sbt
.
This procedure has generated a new .idea Project file.
Expression type Def.Setting[String] must conform to DslEntry in SBT file
has been gone now.
Hope this helps.
UPDATE 2018-11-17:
When shuffling with modules and projects in IntellIJ SBT, try replacing
lazy val root = (project in file("."))
with an always distinguished
lazy val root = Project(id="module_xyz", base = file("."))
In my case, the problem was solved this way! It occured from having multiple (project in file("."))
in different modules/build.sbt files belonging to the same IntelliJ SBT project. It seems to me that there can only be one (project in file("."))
in an IntelliJ SBT multi module project. So having many different Project(id="module_xyz", base = file("."))
can solve this.
score:19
I had the same issue. This solution worked me everytime. 1. Click on sbt tab of right side in IntelliJ Idea 2. Click on Refresh symbol
It will revalidate the Local cache and Gradle dependencies. That's it.
Source: stackoverflow.com
Related Query
- IntelliJ IDEA - sbt plugin - 'Expression type Def.Setting[...] must conform DslEntry in sbt file'
- Unable to find SBT plugin for IntelliJ Idea 12
- sbt version and scala version. project configuration for intellij idea with sbt-idea plugin
- Enable sbt plugin in IntelliJ IDEA 14
- How do I view the type of a scala expression in IntelliJ
- Is it possible in Intellij IDEA Scala plugin to know which implicit conversion was applied?
- How to add Jar libraries to an IntelliJ Idea SBT Scala project?
- IntelliJ IDEA 13: new Scala SBT project hasn't src directory structure generated
- Show inferred type in Intellij Scala plugin
- IntelliJ Idea sbt managed source file
- How to debug/run a single gatling simulation in IntelliJ IDEA without sbt command?
- Origin location must be absolute error in building a SBT project, IntelliJ
- Intellij IDEA and SBT syntax error
- IntelliJ IDEA scala type info
- How to run tests on every code change in IntelliJ IDEA from Scala sbt project?
- Getting IntelliJ IDEA understand SBT dependencies
- IntelliJ IDEA w/ Scala Plugin not finding scala.concurrent
- IntelliJ Idea compiling with SBT by default
- How to execute SBT plugin's tasks from within IntelliJ IDEA CE?
- Play Idea failing - no sbt-idea plugin for this version of sbt 0.11.3
- What scala version Intellij Idea scala plugin uses?
- Generate return type signature in Scala with Intellij Idea
- Playframework Plugin non-functional in IntelliJ IDEA 12
- IntelliJ IDEA doesn't load Lift libraries from a SBT project
- IntelliJ IDEA plugin development in other JVM languages
- How to create an SBT Run configuration in IntelliJ IDEA 11 Community Edition?
- IntelliJ IDEA Scala plugin doesn't find errors
- Restart SBT Shell in IntelliJ IDEA after SIGINT
- Expression of type doesn't conform to Expected type B
- Refreshing SBT project in Intellij Idea switches Java to 7
More Query from same tag
- Scala functional code for iteration with a value forwarded to next iteration
- Building scala with SBT to make JAR and folder with dependencies
- What is the best way to re-establish type coherence after transforming a Tree with Macros
- Create object instance from list of string type arguments
- How to convert Option[scala.xml.Elem] values into String
- Automatic update of Button text on change
- Finding applicable implicit conversions in Scala
- SBT confused about Scala types
- implicit Akka system in Scala trait
- How to convert array of strings to string column?
- Pivoting a single row Spark dataframe with pivot
- Cannot Load Java Resources in Spark from Scala
- Forward function to a ScalaTest macro
- What's wrong with my logback.xml with Akka?
- Why `majority-min-cap` set to 5 by default for Akka Sharding?
- Scala: array.toList vs array.to[List]
- Fault tolerance in Spark streaming
- What does it mean if trait starts with self: Actor
- How to change scala for each loop to java for each loop
- What is Scala for: getline(), std::cin.eof(), std::cin.bad()?
- How to Write Generic Numeric Function in Scala?
- Scala syntax problem
- Dividing Scala iterators leads to GCoverhead/JavaHeapSpace problems
- Scala Implicit Search
- How to replace words (in one DataFrame) with matching ids from another DataFrame?
- spray-json JsString quotes on string values
- Caused by: IllegalArgumentException: Wrong basePath for the root path [Spark]
- Fetching relations with different types
- In Scala, why does my Sieve algorithm runs so slowly?
- What is the meaning or use of { _ => } and _ = somefunctionname() in scala