Scala intellij:模块描述符未列出所需的工件:*!**

Scala intellij:模块描述符未列出所需的工件:*!**,scala,intellij-idea,sbt,Scala,Intellij Idea,Sbt,在Intellij中刷新sbt项目时,我会遇到以下异常: 我删除了.intellij文件夹,但没有成功 不管怎样,到目前为止,似乎一切都按预期进行 以下是整个项目: 在Justin Kaeser的评论之后,我安装了2018.2,现在Intellij可以工作了,但现在我在“sbt外壳”中看到了一个例外: [info] Reapplying settings... [info] Set current project to formRoot (in build file:/Users/mpa/dev

在Intellij中刷新sbt项目时,我会遇到以下异常:

我删除了.intellij文件夹,但没有成功

不管怎样,到目前为止,似乎一切都按预期进行

以下是整个项目:

在Justin Kaeser的评论之后,我安装了2018.2,现在Intellij可以工作了,但现在我在“sbt外壳”中看到了一个例外:

[info] Reapplying settings...
[info] Set current project to formRoot (in build file:/Users/mpa/dev/Github/pme123/play-binding-form/)
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
[error] a required artifact is not listed by module descriptor: *#*!*.*
...

这似乎是一个解决依赖关系的问题

此外,在源代码中有两个项目具有相同的内容根:

formRoot和play查找表单

不能有两个具有相同内容根的模块。 摆脱其中一个并适应您的sbt构建,文件>无效缓存/重新启动。。。最后在sbt工具窗口中刷新所有sbt项目


希望有帮助。

我现在发现了导致问题的更改:

在build.sbt我的共享配置中:

lazy val shared = crossProject(JSPlatform, JVMPlatform)
  .crossType(CrossType.Pure)
  .settings(sharedSettings())
  .settings(sharedDependencies)
  .settings(
    publish := {},
    publishLocal := {},
    publishArtifact := false, // this line caused the problem
  )
当删除该行时,它会工作


如果有人知道原因那就太好了

您好@pme,您能在github上提供您的项目吗,或者至少提供一个关于此问题的最低工作示例。我将项目添加到问题中-感谢您的查看。您好@pme,欢迎光临。奇怪-您是对的intellij向我展示了这两个项目。但是sbt项目只列出formRoot?那么如何修复build.sbt呢?您使用的是跨项目,但IntelliJ目前无法完全支持跨项目,请参见。如果您想从IDE处理JS或JVM版本,您可能只需要手动启用JS或JVM版本。@JustinKaeser谢谢-我认为这可能与-因为此更新启动了很多问题。您好,pme,@JustinKaeser,谢谢您指出这个有趣的问题。