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:
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?
That's a filename that comes directly from the size of the location ofthe 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 directlyrelated to the path of the interpreter. I guess an md5 could do the job herewith less chars (the worse part is the backward compatibility) the only workaroundfor now is installing your python interpreter in a path with less characters.