As you can see this file+path contains more than 180 caracters. Note that on windows there are many problem with files that have more that 256 caracters.
Depending how the user deletes its workspace, it happens that the application refuse to perform the delete operation. For example, if I'm using the window Explorer on Windows XP, it refuse to delete the file. We have to use the dos shell command, go to the directory and use the del command from that directory.
So I'm wondering if PyDev can limits the length of the path/name created internally in the metadata directory.
Is there any other workaround?
Thanks
Vincent
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That's a filename that comes directly from the size of the location of the interpreter. You can see where it comes from at: org.python.pydev.ui.pythonpathconf.InterpreterInfo.getExeAsFileSystemValidPath()
The only requisite there is that the folder (i.e.: python_xxx) must be directly related to the path of the interpreter. I guess an md5 could do the job here with less chars (the worse part is the backward compatibility) the only workaround for now is installing your python interpreter in a path with less characters.
Please create a bug for that (and if you want it fixed really soon a patch would be appreciated).
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm developing an RCP application and using Pydev 1.6.3.
Since we migrated to Pydev 1.6.3, we had some problems to delete Eclipse workspace folder after Pydev created some file with very long filename.
Example of created file by Pydev:
%myFolder% \workspace\.metadata\.plugins\com.python.pydev.analysis\python_WTpcQnVpbGRzXHJ0bGFiXFJULUxBQlxidWlsZFxyZWxlYXNlXHdpbjMyXHB5dGhvblxweXRob24uZXhl\indexcache\wx.lib.analogclock.lib_setup.buttontreectrlpanel.indexcache
As you can see this file+path contains more than 180 caracters. Note that on windows there are many problem with files that have more that 256 caracters.
Depending how the user deletes its workspace, it happens that the application refuse to perform the delete operation. For example, if I'm using the window Explorer on Windows XP, it refuse to delete the file. We have to use the dos shell command, go to the directory and use the del command from that directory.
So I'm wondering if PyDev can limits the length of the path/name created internally in the metadata directory.
Is there any other workaround?
Thanks
Vincent
Hi Vincent,
That's a filename that comes directly from the size of the location of the interpreter. You can see where it comes from at: org.python.pydev.ui.pythonpathconf.InterpreterInfo.getExeAsFileSystemValidPath()
The only requisite there is that the folder (i.e.: python_xxx) must be directly related to the path of the interpreter. I guess an md5 could do the job here with less chars (the worse part is the backward compatibility) the only workaround for now is installing your python interpreter in a path with less characters.
Please create a bug for that (and if you want it fixed really soon a patch would be appreciated).
Cheers,
Fabio
Hi Fabio,
Thank you for your answer.
I had an issue to your bug tracker.
I hope it will be fixed soon.
Vincent