從ubuntu中拷貝eclipse的workspace到mac遇到的問題

進行submit操作時,提示:org.tigris.subversion.javahl.ClientException: Operation not permitted
進行更新操作時,提示:Attempted to lock an already-locked dir
進行刪除操作時,提示:Resource is out of sync with the file system

網上給解決方法是進行clean操作,不過在執行時也提示Operation not permitted,這個方法不行。
找到如下的參考網頁:
http://stackoverflow.com/questions/1765232/subclipse-cant-rename-file-os-x

f you're changing workspaces on OS X and you import an SVN-based project into your new workspace, some of your files may have the uchg flag set. SubClipse/SVN will not be able to update this project. You will get an error:

svn: Cannot rename file

every time you try invoke svn. If you issue:

chflags -R nouchg .

at the top-level of the project directory this will clear these flags and restore SVN function.

於是在workspace目錄下執行chflags -R nouchg .
然後就可以順利執行clean操作了(右鍵項目 -> Team -> clean)。
可是在執行刪除操作時仍然提示:Resource is out of sync with the file system
參考如下網址進行解決:
http://www.velocityreviews.com/forums/t147718-how-to-fix-eclipse-resource-is-out-of-sync-with-the-file-system.html

Thought I'd put this here because when I went looking earlier I didn't
find a solution on Usenet. This error occurs when you edit a workbench
resource outside of Ecliple. To fix this problem, right click the
project or edited resource and select "Refresh". If you edit outside of
Eclipse a lot, you can enable auto-refresh by going to
Window->Preferences menu, then in the Preferences dialog box, select
General->Workspace. Check the "Refresh automatically" box.

This is for Eclipse 3.1. Don't know about other versions.

進行項目的更新,問題徹底解決。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值