Dear Subclise Community,
today I spent more than an hour because nothing worked in Subclipse. All files had a red badge and I was not able to edit them. Subclipse told me that I have to lock the files, but was not able to lock them. Also I was not able to unlock them. I tried thousand things but there was no solution. But then I found it.
To prevent you from suffering the same paine, here is a small HOW-TO for solving this issue. Maybe the subclipse admins like to add it to the official FAQ.
Symptoms:
Each file has a red badge.
You cannot modify a file.
You cannot lock.
You cannot unlock.
Nothing helps. Neither update not cleanup nor rebooting Eclipse.
Diagnosis:
The files in your local workspace have the read-only bit set.
(In my case, it was set by VSS, since before I was using SVN the project was hosted in a VSS repository. And VSS sets the read-only bit on every file it manages unless you have it checked out).
Solution:
Go to a command shell (Windows: CMD.EXE)
Remove the read-only bit (Windows: CD to local workspace, ATTRIB -R *.* /S).
Update the local workspace (svn update).
Back in Eclipse refresh the project (e. g. press F5 on the project's top folder).
Result:
The badges should be gone after some seconds, and you should be able to do whatever you want.
Have Fun
Markus
Received on Thu Sep 1 20:26:41 2005