aefimov / idea-batch Goto Github PK
View Code? Open in Web Editor NEWIntelliJ IDEA plugin for language support in BAT/CMD Windows batch files
License: MIT License
IntelliJ IDEA plugin for language support in BAT/CMD Windows batch files
License: MIT License
On Mac (OS X 10.9.3) Batch Scripts Support is not running. After start of
IntelliJ IDEA 13.1 Community I get always following Exception:
rg/intellij/lang/batch/runner/BatchConfigurationType : Unsupported major.minor
version 51.0 [Plugin: Batch Scripts Support]:
org/intellij/lang/batch/runner/BatchConfigurationType : Unsupported major.minor
version 51.0 [Plugin: Batch Scripts Support]
com.intellij.openapi.extensions.impl.PicoPluginExtensionInitializationException:
org/intellij/lang/batch/runner/BatchConfigurationType : Unsupported
major.minor version 51.0 [Plugin: Batch Scripts Support]
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:99)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:122)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:246)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:195)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:111)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:98)
at com.intellij.execution.impl.RunManagerImpl.initConfigurationTypes(RunManagerImpl.java:126)
at com.intellij.execution.impl.RunManagerImpl.<init>(RunManagerImpl.java:92)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:530)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:590)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:225)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:212)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:121)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:112)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:296)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:280)
at com.intellij.openapi.project.impl.ProjectManagerImpl.access$400(ProjectManagerImpl.java:83)
at com.intellij.openapi.project.impl.ProjectManagerImpl$10.compute(ProjectManagerImpl.java:580)
at com.intellij.openapi.project.impl.ProjectManagerImpl$10.compute(ProjectManagerImpl.java:576)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:240)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:281)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:645)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
Caused by: com.intellij.diagnostic.PluginException:
org/intellij/lang/batch/runner/BatchConfigurationType : Unsupported major.minor
version 51.0 [Plugin: Batch Scripts Support]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:130)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:77)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadClass(ExtensionComponentAdapter.java:159)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentImplementation(ExtensionComponentAdapter.java:64)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:71)
... 47 more
Caused by: java.lang.UnsupportedClassVersionError:
org/intellij/lang/batch/runner/BatchConfigurationType : Unsupported major.minor
version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:195)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:191)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:167)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:124)
... 55 more
Caused by:
com.intellij.diagnostic.PluginException:
org/intellij/lang/batch/runner/BatchConfigurationType : Unsupported major.minor
version 51.0 [Plugin: Batch Scripts Support]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:130)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:77)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadClass(ExtensionComponentAdapter.java:159)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentImplementation(ExtensionComponentAdapter.java:64)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:71)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:122)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:246)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:195)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:111)
at com.intellij.openapi.extensions.Extensions.getExtensions(Extensions.java:98)
at com.intellij.execution.impl.RunManagerImpl.initConfigurationTypes(RunManagerImpl.java:126)
at com.intellij.execution.impl.RunManagerImpl.<init>(RunManagerImpl.java:92)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:530)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:590)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:225)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:212)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:121)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:112)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:296)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:280)
at com.intellij.openapi.project.impl.ProjectManagerImpl.access$400(ProjectManagerImpl.java:83)
at com.intellij.openapi.project.impl.ProjectManagerImpl$10.compute(ProjectManagerImpl.java:580)
at com.intellij.openapi.project.impl.ProjectManagerImpl$10.compute(ProjectManagerImpl.java:576)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:240)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:281)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:645)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
Caused by: java.lang.UnsupportedClassVersionError:
org/intellij/lang/batch/runner/BatchConfigurationType : Unsupported major.minor
version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:195)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:191)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:167)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:124)
... 55 more
Original issue reported on code.google.com by [email protected]
on 26 Jun 2014 at 8:03
The plugin is not compatible with 2019.3 EAP
What steps will reproduce the problem?
1. Install this plugin with IDEA 11
2. Open a Java project in IDEA 11
3. Right-click on anything in the Project view
What is the expected output? What do you see instead?
IDEA reports error. Exception/more information can be found here -
http://youtrack.jetbrains.com/issue/IDEA-82833
What version of the product are you using? On what operating system?
I'm using Batch Scripts Support 1.0.3 on IDEA 11 (official release), on Win7 32
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 16 Mar 2012 at 6:07
On Windows. Version 1.0.3. Not EAP - regular IntelliJ 12.0
Original issue reported on code.google.com by [email protected]
on 12 Feb 2013 at 7:45
Would be nice that the "Script" input would not replace "\" with "/" character, so that for example a relative script can be used like ".\folder\script.cmd". This is useful when using "Working directory" to set the directory from where to run the command, also for scripts that expect to be executed from a parent folder.
Also it's a little bit strange that a Windows plugin enforces Linux/Unix file path separator.
Is there any variable so that I could have relative path in Script textbox? I would like to share this Run configuration in VCS but I cannot because it uses absolute path.
When I try to run the move command it always shows:
cmd.exe /c move config\server\dump.sql.gz config\
Das System kann die angegebene Datei nicht finden.
I tried to add the command as Script, I tried to add move
as Script and the remaining arguments as "Parameter"
But nothing works.
I tried to run pwd
to ensure the script is executed un the correct directory and this was okay.
When I run the same command from a cmd-shell in the same working directory everythings works fine.
The plugin v1.0.4 worked in IDEA 14.1.5, but not anymore in 15.0. When trying to start a run config, the event log says:
NoSuchMethodError: com.intellij.execution.configurations.GeneralCommandLine.setEnvParams(Ljava/util/Map;)V
IntelliJ Idea 13.0.2
Windows 8 x64
org.intellij.lang.batch.runner.BatchRunConfigurationProducer@1b45339:
Incompatible plugin [Plugin: Batch Scripts Support 1.0.3]
com.intellij.diagnostic.PluginException: Incompatible plugin [Plugin: Batch
Scripts Support 1.0.3]
at com.intellij.execution.actions.PreferredProducerFind.findPreferredProducers(PreferredProducerFind.java:67)
at com.intellij.execution.actions.ConfigurationContext.findPreferredProducers(ConfigurationContext.java:274)
at com.intellij.execution.actions.ConfigurationContext.findExisting(ConfigurationContext.java:173)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:184)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:111)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:187)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:138)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:279)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:96)
at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent$MyEditorMouseListener.invokePopup(TextEditorComponent.java:292)
at com.intellij.util.EditorPopupHandler.a(EditorPopupHandler.java:27)
at com.intellij.util.EditorPopupHandler.mouseReleased(EditorPopupHandler.java:41)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.c(EditorImpl.java:5417)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java:5327)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.AbstractMethodError
at com.intellij.execution.junit.RuntimeConfigurationProducer.createProducer(RuntimeConfigurationProducer.java:61)
at com.intellij.execution.actions.PreferredProducerFind.findPreferredProducers(PreferredProducerFind.java:63)
... 52 more
Original issue reported on code.google.com by [email protected]
on 29 Jan 2014 at 4:09
When entering :: (double colon) using the editor while editing a .cmd file I can no longer enter any characters, keyboard is unresponsive. I have to close & reopen the file. I'm using Intellij 2017.2.6 & Batch plugin 1.0.7 on MacOS.
Any plans to support the latest version?
What steps will reproduce the problem?
1. Install the batch plugin for IntelliJ
2. Go to run/debug configurations
3. Go to Defaults>Batch
4. Note there's not logs tab
What is the expected output? What do you see instead?
Missing log tab (Junit/Application have them)
What version of the product are you using? On what operating system?
Intellij 14.0.3 & Batch Scripts Support plugin version 1.0.4
Some batch files output is directed to a file, I would like to add this to the
run configuration.
Thanks
Original issue reported on code.google.com by [email protected]
on 10 Feb 2015 at 3:05
Attachments:
This problem was reported on JetBrains' issue tracker:
http://youtrack.jetbrains.com/issue/IDEA-77344
What steps will reproduce the problem?
1. Open a project
2. Right-click anywhere
3. The error dialog pops up with the stacktraces noted below
What is the expected output? What do you see instead?
Expected to get the popup menu. Got an error indication. The internal error
view shows (repeated multiple times)
{{{
null
java.lang.AbstractMethodError
at com.intellij.execution.junit.RuntimeConfigurationProducer.createProducer(RuntimeConfigurationProducer.java:55)
at com.intellij.execution.actions.PreferredProducerFind.findPreferredProducers(PreferredProducerFind.java:59)
at com.intellij.execution.actions.ConfigurationContext.findPreferredProducers(ConfigurationContext.java:199)
at com.intellij.execution.actions.ConfigurationContext.findExisting(ConfigurationContext.java:132)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:180)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:98)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:160)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:124)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:84)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:139)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:84)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:139)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:84)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:139)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:84)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:139)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:84)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:233)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:89)
at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent$MyEditorMouseListener.invokePopup(TextEditorComponent.java:307)
at com.intellij.util.EditorPopupHandler.a(EditorPopupHandler.java:27)
at com.intellij.util.EditorPopupHandler.mousePressed(EditorPopupHandler.java:37)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.a(EditorImpl.java:4920)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mousePressed(EditorImpl.java:4885)
at java.awt.Component.processMouseEvent(Component.java:6285)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4651)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
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.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:616)
at java.awt.EventQueue$2.run(EventQueue.java:614)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:694)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:530)
at com.intellij.ide.IdeEventQueue.b(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)
}}}
What version of the product are you using? On what operating system?
IntelliJ IDEA 11.0.2 build #IU-111.277 on JDK 1.6.0_26 on Ubuntu 11.10 64bit.
Please provide any additional information below.
IntelliJ is unable to determine which plugin causes the failure, but disabling
idea-batch (1.0.3) fixes the problem, as noted on JetBrains' issue tracker.
Original issue reported on code.google.com by [email protected]
on 23 Feb 2012 at 5:40
Plugin still works as far as I can tell.
===
IntelliJ IDEA 2021.3 EAP (Ultimate Edition)
Build #IU-213.3714.440, built on September 23, 2021
IntelliJ IDEA EAP User
Expiration date: October 23, 2021
Runtime version: 11.0.12+7-b1649.1 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Non-Bundled Plugins:
ideanginx9 (0.1.9)
com.intellij.plugin.adernov.powershell (2.0.7)
com.jetbrains.php (213.3714.448)
Batch Scripts Support (1.0.12)
com.intellij.spring.webflow (213.3714.440)
Kotlin: 213-1.5.10-release-IJ3714.440
===
Error trace
===
com.intellij.diagnostic.PluginException: The default implementation of method 'getId' is deprecated, you need to override it in 'class org.intellij.lang.batch.runner.BatchConfigurationType$BatchConfigurationFactory'. The default implementation delegates to 'getName' which may be localized, but return value of this method must not depend on current localization. [Plugin: Batch Scripts Support]
at com.intellij.ide.plugins.PluginManagerCore.createPluginException(PluginManagerCore.java:270)
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:12)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:83)
at com.intellij.diagnostic.PluginException.reportDeprecatedDefault(PluginException.java:110)
at com.intellij.execution.configurations.ConfigurationFactory.getId(ConfigurationFactory.java:75)
at com.intellij.execution.impl.RunManagerImpl.getFactory(RunManagerImpl.kt:1021)
at com.intellij.execution.impl.RunManagerImpl.getFactory(RunManagerImpl.kt:1004)
at com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl.readExternal(RunnerAndConfigurationSettingsImpl.kt:204)
at com.intellij.execution.impl.RunConfigurationSchemeManager.readData(RunConfigurationSchemeManager.kt:60)
at com.intellij.execution.impl.RunConfigurationSchemeManager.createScheme(RunConfigurationSchemeManager.kt:43)
at com.intellij.execution.impl.RunConfigurationSchemeManager.createScheme(RunConfigurationSchemeManager.kt:21)
at com.intellij.configurationStore.LazySchemeProcessor.createScheme$default(scheme-impl.kt:64)
at com.intellij.configurationStore.schemeManager.SchemeLoader.loadScheme(schemeLoader.kt:177)
at com.intellij.configurationStore.schemeManager.SchemeManagerImpl.loadSchemes(SchemeManagerImpl.kt:236)
at com.intellij.execution.impl.RunManagerImpl.loadSharedRunConfigurations(RunManagerImpl.kt:843)
at com.intellij.execution.impl.RunManagerImpl.loadState(RunManagerImpl.kt:819)
at com.intellij.execution.impl.RunManagerImpl.loadState(RunManagerImpl.kt:69)
at com.intellij.configurationStore.ComponentStoreImpl.doInitComponent(ComponentStoreImpl.kt:440)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:372)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:123)
at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:48)
at com.intellij.serviceContainer.ComponentManagerImpl.initializeComponent$intellij_platform_serviceContainer(ComponentManagerImpl.kt:519)
at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:51)
at com.intellij.serviceContainer.ServiceComponentAdapter.access$createAndInitialize(ServiceComponentAdapter.kt:12)
at com.intellij.serviceContainer.ServiceComponentAdapter$doCreateInstance$1.compute(ServiceComponentAdapter.kt:41)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:694)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:642)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:233)
at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:40)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:593)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:567)
at com.intellij.openapi.client.ClientAwareComponentManager.getFromSelfOrCurrentSession(ClientAwareComponentManager.kt:37)
at com.intellij.openapi.client.ClientAwareComponentManager.getService(ClientAwareComponentManager.kt:22)
at com.intellij.execution.impl.ProjectRunConfigurationInitializer.serviceCreated(ProjectRunConfigurationInitializer.kt:28)
at com.intellij.openapi.project.impl.ProjectExImpl$init$$inlined$runOnlyCorePluginExtensions$1.accept(projectLoader.kt:92)
at com.intellij.openapi.project.impl.ProjectExImpl$init$$inlined$runOnlyCorePluginExtensions$1.accept(projectLoader.kt)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processWithPluginDescriptor(ExtensionPointImpl.java:301)
at com.intellij.openapi.project.impl.ProjectExImpl.init(ProjectExImpl.kt:290)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:178)
at com.intellij.openapi.project.impl.ProjectManagerExImpl.prepareProject(ProjectManagerExImpl.kt:272)
at com.intellij.openapi.project.impl.ProjectManagerExImpl.access$prepareProject(ProjectManagerExImpl.kt:59)
at com.intellij.openapi.project.impl.ProjectManagerExImpl$doOpenAsync$1.invoke(ProjectManagerExImpl.kt:121)
at com.intellij.openapi.project.impl.ProjectManagerExImpl$doOpenAsync$1.invoke(ProjectManagerExImpl.kt:59)
at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$run$progressRunner$1.apply(ProjectFrameAllocator.kt:94)
at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$run$progressRunner$1.apply(ProjectFrameAllocator.kt:71)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:242)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:184)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:620)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:694)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:642)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:619)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:171)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:242)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
===
Environment definition and environment variables should inherit from global variables, but actually it inherits from constants.
Expression should inherit from string, but it inherits from keywords.
Label and label reference should inherit from label, but it inherits from metadata.
Variable should inherit from local variable, but actually it inherits from markup -> attribute.
My team need to install it on PhpStorm in order to use BATCH run configurations. Can you please review the plugin definition file? There you can configure the plugin compatibilities. It's very possible that your plugin will run perfectly inside PhpStorm, it's just a matter of changing the compatibilities definition. Hope I am not taking wrong assumptions. Thank you in advance!
Would be nice to have a REM
-Line Comment
-Command.
Not sure why, but when used in a batch script and run from this plugin, psql's input and output is not connected. I can run from the IDEA terminal just fine and it works: cmd.exe /c psql
.
This is the only thing I have found that input/output does not work on, not sure why.
What steps will reproduce the problem?
1. Run application that produces a lot of console output in bulk then pauses
then does that again
2. You can see that during "pauses" the last line is not always displayed fully
What is the expected output? What do you see instead?
I would expect to see all logs during those pauses.
What version of the product are you using? On what operating system?
Windows 7
IDEA 14.1
Plugin version 1.0.4
Please provide any additional information below.
I use your plugin to run bat file, that runs tomcat via Tanuki Software
wrapper. In IDEA I configured to always Make my project before each run. It
helped me to save my time as as soon as the compilation finishes I can run the
webserver.
Probably the issue is with reading and writing console buffer in chunks (or
maybe some issue with flushing buffers ?)...
Original issue reported on code.google.com by rafalmag
on 14 May 2015 at 2:17
The current lexer doesn't appear to factor in potential command line options for
many of the built-in commands. Additionally, the standard if defined ...
construct
appears to be broken.
I've attached a screenshot showing the plugin's handling of a valid batch file
below. (and added the source code of the batch file in question beneath that)
I could probably make some updates and setup a pull request if you feel this
warrants a fix - just wanted to make sure I wasn't missing anything with regards
to the if defined
construct.
Non-Issue: There's also some weird handling of double '%' symbols, but
that's probably not easily fixed since availability of and methods for character
escaping varies across the the different builtin commands. (^%
for some, %%
for others) You can see an example of this in the screenshot on lines 57 & 58. I
wouldn't expect those lines to be highlighted correctly in any case, but the
%%A
syntax should only be applied to for
commands.
@echo off
setlocal
rem Setup our VC environment
set MAXVERS=14
set BUILDARCH=X64
:getopt
if "%~1x"=="x" goto setup_msvc
if /i "%~1"=="x86" (set "BUILDARCH=%~1") & (shift /1) & goto getopt
if /i "%~1"=="amd64" (set "BUILDARCH=%~1") & (shift /1) & goto getopt
if /i "%~1"=="x64" (set "BUILDARCH=%~1") & (shift /1) & goto getopt
if /i "%~1"=="ia64" (set "BUILDARCH=%~1") & (shift /1) & goto getopt
if /i "%~1"=="x86_amd64" (set "BUILDARCH=%~1") & (shift /1) & goto getopt
if /i "%~1"=="x86_ia64" (set "BUILDARCH=%~1") & (shift /1) & goto getopt
if not "%~1x"=="x" (set "MAXVERS=%~1") & (shift /1) & goto getopt
:setup_msvc
if defined INCLUDE goto error_env
call "%~dp0find-msvc.cmd" %MAXVERS% 8
if errorlevel 1 exit /B %ERRORLEVEL%
if not defined VCROOT exit /B 1
call "%VCROOT%\vcvarsall.bat" %BUILDARCH%>nul 2>nul
if errorlevel 1 exit /B %ERRORLEVEL%
:setup_flags
rem Normalize our build architecture
if "x%BUILDARCH:~-2%"=="x64" set BUILDARCH=X64
if not "%BUILDARCH%x"=="X64x" set BUILDARCH=X86
if "%BUILDARCH%"=="X86" set BUILDBITS=32
if "%BUILDARCH%"=="X64" set BUILDBITS=64
rem Used for checking ranges a bit later
set /A VCVERNUM=%VCVERS%
rem Output filename
set "OUTPUTNAME=%~dp0TES5Edit.exe"
rem RC Flags
set RCFLAGS=/nologo /D_NDEBUG /DNDEBUG /D_WIN32 /DWIN32 /D_CONSOLE /DCONSOLE /D_WIN64
rem Shared and year-specific compiler options
set CFLAGS=/nologo /W3 /WX- /fp:precise /Qfast_transcendentals /EHs-c- /Ox /GA /GL /GF /Gm- /GS- /Gy /GT /DNDEBUG=1 /D_NDEBUG=1 /D_CRT_SECURE_NO_DEPRECATE /D_WINDOWS /DWINDOWS /MD
set CFLAGS64=/favor:INTEL64
set CFLAGS2010=/arch:SSE2
set CFLAGS2012=/arch:AVX /Qpar
set "CFLAGS2013=%CFLAGS2012% /Gw /Zc:inline /cgthreads4"
set "CFLAGS2015=%CFLAGS2013%"
rem Shared and year-specific linker options
set LDFLAGS=/nologo /INCREMENTAL:NO /LTCG /OPT:ICF=32 /OPT:REF /MACHINE:%BUILDARCH% /LARGEADDRESSAWARE
set LDFLAGS2010=/MANIFEST
set LDFLAGS2012=/MANIFEST:EMBED
set "LDFLAGS2013=%LDFLAGS2012% /CGTHREADS:4"
set "LDFLAGS2015=%LDFLAGS2013%"
rem Merge our shared toolset options with the appropriate year-specific options
call set "CFLAGS=%%CFLAGS%% %%CFLAGS%VCYEAR%%%"
call set "LDFLAGS=%%LDFLAGS%% %%LDFLAGS%VCYEAR%%%"
rem If we're doing a 64-bit build, replace any arch:SSE2 args with arch:AVX and append our 64-bit options
if "%BUILDARCH%"=="X64" set "CFLAGS=%CFLAGS:SSE2=AVX% %CFLAGS64%"
rem Compile sources
echo cl.exe %CFLAGS% /MD /c /FoFO4EditStub.obj FO4EditStub.c
call cl.exe %CFLAGS% /MD /c "/Fo%~dp0FO4EditStub.obj" "%~dp0FO4EditStub.c"
if errorlevel 1 exit /B %ERRORLEVEL%
rem Compile resources
call rc.exe %RCFLAGS% "/fo%~dp0FO4EditStub.res" "%~dp0FO4EditStub.rc"
if errorlevel 1 exit /B %ERRORLEVEL%
rem Link executable
call link.exe %LDFLAGS% /SUBSYSTEM:WINDOWS /OUT:%OUTPUTNAME% /NODEFAULTLIB "%~dp0FO4EditStub.obj" "%~dp0FO4EditStub.res" kernel32.lib msvcrt.lib
if errorlevel 1 exit /B %ERRORLEVEL%
rem VC2012 and later can embed the manifest into the executable from the linker.
if %VCVERNUM% GEQ 11 goto cleanup
rem Embed manifest into the executable
call mt.exe /nologo -manifest %OUTPUTNAME%.manifest -outputresource:%OUTPUTNAME%
if errorlevel 1 exit /B %ERRORLEVEL%
:cleanup
rem Cleanup temporarey build filds
if exist "%~dp0*.obj" del /F /Q "%~dp0*.obj"
if exist "%~dp0*.res" del /F /Q "%~dp0*.res"
if exist "%~dp0*.manifest" del /F /Q "%~dp0*.manifest"
endlocal
goto :EOF
:error_env
echo ERROR: %~nx0 needs to be invoked from a clean environment, with no existing VC env setup.
exit /B 1
Note: Line 18 in the screenshot is actually invalid - I added it while trying to figure out what syntax the lexer expected.
Error message:
org.intellij.lang.batch.lexer._BatchLexer: Error: could not match input
Details:
org.intellij.lang.batch.lexer._BatchLexer: Error: could not match input
java.lang.Error: org.intellij.lang.batch.lexer._BatchLexer: Error: could not match input
at org.intellij.lang.batch.lexer._BatchLexer.zzScanError(_BatchLexer.java:542)
at org.intellij.lang.batch.lexer._BatchLexer.advance(_BatchLexer.java:983)
at com.intellij.lexer.FlexAdapter.locateToken(FlexAdapter.java:95)
at com.intellij.lexer.FlexAdapter.getTokenType(FlexAdapter.java:58)
at com.intellij.lexer.DelegateLexer.getTokenType(DelegateLexer.java:50)
at com.intellij.lexer.LayeredLexer.activateLayerIfNecessary(LayeredLexer.java:70)
at com.intellij.lexer.LayeredLexer.advance(LayeredLexer.java:161)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.documentChanged(LexerEditorHighlighter.java:241)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:795)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:731)
at com.intellij.openapi.editor.impl.DocumentImpl.insertString(DocumentImpl.java:504)
at com.intellij.openapi.editor.EditorModificationUtil.insertStringAtCaretNoScrolling(EditorModificationUtil.java:132)
at com.intellij.openapi.editor.EditorModificationUtil.insertStringAtCaret(EditorModificationUtil.java:97)
at com.intellij.openapi.editor.EditorModificationUtil.insertStringAtCaret(EditorModificationUtil.java:89)
at com.intellij.openapi.editor.EditorModificationUtil.typeInStringAtCaretHonorBlockSelection(EditorModificationUtil.java:345)
at com.intellij.codeInsight.editorActions.TypedHandler.a(TypedHandler.java:244)
at com.intellij.codeInsight.editorActions.TypedHandler.access$100(TypedHandler.java:64)
at com.intellij.codeInsight.editorActions.TypedHandler$1.perform(TypedHandler.java:208)
at com.intellij.openapi.editor.impl.CaretModelImpl$3.run(CaretModelImpl.java:342)
at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:422)
at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:333)
at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:324)
at com.intellij.codeInsight.editorActions.TypedHandler.execute(TypedHandler.java:152)
at com.intellij.codeInsight.lookup.impl.LookupTypedHandler.execute(LookupTypedHandler.java:91)
at com.maddyhome.idea.vim.group.ChangeGroup$2$1.run(ChangeGroup.java:621)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:931)
at com.maddyhome.idea.vim.group.ChangeGroup$2.run(ChangeGroup.java:619)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.maddyhome.idea.vim.group.ChangeGroup.processKey(ChangeGroup.java:616)
at com.maddyhome.idea.vim.KeyHandler.handleKey(KeyHandler.java:177)
at com.maddyhome.idea.vim.KeyHandler.handleKey(KeyHandler.java:103)
at com.maddyhome.idea.vim.VimTypedActionHandler$1.run(VimTypedActionHandler.java:57)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Action at the time:
viewing a batch script
IntelliJ IDEA 14.1.6
Build #IU-141.3056, built on December 21, 2015
JRE: 1.8.0_51-b16 x86
JVM: Java HotSpot(TM) Server VM by Oracle Corporation
Plugins:
com.intellij
Batch Scripts Support
FindBugs-IDEA
IdeaVIM
Jindent - Source Code Formatter
Keymap exporter
NodeJS
com.thoughtworks.gauge
net.nicoulaj.idea.markdown
org.antlr.intellij.plugin
Is there any version that could be compatible with IDEA 2019.1?
Official plugin site shows that version 1.0.7 is compatible up to 2018.2.8 and the next version (i.e. 1.0.10) is compatible from 2019.2.
Hey,
using PhpStorm 2019.3.4 on Win10 Pro.
Whenever I try to type ::
(double colon) the editor breaks after the first :
character and syntax highlighting after the cursor is gone. Return/Enter/Arrow keys are the only ones working, all printable character don't.
I need to reopen the file to continue.
The log reports java.lang.IndexOutOfBoundsException: Wrong offset: 681. Should be in range: [0, 655]
, full log below.
This has also been reported on July 02, 2019 by another user in the JetBrains forum IntelliJ Stopped Editor Working
I can use REM
, however ::
is just muscle memory.
And it would be nice to have standard Ctrl+/
to comment lines, see #42
java.lang.IndexOutOfBoundsException: Wrong offset: 681. Should be in range: [0, 655]
at com.intellij.openapi.editor.ex.util.SegmentArray.offsetOutOfRange(SegmentArray.java:90)
at com.intellij.openapi.editor.ex.util.SegmentArray.findSegmentIndex(SegmentArray.java:104)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.getTokenType(LexerEditorHighlighter.java:497)
at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.getAttributesForPreviousAndTypedChars(LexerEditorHighlighter.java:481)
at com.intellij.openapi.editor.impl.ImmediatePainter.paintImmediately(ImmediatePainter.java:125)
at com.intellij.openapi.editor.impl.ImmediatePainter.paint(ImmediatePainter.java:80)
at com.intellij.openapi.editor.impl.EditorImpl.processKeyTypedImmediately(EditorImpl.java:1283)
at com.intellij.openapi.editor.impl.EditorImpl.processKeyTyped(EditorImpl.java:1268)
at com.intellij.openapi.editor.impl.EditorImpl.processKeyTyped(EditorImpl.java:3349)
at com.intellij.openapi.editor.impl.EditorImpl$7.keyTyped(EditorImpl.java:1104)
at java.desktop/java.awt.Component.processKeyEvent(Component.java:6606)
at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2849)
at java.desktop/java.awt.Component.processEvent(Component.java:6428)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:878)
at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1148)
at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1017)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:843)
at com.intellij.ide.IdeKeyboardFocusManager.dispatchEvent(IdeKeyboardFocusManager.java:40)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4907)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:834)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:775)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
When I run the plugin I see just text. Is there a way to enable ansi color in output console?
What steps will reproduce the problem?
1. Install the plugin.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
This is 1.0.3 installed in licensed IntelliJ version 13.1.1 running 64-bit
Ubuntu 13.10 with Sun java version 1.7.0_40
Please provide any additional information below.
Stacktrace from IntelliJ:
rg.intellij.lang.batch.runner.BatchRunConfigurationProducer:
org.intellij.lang.batch.runner.BatchRunConfigurationProducer
com.intellij.openapi.extensions.ExtensionException:
org.intellij.lang.batch.runner.BatchRunConfigurationProducer
at com.intellij.execution.actions.PreferredProducerFind.findAllProducers(PreferredProducerFind.java:82)
at com.intellij.execution.actions.PreferredProducerFind.findPreferredProducers(PreferredProducerFind.java:53)
at com.intellij.execution.actions.ConfigurationContext.findPreferredProducers(ConfigurationContext.java:274)
at com.intellij.execution.actions.ConfigurationContext.findExisting(ConfigurationContext.java:173)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:184)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:113)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:187)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:138)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:279)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:96)
at com.intellij.ui.tabs.impl.TabLabel.handlePopup(TabLabel.java:315)
at com.intellij.ui.tabs.impl.TabLabel.access$200(TabLabel.java:44)
at com.intellij.ui.tabs.impl.TabLabel$1.mousePressed(TabLabel.java:91)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
at java.awt.Component.processMouseEvent(Component.java:6502)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Original issue reported on code.google.com by [email protected]
on 8 Apr 2014 at 9:09
When using your plugin on my Win7 Pro 64-bit system in IDFEA 13.0.2, I cannot
run a batch script starting another Java program:
'java' is not recognized as an internal or external command,
operable program or batch file.
The same is true from an interactive shell started by the plug-in. Yes,
JAVA_HOME is set (to a 64-bit JDK 1.7.0_51) and it works if I run cmd.exe from
outside IDEA or just double-click my batch file in Explorer.
It might be some problem related to IDEA being 32-bit and Java 64-bit, but I am
just guessing.
Original issue reported on code.google.com by [email protected]
on 20 Feb 2014 at 12:25
It does not seem like PhpStorm variables get interpreted / parsed, they stay in plaintext
implement this. its so useful . dont know why it doesnt work when editing bat files
What steps will reproduce the problem?
1. Install IJ 13
2. Open a .cmd or .bat file, you'll be prompted to install the batch scripts
plugin
3. you'll receive errors in the event log.
4. you will not be able to create/edit/view run/debug configurations, the
dialog will not show existing configs (they will still run) for editing, and
will show errors if you try and create a new one.
What is the expected output? What do you see instead?
need to be able to create and edit run/debug configurations
What version of the product are you using? On what operating system?
1.0.3, IJ 13, Windows 7 64bit
Please provide any additional information below.
Issue was identified by JetBrains Support:
Andrey Dernov (JetBrains Support)
Dec 10 00:16 (MSK)
Please disable 3rd party plugins:
Batch Scripts Support 1.0.3 (1.0.3), CMD Support (1.0.2), FindBugs-IDEA
(0.9.991), TeamCity Integration (8.0.27692)
In this case it looks like Batch Scripts Support 1.0.3 causes the issue.
Original issue reported on code.google.com by [email protected]
on 10 Dec 2013 at 3:34
What steps will reproduce the problem?
1. Install the Batch Language plugin
2. Open the editor to show a batch file
3. Observe horrible lack of text contrast
Original issue reported on code.google.com by [email protected]
on 24 Jan 2014 at 12:32
The following exception keeps occurring and Idea is blaming the batch plugin:
java.lang.IllegalStateException: TextAttributeKey(name:'BATCH.BRACES', fallbackAttributeKey:'DEFAULT_BRACKETS') was already registered with the other fallback attribute key: DEFAULT_BRACES
at com.intellij.openapi.editor.colors.TextAttributesKey.mergeKeys(TextAttributesKey.java:214)
at com.intellij.openapi.editor.colors.TextAttributesKey.lambda$getOrCreate$4(TextAttributesKey.java:200)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1877)
at com.intellij.openapi.editor.colors.TextAttributesKey.getOrCreate(TextAttributesKey.java:200)
at com.intellij.openapi.editor.colors.TextAttributesKey.createTextAttributesKey(TextAttributesKey.java:187)
at org.intellij.lang.batch.editor.BatchHighlighterColors.(BatchHighlighterColors.java:46)
at org.intellij.lang.batch.editor.colors.BatchColorPage.(BatchColorPage.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:85)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:62)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:45)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:72)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:113)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:252)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:179)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:197)
at com.intellij.openapi.extensions.ExtensionPointName.getExtensions(ExtensionPointName.java:27)
at com.intellij.openapi.options.colors.pages.ColorSettingsPagesImpl.getRegisteredPages(ColorSettingsPagesImpl.java:28)
at com.intellij.application.options.colors.ColorAndFontOptions.initPluggedDescriptions(ColorAndFontOptions.java:524)
at com.intellij.application.options.colors.ColorAndFontOptions.initScheme(ColorAndFontOptions.java:516)
at com.intellij.application.options.colors.ColorAndFontOptions.initAll(ColorAndFontOptions.java:506)
at com.intellij.application.options.colors.ColorAndFontOptions.buildConfigurables(ColorAndFontOptions.java:370)
at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:95)
at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:254)
at com.intellij.ide.actions.ShowSettingsUtilImpl.collect(ShowSettingsUtilImpl.java:76)
at com.intellij.ide.actions.ShowSettingsUtilImpl.collect(ShowSettingsUtilImpl.java:76)
at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:67)
at com.intellij.ide.util.gotoByName.GotoActionModel.lambda$new$0(GotoActionModel.java:90)
at com.intellij.openapi.util.VolatileNotNullLazyValue$1.compute(VolatileNotNullLazyValue.java:54)
at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)
at com.intellij.ide.util.gotoByName.GotoActionModel.getConfigurablesNames(GotoActionModel.java:331)
at com.intellij.ide.util.gotoByName.GotoActionItemProvider.processOptions(GotoActionItemProvider.java:119)
at com.intellij.ide.util.gotoByName.GotoActionItemProvider.filterElements(GotoActionItemProvider.java:76)
at com.intellij.ide.actions.searcheverywhere.ActionSearchEverywhereContributor.fetchElements(ActionSearchEverywhereContributor.java:66)
at com.intellij.ide.actions.searcheverywhere.MultithreadSearcher$ContributorSearchTask.run(MultithreadSearcher.java:182)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
at com.intellij.util.ConcurrencyUtil$3.run(ConcurrencyUtil.java:215)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Just installed directly from IDEA, v1.0.12 and always get an exception:
com.intellij.openapi.extensions.impl.PicoPluginExtensionInitializationException: com/intellij/execution/actions/LazyRunConfigurationProducer
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:90)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:113)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:252)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:179)
at com.intellij.openapi.extensions.ExtensionPointName.getExtensionList(ExtensionPointName.java:32)
at com.intellij.execution.actions.RunConfigurationProducer.getProducers(RunConfigurationProducer.java:34)
at com.intellij.execution.actions.ConfigurationContext.findExisting(ConfigurationContext.java:237)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:190)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:171)
at com.intellij.openapi.actionSystem.impl.Utils.doUpdate(Utils.java:202)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:151)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:295)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:109)
at com.intellij.openapi.editor.impl.EditorImpl.invokePopupIfNeeded(EditorImpl.java:4639)
at com.intellij.openapi.editor.impl.EditorImpl.access$9400(EditorImpl.java:124)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.runMouseReleasedCommand(EditorImpl.java:3731)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java:3637)
at java.awt.Component.processMouseEvent(Component.java:6548)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:664)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.NoClassDefFoundError: com/intellij/execution/actions/LazyRunConfigurationProducer
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:295)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:291)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:260)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:132)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:60)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:47)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadImplementationClass(ExtensionComponentAdapter.java:143)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:71)
... 55 more
Caused by: java.lang.ClassNotFoundException: com.intellij.execution.actions.LazyRunConfigurationProducer PluginClassLoader[Batch Scripts Support, 1.0.12] com.intellij.ide.plugins.cl.PluginClassLoader@9caa857
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:49)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 69 more
Caused by:
java.lang.NoClassDefFoundError: com/intellij/execution/actions/LazyRunConfigurationProducer
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:295)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:291)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:260)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:132)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:60)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:47)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.loadImplementationClass(ExtensionComponentAdapter.java:143)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getComponentInstance(ExtensionComponentAdapter.java:71)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.getExtension(ExtensionComponentAdapter.java:113)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:252)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:179)
at com.intellij.openapi.extensions.ExtensionPointName.getExtensionList(ExtensionPointName.java:32)
at com.intellij.execution.actions.RunConfigurationProducer.getProducers(RunConfigurationProducer.java:34)
at com.intellij.execution.actions.ConfigurationContext.findExisting(ConfigurationContext.java:237)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:190)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:171)
at com.intellij.openapi.actionSystem.impl.Utils.doUpdate(Utils.java:202)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:151)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:177)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:295)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:109)
at com.intellij.openapi.editor.impl.EditorImpl.invokePopupIfNeeded(EditorImpl.java:4639)
at com.intellij.openapi.editor.impl.EditorImpl.access$9400(EditorImpl.java:124)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.runMouseReleasedCommand(EditorImpl.java:3731)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java:3637)
at java.awt.Component.processMouseEvent(Component.java:6548)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:664)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ClassNotFoundException: com.intellij.execution.actions.LazyRunConfigurationProducer PluginClassLoader[Batch Scripts Support, 1.0.12] com.intellij.ide.plugins.cl.PluginClassLoader@9caa857
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:49)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 69 more
com.intellij.execution.configurations.GeneralCommandLine.setEnvParams(Ljava/util
/Map;)V
java.lang.NoSuchMethodError:
com.intellij.execution.configurations.GeneralCommandLine.setEnvParams(Ljava/util
/Map;)V
at org.intellij.lang.batch.runner.BatchCommandLineState.generateCommandLine(BatchCommandLineState.java:49)
at org.intellij.lang.batch.runner.BatchCommandLineState.startProcess(BatchCommandLineState.java:29)
at org.intellij.lang.batch.runner.BatchCommandLineState.startProcess(BatchCommandLineState.java:18)
at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:80)
at com.intellij.execution.runners.DefaultProgramRunner.doExecute(DefaultProgramRunner.java:33)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43)
at com.intellij.execution.impl.ExecutionManagerImpl$5.run(ExecutionManagerImpl.java:367)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:144)
at com.intellij.execution.impl.ExecutionManagerImpl$4.run(ExecutionManagerImpl.java:334)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:866)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:661)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:396)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Original issue reported on code.google.com by [email protected]
on 10 Jul 2015 at 7:55
This error (with following stack trace) appears regularly when running on IntelliJ 2019.1:
java.lang.IllegalStateException: TextAttributeKey(name:'BATCH.BRACES', fallbackAttributeKey:'DEFAULT_BRACKETS') was already registered with the other fallback attribute key: DEFAULT_BRACES
at com.intellij.openapi.editor.colors.TextAttributesKey.mergeKeys(TextAttributesKey.java:215)
at com.intellij.openapi.editor.colors.TextAttributesKey.lambda$getOrCreate$4(TextAttributesKey.java:201)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1877)
at com.intellij.openapi.editor.colors.TextAttributesKey.getOrCreate(TextAttributesKey.java:201)
at com.intellij.openapi.editor.colors.TextAttributesKey.createTextAttributesKey(TextAttributesKey.java:188)
at org.intellij.lang.batch.editor.BatchHighlighterColors.<clinit>(BatchHighlighterColors.java:46)
at org.intellij.lang.batch.editor.colors.BatchColorPage.<init>(BatchColorPage.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:92)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:66)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:48)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter$ConstructorInjectionAdapter.instantiateClass(XmlExtensionAdapter.java:112)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:44)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:46)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:343)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:282)
at com.intellij.openapi.extensions.ExtensionPointName.getExtensions(ExtensionPointName.java:29)
at com.intellij.openapi.options.colors.pages.ColorSettingsPagesImpl.getRegisteredPages(ColorSettingsPagesImpl.java:27)
at com.intellij.application.options.colors.ColorAndFontOptions.initPluggedDescriptions(ColorAndFontOptions.java:539)
at com.intellij.application.options.colors.ColorAndFontOptions.initScheme(ColorAndFontOptions.java:531)
at com.intellij.application.options.colors.ColorAndFontOptions.initAll(ColorAndFontOptions.java:515)
at com.intellij.application.options.colors.ColorAndFontOptions.buildConfigurables(ColorAndFontOptions.java:373)
at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:96)
at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:258)
at com.intellij.ide.ui.search.SearchUtil.addChildren(SearchUtil.java:579)
at com.intellij.ide.ui.search.SearchUtil.addChildren(SearchUtil.java:582)
at com.intellij.ide.ui.search.SearchUtil.expandGroup(SearchUtil.java:569)
at com.intellij.ide.ui.search.SearchUtil.expand(SearchUtil.java:559)
at com.intellij.ide.actions.ShowSettingsUtilImpl.findPreselectedByDisplayName(ShowSettingsUtilImpl.java:142)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:137)
at com.intellij.openapi.vcs.roots.VcsRootProblemNotifier.lambda$getConfigureNotificationAction$3(VcsRootProblemNotifier.java:150)
at com.intellij.notification.NotificationAction$1.actionPerformed(NotificationAction.java:34)
at com.intellij.notification.NotificationAction.actionPerformed(NotificationAction.java:24)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:260)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:277)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:251)
at com.intellij.notification.Notification.fire(Notification.java:229)
at com.intellij.notification.impl.NotificationsManagerImpl$14.linkSelected(NotificationsManagerImpl.java:783)
at com.intellij.notification.impl.NotificationsManagerImpl$14.linkSelected(NotificationsManagerImpl.java:780)
at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:142)
at com.intellij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:356)
at com.intellij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:330)
at java.awt.Component.processMouseEvent(Component.java:6550)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at java.awt.Component.processEvent(Component.java:6315)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4899)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4721)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4721)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:766)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:739)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:736)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:747)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:692)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Chinese garbled code when run a bat file in Idea on win10.
What steps will reproduce the problem?
1. Install the plugin
2. Wait for the error (does not happen immediately)
What version of the product are you using? On what operating system?
Windows 7, IDEA 12.0.6
Stack trace:
org.intellij.lang.batch.runner.BatchRunConfigurationProducer@4b0979
java.lang.AbstractMethodError
at com.intellij.execution.junit.RuntimeConfigurationProducer.createProducer(RuntimeConfigurationProducer.java:55)
at com.intellij.execution.actions.PreferredProducerFind.findPreferredProducers(PreferredProducerFind.java:62)
at com.intellij.execution.actions.ConfigurationContext.findPreferredProducers(ConfigurationContext.java:199)
at com.intellij.execution.actions.ConfigurationContext.findExisting(ConfigurationContext.java:132)
at com.intellij.execution.actions.BaseRunConfigurationAction.update(BaseRunConfigurationAction.java:185)
at com.intellij.ide.ui.customization.CustomisedActionGroup.update(CustomisedActionGroup.java:62)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:111)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:167)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:126)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:146)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:146)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:146)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:146)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:241)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:96)
at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent$MyEditorMouseListener.invokePopup(TextEditorComponent.java:294)
at com.intellij.util.EditorPopupHandler.a(EditorPopupHandler.java:27)
at com.intellij.util.EditorPopupHandler.mouseReleased(EditorPopupHandler.java:41)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.c(EditorImpl.java:5341)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java:5256)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:696)
at java.awt.EventQueue$4.run(EventQueue.java:694)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Original issue reported on code.google.com by [email protected]
on 2 Feb 2014 at 11:54
v1.0.1 is available to download from within IDEA.
This will not run in v10 or v11 it fails with the error JAVA_COMMENT on startup.
v1.0.3 is available for download on this site.
Please upload this to the JetBRains repository so that it can be downloaded
from within IDEA.
Original issue reported on code.google.com by [email protected]
on 29 Sep 2011 at 9:35
This exception occurs immediately after I open a project.
com.intellij.openapi.extensions.impl.PicoPluginExtensionInitializationException: sun/reflect/Reflection
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:50)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:54)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:404)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:375)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:243)
at com.intellij.openapi.extensions.ExtensionPointName.getExtensions(ExtensionPointName.java:33)
at com.intellij.openapi.options.colors.pages.ColorSettingsPagesImpl.getRegisteredPages(ColorSettingsPagesImpl.java:27)
at com.intellij.application.options.colors.ColorAndFontOptions.initPluggedDescriptions(ColorAndFontOptions.java:539)
at com.intellij.application.options.colors.ColorAndFontOptions.initScheme(ColorAndFontOptions.java:531)
at com.intellij.application.options.colors.ColorAndFontOptions.initAll(ColorAndFontOptions.java:515)
at com.intellij.application.options.colors.ColorAndFontOptions.buildConfigurables(ColorAndFontOptions.java:373)
at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:96)
at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:258)
at com.intellij.openapi.options.newEditor.SettingsTreeView$MyNode.buildChildren(SettingsTreeView.java:548)
at com.intellij.ui.treeStructure.CachingSimpleNode.getChildren(CachingSimpleNode.java:39)
at com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements(SimpleTreeStructure.java:27)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache(FilteringTreeStructure.java:66)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache(FilteringTreeStructure.java:81)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache(FilteringTreeStructure.java:81)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.rebuild(FilteringTreeStructure.java:61)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.<init>(FilteringTreeStructure.java:53)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.<init>(FilteringTreeStructure.java:44)
at com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder.<init>(FilteringTreeBuilder.java:49)
at com.intellij.openapi.options.newEditor.SettingsTreeView$MyBuilder.<init>(SettingsTreeView.java:918)
at com.intellij.openapi.options.newEditor.SettingsTreeView.<init>(SettingsTreeView.java:175)
at com.intellij.openapi.options.newEditor.SettingsDialog.treeViewFactory(SettingsDialog.java:71)
at com.intellij.openapi.options.newEditor.SettingsEditor.<init>(SettingsEditor.java:161)
at com.intellij.openapi.options.newEditor.SettingsDialog.<init>(SettingsDialog.java:64)
at com.intellij.openapi.options.newEditor.SettingsDialogFactory.create(SettingsDialogFactory.java:38)
at com.intellij.ide.actions.ShowSettingsUtilImpl.getDialog(ShowSettingsUtilImpl.java:44)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:84)
at com.intellij.ide.actions.ShowSettingsAction.perform(ShowSettingsAction.java:54)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:41)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:263)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:280)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:590)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$3(IdeKeyEventDispatcher.java:643)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:192)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:642)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:508)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:463)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:212)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:698)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:392)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:707)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NoClassDefFoundError: sun/reflect/Reflection
at org.intellij.lang.batch.editor.colors.BatchColorPage.extractIdeaScript(BatchColorPage.java:82)
at org.intellij.lang.batch.editor.colors.BatchColorPage.<clinit>(BatchColorPage.java:31)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.util.ReflectionUtil.newInstance(ReflectionUtil.java:389)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter$SimpleConstructorInjectionAdapter.instantiateClass(XmlExtensionAdapter.java:136)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:42)
... 51 more
Caused by: java.lang.ClassNotFoundException: sun.reflect.Reflection PluginClassLoader[Batch Scripts Support, 1.0.7] com.intellij.ide.plugins.cl.PluginClassLoader@785e296a
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:69)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 60 more
Caused by:
java.lang.NoClassDefFoundError: sun/reflect/Reflection
at org.intellij.lang.batch.editor.colors.BatchColorPage.extractIdeaScript(BatchColorPage.java:82)
at org.intellij.lang.batch.editor.colors.BatchColorPage.<clinit>(BatchColorPage.java:31)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.util.ReflectionUtil.newInstance(ReflectionUtil.java:389)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter$SimpleConstructorInjectionAdapter.instantiateClass(XmlExtensionAdapter.java:136)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:42)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:54)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:404)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:375)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:243)
at com.intellij.openapi.extensions.ExtensionPointName.getExtensions(ExtensionPointName.java:33)
at com.intellij.openapi.options.colors.pages.ColorSettingsPagesImpl.getRegisteredPages(ColorSettingsPagesImpl.java:27)
at com.intellij.application.options.colors.ColorAndFontOptions.initPluggedDescriptions(ColorAndFontOptions.java:539)
at com.intellij.application.options.colors.ColorAndFontOptions.initScheme(ColorAndFontOptions.java:531)
at com.intellij.application.options.colors.ColorAndFontOptions.initAll(ColorAndFontOptions.java:515)
at com.intellij.application.options.colors.ColorAndFontOptions.buildConfigurables(ColorAndFontOptions.java:373)
at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:96)
at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:258)
at com.intellij.openapi.options.newEditor.SettingsTreeView$MyNode.buildChildren(SettingsTreeView.java:548)
at com.intellij.ui.treeStructure.CachingSimpleNode.getChildren(CachingSimpleNode.java:39)
at com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements(SimpleTreeStructure.java:27)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache(FilteringTreeStructure.java:66)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache(FilteringTreeStructure.java:81)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache(FilteringTreeStructure.java:81)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.rebuild(FilteringTreeStructure.java:61)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.<init>(FilteringTreeStructure.java:53)
at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.<init>(FilteringTreeStructure.java:44)
at com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder.<init>(FilteringTreeBuilder.java:49)
at com.intellij.openapi.options.newEditor.SettingsTreeView$MyBuilder.<init>(SettingsTreeView.java:918)
at com.intellij.openapi.options.newEditor.SettingsTreeView.<init>(SettingsTreeView.java:175)
at com.intellij.openapi.options.newEditor.SettingsDialog.treeViewFactory(SettingsDialog.java:71)
at com.intellij.openapi.options.newEditor.SettingsEditor.<init>(SettingsEditor.java:161)
at com.intellij.openapi.options.newEditor.SettingsDialog.<init>(SettingsDialog.java:64)
at com.intellij.openapi.options.newEditor.SettingsDialogFactory.create(SettingsDialogFactory.java:38)
at com.intellij.ide.actions.ShowSettingsUtilImpl.getDialog(ShowSettingsUtilImpl.java:44)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:84)
at com.intellij.ide.actions.ShowSettingsAction.perform(ShowSettingsAction.java:54)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:41)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:263)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:280)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:590)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$3(IdeKeyEventDispatcher.java:643)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:192)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:642)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:508)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:463)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:212)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:698)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:392)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:707)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: sun.reflect.Reflection PluginClassLoader[Batch Scripts Support, 1.0.7] com.intellij.ide.plugins.cl.PluginClassLoader@785e296a
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:69)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 60 more
I recently got problems with the development of a plugin needing Batch Script Support. I think the problem is related to the plugin id containing whitespaces. Would it be possible to get an id which doesn't contain whitespace characters?
IntelliJ IDEA 2019.1.2 (Community Edition)
Build #IC-191.7141.44, built on May 7, 2019
JRE: 1.8.0_202-release-1483-b49 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
java.lang.IllegalStateException: TextAttributeKey(name:'BATCH.BRACES', fallbackAttributeKey:'DEFAULT_BRACKETS') was already registered with the other fallback attribute key: DEFAULT_BRACES
at com.intellij.openapi.editor.colors.TextAttributesKey.mergeKeys(TextAttributesKey.java:215)
at com.intellij.openapi.editor.colors.TextAttributesKey.lambda$getOrCreate$4(TextAttributesKey.java:201)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1877)
at com.intellij.openapi.editor.colors.TextAttributesKey.getOrCreate(TextAttributesKey.java:201)
at com.intellij.openapi.editor.colors.TextAttributesKey.createTextAttributesKey(TextAttributesKey.java:188)
at org.intellij.lang.batch.editor.BatchHighlighterColors.<clinit>(BatchHighlighterColors.java:46)
at org.intellij.lang.batch.editor.colors.BatchColorPage.<init>(BatchColorPage.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:92)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:66)
at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:48)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter$ConstructorInjectionAdapter.instantiateClass(XmlExtensionAdapter.java:112)
at com.intellij.openapi.extensions.impl.ExtensionComponentAdapter.createInstance(ExtensionComponentAdapter.java:44)
at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.java:46)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:343)
at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionPointImpl.java:282)
at com.intellij.openapi.extensions.ExtensionPointName.getExtensions(ExtensionPointName.java:29)
at com.intellij.openapi.options.colors.pages.ColorSettingsPagesImpl.getRegisteredPages(ColorSettingsPagesImpl.java:27)
at com.intellij.application.options.colors.ColorAndFontOptions.initPluggedDescriptions(ColorAndFontOptions.java:539)
at com.intellij.application.options.colors.ColorAndFontOptions.initScheme(ColorAndFontOptions.java:531)
at com.intellij.application.options.colors.ColorAndFontOptions.initAll(ColorAndFontOptions.java:515)
at com.intellij.application.options.colors.ColorAndFontOptions.buildConfigurables(ColorAndFontOptions.java:373)
at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:96)
at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:258)
at com.intellij.ide.actions.ShowSettingsUtilImpl.collect(ShowSettingsUtilImpl.java:76)
at com.intellij.ide.actions.ShowSettingsUtilImpl.collect(ShowSettingsUtilImpl.java:76)
at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:67)
at com.intellij.ide.util.gotoByName.GotoActionModel.lambda$new$0(GotoActionModel.java:90)
at com.intellij.openapi.util.VolatileNotNullLazyValue$1.compute(VolatileNotNullLazyValue.java:57)
at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:37)
at com.intellij.ide.util.gotoByName.GotoActionModel.getConfigurablesNames(GotoActionModel.java:331)
at com.intellij.ide.util.gotoByName.GotoActionItemProvider.processOptions(GotoActionItemProvider.java:120)
at com.intellij.ide.util.gotoByName.GotoActionItemProvider.filterElements(GotoActionItemProvider.java:76)
at com.intellij.ide.actions.searcheverywhere.ActionSearchEverywhereContributor.fetchElements(ActionSearchEverywhereContributor.java:86)
at com.intellij.ide.actions.searcheverywhere.MultiThreadSearcher$ContributorSearchTask.lambda$run$1(MultiThreadSearcher.java:200)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.ide.actions.searcheverywhere.MultiThreadSearcher$ContributorSearchTask.run(MultiThreadSearcher.java:200)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:224)
at com.intellij.util.ConcurrencyUtil.lambda$underThreadNameRunnable$0(ConcurrencyUtil.java:212)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Running on IntelliJ IDEA 2020.1 EAP on macOS 10.15.2, there are red underlines after if defined
on line 36 of gradlew.bat
version 6.1 (see attached gradlew.txt, as GitHub won't accept .bat
attachments).
No error is reported, however.
I don't know if this issue occurs on other versions of IntelliJ, on other platforms, for all uses of if defined
, etc.
Any time I run any batch script using this plugin, an "out" directory is created in my project root containing "production" and "test" directories including my source code. This is not appropriate behavior. No other run configuration causes this.
I'd like to start some server by idea batch which should be stopped by ctrl-c
(otherwise the server is not shutting down gracefully).
Therefore I need an option where I can activate stopping it by ctrl-c.
Original issue reported on code.google.com by [email protected]
on 25 Jun 2014 at 6:20
I am running a project with a Conda environment interpreter. On that environment, I have installed a tool (Sphinx) with conda. When I run a batch at the PyCharm's terminal, the batch can run sphinx-build without a problem, because PyCharm's terminal seems to know where the Conda environment stuff is. However, if I use idea-batch for the same batch, I get errors because it cannot find the tools.
To try to circumvent the problem, I have added an environment variable PATH
with "C:\Users\UserName\AppData\Local\Continuum\anaconda3\envs\COBRA\Scripts
", which is where the executables of tools installed with conda reside. That helps, but the tools try to load a DLL and that cannot be found, generating an error. So I went back to the idea-path run configuration and added "C:\Users\userName\AppData\Local\Continuum\anaconda3\envs\COBRA\DLLs
" to the PATH
variable, ending with:
PATH=C:\Users\E26638\AppData\Local\Continuum\anaconda3\envs\COBRA\Scripts\;C:\Users\E26638\AppData\Local\Continuum\anaconda3\envs\COBRA\DLLs
in the "environment variables" field. However, that has not solved the problem and I still get an error that the DLL failed to load.
Of course, adding the paths was a hack; the ideal way to do it is for idea-batch to run the batch as if it were being run from PyCharm's Terminal, which somehow takes the Conda environment interpreter (or whatever other type of environment the project is using) into account.
From http://youtrack.jetbrains.net/issue/IDEA-51799
IDEA Build #IU-94.148
Batch Script Support 1.0.3
Found in IDEA console:
[19104481] ERROR - l.source.text.BlockSupportImpl - View provider
com.intellij.psi.SingleRootFileViewProvider@bfead3 refused to parse text
with Language: TEXT; base: Language: Batch; copy: Language: Batch;
fileType: org.intellij.lang.batch.fileTypes.BatchFileType@160c7da
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
at
com.intellij.psi.impl.source.text.BlockSupportImpl.makeFullParse(BlockSupportImp
l.java:196)
at
com.intellij.psi.impl.source.text.BlockSupportImpl.reparseRangeInternal(BlockSup
portImpl.java:146)
at
com.intellij.psi.impl.source.text.BlockSupportImpl.access$000(BlockSupportImpl.j
ava:52)
at
com.intellij.psi.impl.source.text.BlockSupportImpl$2.run(BlockSupportImpl.java:9
6)
at com.intellij.psi.impl.PsiManagerImpl$3.compute(PsiManagerImpl.java:212)
at
com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFor
mattingInside(PostprocessReformattingAspect.java:
117)
at
com.intellij.psi.impl.PsiManagerImpl.performActionWithFormatterDisabled(PsiManag
erImpl.java:210)
at
com.intellij.psi.impl.source.text.BlockSupportImpl.reparseRange(BlockSupportImpl
.java:94)
at
com.intellij.psi.impl.PsiDocumentManagerImpl.commit(PsiDocumentManagerImpl.java:
450)
at
com.intellij.psi.impl.PsiDocumentManagerImpl$1.run(PsiDocumentManagerImpl.java:2
45)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(Application
Impl.java:748)
at
com.intellij.psi.impl.PsiDocumentManagerImpl.doCommit(PsiDocumentManagerImpl.jav
a:232)
at
com.intellij.psi.impl.PsiDocumentManagerImpl.commitDocument(PsiDocumentManagerIm
pl.java:226)
at
com.intellij.psi.impl.PsiDocumentManagerImpl.commitAllDocuments(PsiDocumentManag
erImpl.java:195)
at
com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.getPasses(T
extEditorBackgroundHighlighter.java:84)
at
com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPasse
sForEditor(TextEditorBackgroundHighlighter.java:1
27)
at
com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPasse
sForEditor(TextEditorBackgroundHighlighter.java:3
5)
at
com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl$2.run(DaemonCodeAnal
yzerImpl.java:591)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:226)
at
com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocat
or.java:319)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:608)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
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)
[19104487] ERROR - l.source.text.BlockSupportImpl - IntelliJ IDEA 9.0.1
Build #IU-94.148
[19104487] ERROR - l.source.text.BlockSupportImpl - JDK: 1.6.0_14
[19104487] ERROR - l.source.text.BlockSupportImpl - VM: Java HotSpot(TM)
Client VM
[19104488] ERROR - l.source.text.BlockSupportImpl - Vendor: Sun
Microsystems Inc.
[19104488] ERROR - l.source.text.BlockSupportImpl - OS: Windows Vista
[19104488] ERROR - l.source.text.BlockSupportImpl - Last Action:
EditorLineEndWithSelection
[19105280] ERROR - l.source.text.BlockSupportImpl - View provider
com.intellij.psi.SingleRootFileViewProvider@bfead3 refused to parse text
with Language: TEXT; base: Language: Batch; copy: Language: Batch;
fileType: org.intellij.lang.batch.fileTypes.BatchFileType@160c7da
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
at
com.intellij.psi.impl.source.text.BlockSupportImpl.makeFullParse(BlockSupportImp
l.java:196)
at
com.intellij.psi.impl.source.text.BlockSupportImpl.reparseRangeInternal(BlockSup
portImpl.java:146)
at
com.intellij.psi.impl.source.text.BlockSupportImpl.access$000(BlockSupportImpl.j
ava:52)
at
com.intellij.psi.impl.source.text.BlockSupportImpl$2.run(BlockSupportImpl.java:9
6)
at com.intellij.psi.impl.PsiManagerImpl$3.compute(PsiManagerImpl.java:212)
at
com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFor
mattingInside(PostprocessReformattingAspect.java:
117)
at
com.intellij.psi.impl.PsiManagerImpl.performActionWithFormatterDisabled(PsiManag
erImpl.java:210)
at
com.intellij.psi.impl.source.text.BlockSupportImpl.reparseRange(BlockSupportImpl
.java:94)
at
com.intellij.psi.impl.PsiDocumentManagerImpl.commit(PsiDocumentManagerImpl.java:
450)
at
com.intellij.psi.impl.PsiDocumentManagerImpl$1.run(PsiDocumentManagerImpl.java:2
45)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(Application
Impl.java:748)
at
com.intellij.psi.impl.PsiDocumentManagerImpl.doCommit(PsiDocumentManagerImpl.jav
a:232)
at
com.intellij.psi.impl.PsiDocumentManagerImpl.commitDocument(PsiDocumentManagerIm
pl.java:226)
at
com.intellij.psi.impl.PsiDocumentManagerImpl.commitAllDocuments(PsiDocumentManag
erImpl.java:195)
at
com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.getPasses(T
extEditorBackgroundHighlighter.java:84)
at
com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPasse
sForEditor(TextEditorBackgroundHighlighter.java:1
27)
at
com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPasse
sForEditor(TextEditorBackgroundHighlighter.java:3
5)
at
com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl$2.run(DaemonCodeAnal
yzerImpl.java:591)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:226)
at
com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocat
or.java:319)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:608)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
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)
Original issue reported on code.google.com by [email protected]
on 26 Jan 2010 at 6:06
Several times a day I get Intellij reporting an exception occurred in this plugin. the (shortened) stacktrace is below:
java.lang.IllegalStateException: TextAttributeKey(name:'BATCH.BRACES', fallbackAttributeKey:'DEFAULT_BRACKETS') was already registered with the other fallback attribute key: DEFAULT_BRACES
at com.intellij.openapi.editor.colors.TextAttributesKey.mergeKeys(TextAttributesKey.java:215)
at com.intellij.openapi.editor.colors.TextAttributesKey.lambda$getOrCreate$4(TextAttributesKey.java:201)
It seems to happen even when I am not editing any batch files, I am working on other files.
The "Report Exception" button is disabled (this could be Intellij bug and not related to the plugin) so I decided to report the bug here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.