This compiles just fine with sbt:
val a: ValidatedNel[String, Int] = 10.valid
a |@| a
But in IntelliJ, it shows up as an error:
This makes functional error handling with Cats very inconvenient. All my "IDE-compile-time" typesafety is gone; and it makes the code really painful to work with since intellij will constantly tell you that you've "messed up" (even though the code is perfectly fine).
Is there another way of writing this that doesn't make IntelliJ flip out? For instance, if there was some alias to the |@|
that intellij understood?
Also, does anyone know why IntelliJ doesn't understand the syntax - it perfectly understands the |+| syntax:
This problem is resolved in the latest IntelliJ-Scala releases: https://youtrack.jetbrains.com/issue/SCL-10237