12和13中用红色突出显示的Scalaz代码

12和13中用红色突出显示的Scalaz代码

本文介绍了Intellij Idea 12和13中用红色突出显示的Scalaz代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我们有一个使用Scala编码的Play框架2项目.我们正在Scalaz中使用Play控制器进行验证,例如"validateSomething | @ | validateSomethingElse | @ | validateYetSomethingElse".尽管Scalaz导入很好,但出于某种原因,Idea(第12和第13版)根本无法识别语法.我们有什么办法可以解决这种情况?在编辑带有无法识别的" scalaz符号的类时,这似乎也使Idea变得非常缓慢和缓慢.

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. 您只是没有将Scalaz(正确版本)添加到项目的库中.如果所有Scalaz符号都突出显示,则很有可能.

  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.

IDEA有时会在Scala代码中突出显示错误.他们正在努力,但有时仍然会发生.

IDEA is known to sometimes highlight false errors in Scala code. They are working on it, but this still happens sometimes.

这篇关于Intellij Idea 12和13中用红色突出显示的Scalaz代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 22:22