简体   繁体   English

intelliJ 14.14 Community Ed Scala插件无法识别包层次结构

[英]intelliJ 14.14 Community Ed Scala plugin does not recognize package hierarchy

I'm having a peculiar issue with a intelliJ Scala project of mine. 我的智能Scala项目遇到一个特殊的问题。 As you can see in the attached picture, despite the fact that the Scala compiler is not complaining about my import of class AtomicTest , it somehow expects atomicscala to be an object instead of a (sub-)package. 如您在附图中所见,尽管Scala编译器没有抱怨我的AtomicTest类的AtomicTest ,但它某种程度上期望atomicscala是一个对象,而不是(sub)包。 What gives? 是什么赋予了?

我的intelliJ项目的图片

I was able to fix the problem after creating an SBT project from scratch. 从头开始创建SBT项目后,我能够解决问题。 Instead of creating a new project or importing a project from the startup screen, I clicked on "open" and followed through from there. 我没有创建新项目或从启动屏幕导入项目,而是单击“打开”,然后从那里开始。 Can't really vouch as to what it was that enabled the compiler to view imports without error, but at least it works. 不能真正保证使编译器能够无错误地查看导入的内容,但至少可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM