I have this code that is working 100% from sbt , executing sbt test
but throw a compilation error in Intellij Idea.
import org.
Workarounds at the bottom of the response. ;)
This problem is related with this list of BUGs:
The problem is that there are dependencies in the project that are using, using test scope, other versions of scalatest and scalactic.
IntelliJ Idea is mixing compile scope and test scope, but SBT is working correctly. IntelliJ Idea team said in the BUG that they are working in this.
My workaround, at the moment, has been move to the same older version that the other libraries are using for testing.
@justin-kaeser is assigned and working to fix this. Thx!
A lot of improvement related to the Scala plugin in that latest previews.
Example to reproduce the error : https://github.com/angelcervera/idea-dependencies-bug