Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.reason.CompilerProcessException: Dune process exception. Invalid cliType command. #234

Closed
hartmut27 opened this issue Apr 25, 2020 · 6 comments
Assignees

Comments

@hartmut27
Copy link

plugin version: 0.88.0-2020.1

On Linux/Ubuntu after save file, I receive an Exception Dune process exception. Invalid cliType command.

In the shell,esy dune build works perfect.

( btw. how could I tell the plugin to take esy dune ... instead of dune... )

Log:

2020-04-26 00:27:08,354 [ 35204] INFO - rationStore.ComponentStoreImpl - Saving Project (name=zabl_re, containerState=ACTIVE, componentStore=/home/hape/zabl_re) XDebuggerManager took 12 ms
2020-04-26 00:28:13,489 [ 100339] ERROR - llij.ide.plugins.PluginManager - Dune process exception. Invalid cliType command.
com.reason.CompilerProcessException: Dune process exception. Invalid cliType command.
at com.reason.esy.EsyProcess.recreate(EsyProcess.java:158)
at com.reason.dune.DuneCompiler.run(DuneCompiler.java:62)
at com.reason.ide.console.CompilerAction.doAction(CompilerAction.java:50)
at com.reason.ide.console.BsMakeWorldAction.actionPerformed(BsMakeWorldAction.java:20)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:280)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:274)
at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:182)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:155)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:438)
at java.desktop/java.awt.Component.processEvent(Component.java:6416)
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.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
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:974)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:912)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:844)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:739)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
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)
2020-04-26 00:28:13,491 [ 100341] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2020.1 Build #IU-201.6668.121
2020-04-26 00:28:13,491 [ 100341] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-04-26 00:28:13,492 [ 100342] ERROR - llij.ide.plugins.PluginManager - OS: Linux
2020-04-26 00:28:13,492 [ 100342] ERROR - llij.ide.plugins.PluginManager - Plugin to blame: ReasonML version: 0.88.0-2020.1

@JohnPucciarelli JohnPucciarelli self-assigned this Apr 26, 2020
@giraud
Copy link
Owner

giraud commented Apr 27, 2020

Hi, esy is not yet supported, work is in progress.

@JohnPucciarelli
Copy link
Collaborator

JohnPucciarelli commented Apr 27, 2020

I have a branch that adds proper esy support. I'll update this issue once the PR is ready.

In the meantime, I added an "experimental" label to the esy support check.

@Coobaha
Copy link
Contributor

Coobaha commented Apr 30, 2020

I think this also affects Bucklescript commands. My hotkeys are not working anymore, and can't execute clean & build command from toolbar or actions

2020-04-30 10:55:28,009 [ 219714]  ERROR - llij.ide.plugins.PluginManager - BuckleScript process exception. Invalid cliType command. 
com.reason.CompilerProcessException: BuckleScript process exception. Invalid cliType command.
	at com.reason.bs.BsProcess.recreate(BsProcess.java:79)
	at com.reason.bs.BucklescriptImpl.run(BucklescriptImpl.java:77)
	at com.reason.ide.console.CompilerAction.doAction(CompilerAction.java:50)
	at com.reason.ide.console.DuneBuildAction.actionPerformed(DuneBuildAction.java:19)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:280)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:609)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$3(IdeKeyEventDispatcher.java:670)
	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:669)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:619)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:516)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:470)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:219)
	at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:896)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:841)
	at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
	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)

@Coobaha
Copy link
Contributor

Coobaha commented Apr 30, 2020

@JohnPucciarelli @giraud This is 0.88 regression, 0.87 is working fine

@Coobaha
Copy link
Contributor

Coobaha commented May 1, 2020

Aha, found the reason. Bsb action was named "Build" before and now it was changed to Make. I had keybinding for Build action and it was migrated to Esy's build 😿 I've noticed that action names for esy/dune/bsb can clash and it is not clear what action you are supposed to bind. Fixed here #238

@giraud
Copy link
Owner

giraud commented May 2, 2020

should be fixed in 0.88.1 (2019.3/2020.1)

@giraud giraud closed this as completed May 2, 2020
@giraud giraud mentioned this issue May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants