I use the cats Scala library, and the IntelliJ IDE seems to be struggling with implicits:
Here is a simple example:
import cats.std.all._ import cats.Traverse.ops._ def useSequence[A](ls : List[Option[A]]) : Option[List[A]] = { ls.sequence }
In IntelliJ, this code is highlighted in red. But I can build just fine using the Make Project or command line.
Now the error is:
An expression of type Nothing [List [Nothing]] does not match the expected type Option [List [A]]
In other cases, the error looks something like this:
the sequence of values ββis not a member of List [Option [A]]
Is this a bug in IntelliJ or am I missing any configuration?
I am using IntelliJ 15.0.2 with version 2.0.4 of the Scala plugin.
scala intellij-idea implicits scala-cats
mushroom
source share