« Return to Thread: Objects not visible in mixed Eclipse Project

Objects not visible in mixed Eclipse Project

by Bastian, Mark :: Rate this Message:

Reply to Author | View in Thread

Objects not visible in mixed Eclipse Project When I add the Scala nature to a Java Project in Eclipse by right-clicking and selecting Scala => Add Scala Nature everything seems to work fine and I can now mix my .java and .scala class files for compilation.  I can mix my classes across languages.  However, this only seems to work for classes and not for objects.  When I create a standalone object or try to refer to a class companion object with ObjectName$.MODULE$ Eclipse is unable to locate the object.  Autocomplete pops up the classes from my .scala files but none of the objects.  If I just type the objects in an error occurs.  I can see the object .class files in the bin directory, but Eclipse just doesn’t see them.

Can anyone else verify that this problem is or is not happening for them?  I am using the nightly build of the scala plugin.

Thanks,
Mark

 « Return to Thread: Objects not visible in mixed Eclipse Project