在IntelliJ Scala插件中禁用分析build.sbt(Disabling analysis build.sbt in IntelliJ Scala plugin)

系统教程 行业动态 更新时间:2024-06-14 16:59:46
在IntelliJ Scala插件中禁用分析build.sbt(Disabling analysis build.sbt in IntelliJ Scala plugin)

我使用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 symbol

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

enter image description here

I could associate the .sbt file type to normal text file.

enter image description here

更多推荐

本文发布于:2023-04-17 08:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/7e0990efa6a2944e7b72db705c48d667.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:插件   build   IntelliJ   Scala   analysis

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!