Eclipse 3.0RC1 and Colorer Plugin

colorer-error I’ve just installed the latest Eclipse 3.0RC1 on my Gentoo Linux PC and apart from other plugins I also installed EclipseColorer 0.6.0 plugins. However each time I selected the Colorer preferences, I received the error dialog in the picture. Try as I might, I couldn’t get it to work. Only, when I finally straceed a Eclipse startup, that I found a hint what causes the problem.

I used this command for tracing:

strace -f -o /tmp/trace -e trace=open /opt/eclipse/eclipse

And a "grep colore /tmp/trace" showed me this (slightly formatted):

open("/opt/eclipse/plugins/net.sf.colorer_0.6.0/colorer.jar",
     O_RDONLY|O_LARGEFILE) = 6
open("/opt/eclipse/plugins/net.sf.colorer_0.6.0/os/linux/x86/libnet_sf_colorer.so",
     O_RDONLY) = 6
open("opt/eclipse/plugins/net.sf.colorer_0.6.0/colorer/catalog.xml",
      ^ 
      O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.colorer5catalog", O_RDONLY) = 6
open("/usr/share/colorer/catalog.xml", O_RDONLY) = -1 ENOENT
     (No such file or directory)
open("/usr/local/share/colorer/catalog.xml", O_RDONLY) = -1 ENOENT 
     (No such file or directory)
...

There’s a missing "/" before the "opt" in the third line and this is, what’s causing the problem. Once I changed my working directory to "/" it worked perfectly. In the end I symlinked colorer-directory from inside the Eclipse colorer-plugin directory to /usr/share.


Tags:

 
 
 

Leave a Reply