package with _root_ breaks the scala compiler inside eclipse

I was refactoring the package structure inside a scala project with eclipse. In the middle of this I used a package statement with _root_, like this

package _root_.com.workday.foo.bar

Now my eclipse project will not build although I can still build everything in the command line. The problem is that all my com.* imports are broken

import com.workday.some.thing.Else

The error is:

Multiple markers at this line
    - object workday is not a member of package      com.workday.foo.bar.com
    - object workday is not a member of package      com.workday.foo.bar.com

It appears that it is trying to find all imports relative to the package statement at the top of each source file.

I have removed the _root_ from my package and tried to clean my project and the workspace. I have also tried changing the scala compiler from "sbt" to "refined" and back but to no avail

Does anyone know how to kick the eclipse scala compiler back on track???

Answers


Sorry to answer my own question so quickly, but I discovered the problem.

I had a sub package defined in the middle of a source file that contains various mock classes, this sub package had been changed to com.workday.foo.bar.messaging so it made coma sub package of com.workday.foo.bar resulting in a package of com.workday.foo.bar.com.workday.foo.bar.messaging


Need Your Help

Insert xml Node into a CLOB column with namespace in Oracle

oracle oracle11g clob xmltype

I have next below xml value in CLOB column in Oracle 11g.

Calling class methods from mixed in module in ruby

ruby-on-rails ruby activerecord

The scenario: I have a couple of ActiveRecord models in my rails system that all need to be controlled via an access control list. I have a nice little ACL implementation that does what I want, but...