Error on scalatest compilation in IDEA : <p>I am trying to compile Scala project which contains scalatest.
It compiles normal on sbt </p>

<pre><code>sbt
&gt; compile
&gt; test:compile
</code></pre>

<p>, but when I am trying to build it with IDEA, it shows the following error:</p>

<pre><code>Error:(37, 11) exception during macro expansion: 
java.lang.NoSuchMethodError: org.scalactic.BooleanMacro.genMacro(Lscala/reflect/api/Exprs$Expr;Ljava/lang/String;Lscala/reflect/api/Exprs$Expr;)Lscala/reflect/api/Exprs$Expr;
at org.scalatest.AssertionsMacro$.assert(AssertionsMacro.scala:34)
assert((ElementMeasures.baseElementDistance(mEl1, mEl2) - 0.33333).abs &lt; 0.001)
      ^
</code></pre>

<p>for each <code>assert</code> function in test.</p>

<p><code>build.sbt</code> file contains following:</p>

<pre><code>name := "ner-scala"
organization := "ml.generall"
version := "1.0-SNAPSHOT"
scalaVersion := "2.11.8"
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.0"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0" % "test"
...
</code></pre>
