views:

1011

answers:

2

I do a lot of work in Lua and work primarily in Eclipse Galileo. Unfortunately, there doesn't appear to be a working plugin for syntax highlighting. I've tried pretty much all available versions of LuaEclipse and LunarEclipse (including beta previews) but has gotten me nowhere. In both cases I get errors while installing them, referring to missing packages.

The frustrating thing is all I really care about is syntax highlighting, which should be trivial. Has anyone else had any luck with this?

Edit: Thanks for the suggestions. I've pasted the error I'm getting when installing LuaEclipse 1.3.1 preview below.

An error occurred while collecting items to be installed
  session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
  No repository found containing: osgi.bundle,org.eclipse.cvs,1.0.300.v200909170800
  No repository found containing: osgi.bundle,org.eclipse.jdt.core,3.5.1.v_972_R35x
  No repository found containing: osgi.bundle,org.eclipse.jdt.ui,3.5.1.r351_v20090821-0800
  No repository found containing: osgi.bundle,org.eclipse.team.cvs.ui,3.3.201.R35x_v20090826-0905
  No repository found containing: osgi.bundle,org.eclipse.ui.views.log,1.0.100.v20090731
  No repository found containing: org.eclipse.update.feature,org.eclipse.cvs,1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16
  No repository found containing: binary,org.eclipse.cvs_root,1.1.101.R35x_v20090811-7E79FEd9KKF5H2YDWFLLBL01A16
+3  A: 

LuaEclipse is the only Lua plugin for Eclipse that I can find. However there are a number of other editors you could try if it is not installing correctly for you.

Pipmak Wiki lists various Lua editors that you could try.

Update: Your installation error message is complaining about the absence of CVS. This error sometimes occurs when you're behind a proxy server, you can set Eclipse to use your proxy as follows:

  1. Go to Window->Preferences
  2. Click Install/Update
  3. Check Enable HTTP proxy connection
  4. Enter your proxy host in HTTP proxy host address and proxy port in HTTP proxy host port
  5. Click OK

If you aren't behind a proxy. It may be that your P2 repository is in an inconsistent state. HAve you tried installing to a clean Eclipse install?

Rich Seller
I tried installing CVS and after that LuaEclipse worked
averisk
+2  A: 

Did you try EclipseColorer? It can highlight a lot of syntaxes. In fact, if it even can't, here you can find a documentation on how to create a new highlighting profile for particular language.

Andrejs Cainikovs
I tried this but actually get the exact same error as mentioned in the question :(
averisk