I have a project composed of 3 modules, one big pure java module with no scala-artifact but dependency on one of the two other mixed scala-java modules. When trying to build, in one class in the pure java module, I get the above error:
error: object sleepycat is not a member of package com
The affected "object" is the third import of the same package Y. When rewriting import com.sleepycat.db. EnvironmentConfig is found with no problem.
When checking that error with different google searches, it appears to occur mostly with intelliJ and the scala plugin. I'm running latest version of intelliJ (11.1.2) and nightly build of scala plugin version 0.5.796 (same error with regular version). I frequently try to invalidate caches.
One problem might be, that the java module was imported from a checkout maven project, into which I copied some non-maven classes. Not sure wheter this matters.
When I select javac in settings:scala_compiler:Join compilation, the error disappears in the java module, but in the one of the scala module this error appears:
error: value getEnvironmentConfig is not a member of org.hypergraphdb.storage.bdb.BDBConfig
Actually it's quite some time that I'm having similar problems of incoherences regarding packages and member visibility during import. It drives me nuts to the point that I retried eclipse! I could not find something conclusive on this forum, similar problems seem to be fixed.
thanks for some input...