[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

The 'I cannot edit any file' HOW-TO

From: Markus Karg <markus.karg_at_quipsy.de>
Date: 2005-09-01 12:26:41 CEST

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

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.