我使用IntelliJ Ultimate 2016.01,Scala插件3.0.0。 问题是IntellJ总是试图分析文件以显示错误消息。
如何通过将build.sbt视为文本文件来禁用分析? 我很困扰看到错误不断提示我获取“版本”变量的命名空间。
I use IntelliJ Ultimate 2016.01, Scala plugin 3.0.0. The issue is that IntellJ always try to analyze the file to show error messages.
How can I disable the analysis by treating the build.sbt as a text file? I'm bothered to see the error keep prompting me to get the namespace for "version" variable.
最满意答案
我发现这是IntelliJ中的一个错误( https://youtrack.jetbrains.com/issue/SCL-9512 )。 另请参考:
IntelliJ无法解析build.sbt中的符号 SBT + Idea 13 =>无法解析符号对于临时修复,不要看到唠叨错误消息:
在文件类型配置中,.sbt与sbt相关联。 我删除了关联以删除错误和警告。
我可以将.sbt文件类型与普通文本文件相关联。
I found this is a bug in IntelliJ (https://youtrack.jetbrains.com/issue/SCL-9512). Also references:
IntelliJ cannot resolve symbol in build.sbt SBT + Idea 13 => Cannot resolve symbolFor temporary fix not to see the nagging error message:
In file type configuration, .sbt is associated with sbt. I removed the association to remove the errors and warnings.
I could associate the .sbt file type to normal text file.
更多推荐
发布评论