繁体   English   中英

IntelliJ IDEA 无法解析 build.sbt 并且没有 sbt 工具 window 存在

[英]IntelliJ IDEA unable to resolve build.sbt AND no sbt tool window is present

I've read another answers where you are able to navigate to the sbt tool window and re-build/re-import the project, but in my case there is no sbt tool window at all, although it is present for the newly created projects . 有任何想法吗?

1 - build.sbt 以红色突出显示

2 - 没有 sbt 工具 window

3 - sbt 工具出现在新创建的项目中

从控制台使用 sbt 的 PS 构建项目完美运行

build.sbt 以红色突出显示 没有 sbt 工具窗口 新创建的项目中存在 sbt 工具

万一有人遇到同样的问题

经过两天的尝试,我终于能够运行该项目,步骤是:

  1. 检查Preferences / Build, Execution, Deployment / sbt你有正确的JRE
  2. 检查Preferences / Build, Execution, Deployment / Compiler / Scala Compiler Server中是否有正确的JDK \
  3. 检查File / Project Structure / Project SDK你有正确的 java SDK
  4. IntelliJ Idea代码编辑器以外的项目中删除.idea
  5. 打开IntelliJ Idea ,如果错误仍然存在 - 缓存失效应该有帮助 - File / Invalidate Caches / Restart从此时开始, Idea将看到项目是全新的,您将看到sbt工具 window。

暂无
暂无

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

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