Tuesday 3 July 2012

Fedora 17, Eclipse and Javascript

I forget why or how I ended up in the situation but I recently ended up switching from a downloaded Eclipse installation to using the Fedora repository version of Eclipse.

So I'm now flying Juno Eclipse. Installed bunch of packages to let me do Java and PHP work in Eclipse:

[root@bigfoot html]# rpm -qa | grep eclipse
eclipse-pde-4.2.0-0.22.I201205031800.fc17.x86_64
eclipse-rcp-4.2.0-0.22.I201205031800.fc17.x86_64
eclipse-phpeclipse-1.2.3-4.fc17.noarch
eclipse-emf-xsd-2.8.0-0.7.e674bb28ad412fc9bc786f2f9b3c157eb2cbdae0.fc17.noarch
eclipse-swt-4.2.0-0.22.I201205031800.fc17.x86_64
eclipse-dtp-1.10-0.1.M6.fc17.noarch
eclipse-gef-3.8.0-0.3.20120402.fc17.noarch
eclipse-platform-4.2.0-0.22.I201205031800.fc17.x86_64
eclipse-emf-core-2.8.0-0.22.I201205031800.fc17.x86_64
eclipse-emf-2.8.0-0.7.e674bb28ad412fc9bc786f2f9b3c157eb2cbdae0.fc17.noarch
icu4j-eclipse-4.4.2.2-11.fc17.noarch
eclipse-jdt-4.2.0-0.22.I201205031800.fc17.x86_64
[root@bigfoot html]# 

So great, I have a shiny Juno installation that lets me do PHP work (not tested Java builds yet...) , woohoo!

So how do I get Javascript editing working?
When I was using Eclipse downloaded directly from the Eclipse project I just needed to install WTP (I think), so I went looking for that and found a few likely candidates:
yum install eclipse-wtp-common eclipse-wtp-servertools eclipse-wtp-sourceediting
Now when I fire up Eclipse Juno, it starts, but I get all sorts of error messages about null pointers and not being able to initialise plugin properly. I guess those packages aren't quite right somehow.

So when I get this PHP contract out of the way I may be switching back to a 'proper' Eclipse installation direct from the Eclipse project.

Unless any Fedora people out there can hold my hand through my Eclipse Juno Javascript editing setup needs? ;)