defective SVN checkout and build [message #652252] |
Thu, 03 February 2011 05:49  |
Eclipse User |
|
|
|
Hi,
in the recent past we had problems checking out STEM via subclipse - several packages could not be checked out.
This was probably caused by the length of the filenames. Windows currently still limits the length of filenames (including their paths) to 260 characters. When your drives are formatted improperly, the SVN cannot save them. With NTFS in Windows, it usually saves the file but cannot operate with them until you change the length of the pathname (sometimes it causes problems anyway).
As a hint, we suggest to use short workspace names.
Jan-Frederik Wigger
|
|
|
|
Re: defective SVN checkout and build [message #652911 is a reply to message #652446] |
Mon, 07 February 2011 10:04   |
Eclipse User |
|
|
|
Hey,
sorry I am not sure how many files are "affected".
Definitely problematic was
..\workspace\org.eclipse.stem.internal.data.geography.infras tructure.transportation\src\org\eclipse\stem\internal\data\g eography\infrastructure\transportation\propertydata\
RoadTransportGeographicRelationshipPropertyData.java
(filename has 51 characters, entire path has 210)
Eclipse could write the file, even read the file, but Windows cannot. Odd enough. Even though eclipse can open the java files, there seem to be problems with the build and sometimes with the checkout.
In the same folder is the file
AirTransportGeographicRelationshipPropertyData.java
with one character less - this can still be opened, copied, deleted etc.. but not renamed to a file longer that its current name. The 260 character limit is demonstrated here..
On a UNIX machine, it would be easier to identify the files that are escpecially long (although this problem would not emerge on a UNIX machine..). I tried to run a VB script over all files, but it jumps over files with >=260 characters because it does not identify them as files, so I cannot mark the long ones reliably.
My "long" workspace path with 38 characters is surely a problem that could easily be solved - I just renamed it to a short path, but right now, I don't know a method in Windows to count path+filename lengths when scripts don't work.
If anyone has the possibility to do this (UNIX, Mac..) it would be helpful to identify files with a base length (= the eclipse soure path and the filename length) longer than 200 characters or so..
Jan
|
|
|
|
Re: defective SVN checkout and build [message #654135 is a reply to message #653752] |
Mon, 14 February 2011 05:33   |
Eclipse User |
|
|
|
Hi Stefan,
yes, thanks, I guess these are the suspects. In some cases, the problem occured when eclipse tried to write things like
<filename>$<classname>, but I think those can be prevented by chosing a short workspace name.
If you don't mind, I will add a note in the developers' wiki (in the "get the source code" part), so everybody is warned once.
Even though this problem will die out with upcoming windows versions (I hope..), this problem could still be annoying in the near future, e.g. when adding new data/resources deeply within the folder structures.
Maybe there is a way to make people aware of this problem during compilation or checkout.
Jan
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.20340 seconds