Search code examples
eclipsemercurialhgeclipse

Can't refactor files in eclipse


I'm working on an Android project in eclipse, and whenever I try to move or rename a source file, eclipse says it caught an exception while trying to refactor, that the file doesn't exist, and lets me either undo, or abort. I suspect it has something to do with mercurial because it's happened before, but besides that, I have no idea what is wrong. Anyone know how to fix this? I've already tried refreshing the entire project, cleaning the project, and closing and reopening the project, but I still can't even move a source file from one project to another.

UPDATE:
I've resorted to using the command prompt to manually move and rename my files. It wasn't that hard, but Eclipse is still not doing what it's supposed to do. I want to know how to fix this.


Solution

  • Its possibly related to this:

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=339866

    I found updating both eclipse and hg fixed the error.