问题
We have a project with Play framework 2 coded with Scala. We are using Scalaz for validation in Play controllers like "validateSomething |@| validateSomethingElse |@| validateYetSomethingElse". Idea (v.12 and v. 13 ) doesn't recognise for some reason the syntax at all, even though Scalaz imports are fine. Is there anything we could try to do to fix the situation? It also seems to be making the Idea really laggy and slow when editing the classes sontaining the "unrecognised" scalaz symbols.
回答1:
There are two possibilities:
You simply didn't add (the correct version of) Scalaz to the project's libraries. This is the most likely, if all Scalaz symbols are highlighted.
IDEA is known to sometimes highlight false errors in Scala code. They are working on it, but this still happens sometimes.
来源:https://stackoverflow.com/questions/21773436/scalaz-code-highlighted-with-red-in-intellij-idea-12-and-13