IntelliJ无法导入sbt项目

时间:2018-05-31 13:58:11

标签: scala intellij-idea sbt

Error while importing sbt project:

d; set _root_.org.jetbrains.sbt.StructureKeys.sbtStructureOptions in Global := "download resolveClassifiers" ;*/*:dumpStructureTo /private/var/folders/5v/g3zxt_7d64g3sd_56bzpqbvh0000gn/T/sbt-structure.xml; session clear-all
[error] Expected ID character
[error] Not a valid command: d
[error] Expected 'debug'
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: d
[error] d; set _root_.org.jetbrains.sbt.StructureKeys.sbtStructureOptions in Global := "download resolveClassifiers" ;*/*:dumpStructureTo /private/var/folders/5v/g3zxt_7d64g3sd_56bzpqbvh0000gn/T/sbt-structure.xml; session clear-all
[error]  ^

我在sbt.version=0.13.16中将sbt版本升级为./project/build.properties后出现错误。使用终端的sbt工作得很好。

更新:我找到的解决方法是禁用通过sbt shell导入项目。

1 个答案:

答案 0 :(得分:0)

尝试删除目标文件夹并再次运行命令