This is not valid theme file #106

simonsunx opened this Issue Jul 29, 2012 · 12 comments


None yet
10 participants

I installed eclipse 4.2, pdt 3.1.1, rse 3.4 and eclipse-color-themes 0.12.
Then i downloaded some xml-themes from
I tried to import themes using Window -> Preferences -> General -> Appearance -> Color Theme.
Every time i saw 'This is not valid theme file'.

Why did it happend? What can i do?

I have the same issue. Running eclipse 4.2 classic on ubuntu 12.04 64bit

P.S Had to install libwebkitgtk1.0 because the plugin didn't work.

chiefy commented Aug 4, 2012


Eclipse Standard
Version: 4.2.0
Build id: I20120608-1400

Installed Plugin via update method.
Eclipse Color Theme com.github.eclipsecolortheme.feature.feature.grouo

Every XML I downloaded has empty first line :)

So, the problem is in the site scenario. It generates invalid xml-file

Deleting empty line solves the problem

I confirm, deleting the line solved the problem.

ArtS commented Aug 9, 2012

To me that's still an issue - while site's somewhat wrong for putting that extra line in, there's no reason for XML parser should fail because of whitespace.

Here is Solarized theme I removed the first line and it imported successfully. Try it ;)

mhenke commented Aug 13, 2012

removing first line works. pain in the butt!

same issue here, removing the first line in the file worked.


rogerdudler commented Aug 23, 2012

thanks for your feedback. we've fixed the problem.

I still have this problem. Eclipse 4.3 Kepler, Ubuntu 13.10 Saucy Salamander, Eclipse Color Theme plugin freshly installed from marketplace.


davispuh commented Oct 21, 2013

one reason this might be caused could be because of encoding, I submitted PR #142 but it's not merged yet.

I got the same issue and solved it, mine had no extra first line.
I just opened the XML in notepad++, saved it with another name (also changed the name of the theme).
Worked. I can't really explain why but it worked. Give it a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment