Batch Scripts Support Doesn't Work

The following error occurs when using the Batch Scripts Support plugin downloaded from within IDEA in v10 and v11.

JAVA_BLOCK_COMMENT: JAVA_BLOCK_COMMENT java.lang.NoSuchFieldError: JAVA_BLOCK_COMMENT      at org.intellij.lang.batch.editor.BatchHighlighterColors.<clinit>(BatchHighlighterColors.java:15)      at org.intellij.lang.batch.editor.colors.BatchColorPage.<init>(BatchColorPage.java:33)      at org.intellij.lang.batch.editor.colors.BatchEditorColorsManager.initComponent(BatchEditorColorsManager.java:14)      at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponent(ComponentManagerImpl.java:212)      at com.intellij.openapi.components.impl.ComponentManagerImpl.access$1100(ComponentManagerImpl.java:54)      at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:618)      at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:556)      at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:231)      at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:218)      at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:200)      at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)      at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:124)      at com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:393)      at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:105)      at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:325)      at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:84)      at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:507)      at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:124)      at com.intellij.idea.MainImpl$2.run(MainImpl.java:102)      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)      at java.awt.EventQueue.access$000(EventQueue.java:84)      at java.awt.EventQueue$1.run(EventQueue.java:602)      at java.awt.EventQueue$1.run(EventQueue.java:600)      at java.security.AccessController.doPrivileged(Native Method)      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)      at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)      at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:679)      at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)      at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:416)      at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374)      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Fortunately there is a note on the plugins page about this
http://plugins.intellij.net/plugin/?idea&id=265

v1.0.1 is from IDEA but 1.0.3 is available here
http://code.google.com/p/idea-batch/downloads/list



There have been no commits to the source code since 2009 and I didn't get a response from my email yet.
Can someone from JetBrains update the version available from within the repository to the latest version?

Even better would be for JetBrains to make this core functionality since scripts are often used to launch Java applications.
1 comment
Comment actions Permalink

I banged my head against the wall again today until I remembered about this.

To that end, I have downloaded the latest jar from google code, modified the plugin.xml and re-published the jar to the plugin repository so that it is available from within IDEA.
http://plugins.intellij.net/plugin/?idea&id=6501

I hope no-one objects too much.

0

Please sign in to leave a comment.