IntelliJ没有正确显示项目结构

时间:2017-07-15 08:29:01

标签: intellij-idea

我按照以下链接的说明在IntelliJ中创建Play项目,但IntelliJ没有显示正确的结构。

https://www.jetbrains.com/help/idea/getting-started-with-play-2-x.html

附上快照 enter image description here

2 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,发现了这个问题:Building a Play 2.6 project from IntelliJ builds nothing

所以现在我们有3个人有同样的问题。我没有在任何地方找到任何公开的错误报告或问题。

我使用其他问题的OP提出的解决方法:首先在所需位置从SBT构建项目,然后从IntelliJ作为SBT项目导入项目,你应该很高兴。“

要做到这一点,只需运行sbt new playframework/play-scala-seed.g8(假设你已经安装了SBT并配置了PATH),然后导入它。

答案 1 :(得分:0)

我提出了IntelliJ支持的问题。它似乎在IntelliJ终极版的最新版本中得到修复。如果您运行默认应用程序并看到“没有jdk错误”,请转到编辑配置并选择播放模块中的顶级项目(参见图片)enter image description here