I am exploring the Cats in IntelliJ, but despite the IntelliJ Scala plugin's support for the Kind Projector plugin, IntelliJ fails to recognize the plugin's type lambda notation (λ). Is there a trick to enabling this? I don't see Kind Projector listed after running code inspections, although Kind Projector inspection options are available and enabled in preferences. My IntelliJ version is 2016.2.2 and Scala plugin version 2016.2.1.
Cats on IntelliJ with kind projector plugin
1.1k Views Asked by Lasf At
2
There are 2 best solutions below
1
On
Yes, it is supported since long time ago!
Probably you have multi-project build environment? Then you need to add kind projector to each sub-project in proj.settings section. May be like so:
val commonSettings = Seq(
addCompilerPlugin("org.spire-math" %% "kind-projector" % Version.kindProjector)
)
project.in(file("mainRunner")).settings(commonSettings)
As of this writing, and with v2016.3.1 EAP, IDEA Scala plugin doesn't support polymorphic lambdas. If you scroll down to the comments on the page you referred to, you'll see that someone requested for that feature.