Scalaz code highlighted with red in Intellij Idea 12 and 13

余生长醉 提交于 2019-12-11 10:34:55

问题


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:

  1. 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.

  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!