IntelliJ:无法导入SBT项目

时间:2017-09-05 14:43:58

标签: intellij-idea sbt

我一直在使用IntelliJ和SBT成功,但最近我无法导入SBT项目。

我会做以下事情:

  • 创建新项目>空项目

  • 指定新的待创建文件夹

  • 添加>在对话框中导入模块,或者新建>来自菜单

  • 的现有来源的模块
  • 选择包含SBT项目的文件夹

  • 选择SBT

  • 完成

该项目未在IntelliJ中的任何位置显示。状态行显示“无法保存设置”。如果我再次尝试导入项目,我会得到“此项目已经注册”。

以下是来自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插件2017.2.6。

0 个答案:

没有答案
相关问题