scala - Intellij 2018.3.1 无法从 SBT 项目转储项目结构
问题描述
从 2018.2 更新到 Intellij Ultimate 2018.3 打破了我在 SBT 下的一个项目的项目同步。
它取决于另一个 git repobuild.sbt
val commonScheme = "git+ssh://git@"
lazy val commonsGit =
ProjectRef(uri(s"${commonScheme}github.com/common-project.git#branch"), "commons")
lazy val root = Project("root", file("."))
.dependsOn(commonsGit)
在项目导入期间,Intellij 可以转储项目结构,但无法导入 Intellij 项目模型,并出现以下错误URI scheme is not "file"
::
这是项目构建控制台的输出:
;reload; set _root_.org.jetbrains.sbt.StructureKeys.sbtStructureOptions in Global := "download resolveClassifiers" ;*/*:dumpStructureTo /private/var/folders/fh/63rcbt095332gl82cg0zv_p00000gn/T/sbt-structure.xml; session clear-all
[info] Loading global plugins from /Users/me/.sbt/0.13/plugins
[info] Loading project definition from /Users/me/dev/base-project/project
[info] Loading project definition from /Users/me/.sbt/0.13/staging/0f1bc3a71daf6972d134/ak-spark-common/project
[info] Set current project to common-project (in build file:/Users/me/dev/common-project/)
[info] Defining */*:sbtStructureOptions
[info] The new value will be used by */*:ssOptions
[info] Reapplying settings...
[info] Set current project to common-project (in build file:/Users/me/dev/common-project/)
[info] Resolving [dependencies]
...
[info] Writing structure to /private/var/folders/fh/63rcbt095332gl82cg0zv_p00000gn/T/sbt-structure.xml...
[info] Done.
[success] Total time: 31 s, completed Dec 18, 2018 12:19:55 PM
[info] Reapplying settings...
[info] Set current project to common-project (in build file:/Users/me/dev/common-project/)
URI scheme is not "file"
否则该项目是有效的(在命令行中使用 SBT 编译 + 运行)。
由于 IntelliJ 无法转储项目结构,因此无法在我的代码中导入库,从而使 IDE 无用。
解决方案
As @y.bedrov said, solution was :
Issue should be fixed since 2018.3.519 version: http://youtrack.jetbrains.com/issue/SCL-14635.
You could get nightly build here: http://confluence.jetbrains.com/display/SCA/Scala+Plugin+Nightly
- Subscribe to nightly build
- update Scala plugin for Intellij to a version higher than
2018.3.519
- Refresh project
推荐阅读
- php - php页面在centos中使用nginx php-fdm返回**404 Not Found**
- google-apps-script - 我可以共享一些文件,但其他人将我拒之门外。为什么?
- javascript - 突出显示 js 应用类但不应用样式
- slick - 如何在 akka 流 alpakka slick 中控制获取大小
- mysql - 如何在 Laravel eloquent 中获取每天、每周、每月和每年同一记录的最后更新值?
- android - 在 Android 中裁剪检测到的人脸
- python - Python:嵌套循环中的字符串计数到二维矩阵并返回“上下文”字符串
- php - 当位置在 php 5.4.0 中未固定时,如何从给定字符串中获取部分字符串
- syntax-error - 确定素数的 OCaml 程序
- ios - 如何在 iOS 项目中显示等待覆盖?