简体   繁体   English

在IntelliJ Scala插件中禁用分析build.sbt

[英]Disabling analysis build.sbt in IntelliJ Scala plugin

I use IntelliJ Ultimate 2016.01, Scala plugin 3.0.0. 我使用IntelliJ Ultimate 2016.01,Scala插件3.0.0。 The issue is that IntellJ always try to analyze the file to show error messages. 问题是IntellJ总是尝试分析文件以显示错误消息。

在此处输入图片说明 在此处输入图片说明

How can I disable the analysis by treating the build.sbt as a text file? 如何通过将build.sbt视为文本文件来禁用分析? I'm bothered to see the error keep prompting me to get the namespace for "version" variable. 我很想看到错误不断提示我获取“版本”变量的名称空间。

I found this is a bug in IntelliJ ( https://youtrack.jetbrains.com/issue/SCL-9512 ). 我发现这是IntelliJ( https://youtrack.jetbrains.com/issue/SCL-9512 )中的错误。 Also references: 还参考:

For temporary fix not to see the nagging error message: 对于临时修复程序,请不要看到烦人的错误消息:

In file type configuration, .sbt is associated with sbt. 在文件类型配置中,.sbt与sbt相关联。 I removed the association to remove the errors and warnings. 我删除了关联,以删除错误和警告。

在此处输入图片说明

I could associate the .sbt file type to normal text file. 我可以将.sbt文件类型与普通文本文件相关联。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM