I have the following project structure:
+ org
\
+ dynamics
|\
| = RuleGradient.scala
|
+ world
\
= World.scala
The RuleGradient file contains the class and the object RuleGradient. The World class wants to create objects of RuleGradient class, but the class is not imported correctly. Here is the import statement of the World class (proposed by the IDE itself and I agree with it):
import org.dynamics.RuleGradient
and it is also treated as an error. The IDE says:
- RuleGradient is not a member of org.dynamics
- RuleGradient is not a member of org.dynamics{org.dynamics.type}
no other imports or anything else shadows anything. Why does not the importing occure correctly? What is strange – all other classes that have the same importing architecture are imported fine.
Check that the file
RuleGradient.scalastarts with the line: