[ANN] JFlex support 1.2.0 released

1.2.0 - Embedded Java code support, "Find Usages" for macroses and states, flex files can be excluded from compile, "File not generated" bug fixed, settings GUI fixed.

Comment actions Permalink

Hi, I am using this with IDEA 7.0.4 build 7757, on mac using the idea jdk (1.5). But getting this error on starting IDEA:

Bad version number in .class file
com.intellij.diagnostic.PluginException: Bad version number in .class file
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:2)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.a(ComponentManagerImpl.java:50)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$100(ComponentManagerImpl.java:29)

I guess my IDEA version is too new, perhaps.

I also tried grabbing the source and building it myself - I get further - I get highlighting on the flex file - but when I try to run the app I get this error:

"JFlex home path is invalid"

No message
at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:8)
at com.intellij.ide.actions.ShowSettingsUtilImpl.editConfigurable(ShowSettingsUtilImpl.java:13)
at org.intellij.lang.jflex.compiler.JFlex$1.run(JFlex.java:194)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:19)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

There was a request for a TEMPLATE variable definition asked for when I opened the iml file that comes with the source - perhaps I set it incorrectly - any clues on where it should refer to?

Thanks in advance,

Comment actions Permalink

Oops - I did not have the jflex tools stuff below my IDEA folder.

This fixes the second problem above, although I get intermittent errors now when rebuilding about not finding jflex.sh - which is in ]]>/tools/jflex/bin/

I also realised that the downloaded source is 1.1.1 - perhaps thats why I am getting further with it.


Edited by: Chris Kimpton on May 21, 2008 9:42 PM


Please sign in to leave a comment.