#1274 Long metadata filename‏



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?

Fabio answer:

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.


  • Fabio Zadrozny

    Fabio Zadrozny - 2011-04-07

    Fixed for 2.0.1

    6dc8dd1 1302188084 2011-04-07

  • Fabio Zadrozny

    Fabio Zadrozny - 2011-04-07
    • status: open --> closed-fixed