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.

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax