开发者

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.


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.


Right click on your project and click refresh. This is usually due to files being out of sync with the file system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜