Intellij idea IntelliJ:无法导入SBT项目
我已经成功地将IntelliJ与SBT结合使用了一段时间,但最近我无法导入SBT项目 我将执行以下操作:Intellij idea IntelliJ:无法导入SBT项目,intellij-idea,sbt,Intellij Idea,Sbt,我已经成功地将IntelliJ与SBT结合使用了一段时间,但最近我无法导入SBT项目 我将执行以下操作: 创建新项目>空项目 指定要创建的新文件夹 在对话框中添加>导入模块,或从菜单中的现有源新建>模块 选择包含SBT项目的文件夹 选择SBT 完成 该项目在IntelliJ中的任何位置都没有显示。状态行显示“无法保存设置”。如果我再次尝试导入项目,我会得到“此项目已注册” 下面是来自idea.log的一个片段,看起来可能与此相关: Caused by: java.lang.Exception
- 创建新项目>空项目
- 指定要创建的新文件夹
- 在对话框中添加>导入模块,或从菜单中的现有源新建>模块
- 选择包含SBT项目的文件夹
- 选择SBT
- 完成
idea.log
的一个片段,看起来可能与此相关:
Caused by: java.lang.Exception: Cannot get libraryTable component state
at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:166)
... 38 more
Caused by: java.lang.NullPointerException
at org.jetbrains.plugins.scala.project.ScalaLibraryProperties.getState(ScalaLibraryProperties.scala:30)
at org.jetbrains.plugins.scala.project.ScalaLibraryProperties.getState(ScalaLibraryProperties.scala:14)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.writeExternal(LibraryImpl.java:368)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.writeExternal(LibraryTableBase.java:363)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase.getState(LibraryTableBase.java:63)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase.getState(LibraryTableBase.java:45)
at com.intellij.configurationStore.ComponentStoreImpl.commitComponent(ComponentStoreImpl.kt:227)
at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:159)
IntelliJ 2017.2.3,Scala plugin 2017.2.6。是否有公共回购来复制此内容?是否有理由将sbt项目作为模块导入到空项目中,而不是作为独立项目?因为这听起来像是一个bug,我为您创建了一个问题,稍后将尝试复制它:谢谢。是的,原因是使用project作为多个模块的容器。这似乎在最近的版本中得到了解决。