Closed paulosalvatore closed 5 years ago
Similar error on my system too
Details: PyCharm 2019.1.3 (Professional Edition) Build #PY-191.7479.30, built on May 29, 2019 JRE: 11.0.2+9-b159.60 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0.17134
stacktrace:
java.lang.RuntimeException: Error Loading R-GUI-Windows-Connector:
at io.github.holgerbrandl.send2terminal.connectors.RGWLauncher.<init>(RGWLauncher.java:39)
at io.github.holgerbrandl.send2terminal.connectors.ConnectorUtils.getPlatformConnector(ConnectorUtils.java:30)
at io.github.holgerbrandl.send2terminal.connectors.ConnectorUtils.sendText(ConnectorUtils.java:40)
at io.github.holgerbrandl.send2terminal.actions.EvaluateLineOrSelectionAction.actionPerformed(EvaluateLineOrSelectionAction.java:45)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:261)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:278)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:292)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:283)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:107)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:282)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:111)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:121)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:111)
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:524)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:35)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:546)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:729)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:674)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:373)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at io.github.holgerbrandl.send2terminal.connectors.RGWLauncher.copyStream2File(RGWLauncher.java:72)
at io.github.holgerbrandl.send2terminal.connectors.RGWLauncher.getLauncher(RGWLauncher.java:56)
at io.github.holgerbrandl.send2terminal.connectors.RGWLauncher.<init>(RGWLauncher.java:37)
... 52 more
As a workaround (until rgwconnector has been removed) you could change the evaluation target to conemu (assuming that you have conemu installed and are intending to use it).
Thanks for the suggestion. Can you guide me how to change the evaluation target? I downloaded cmder and changed the terminal path as described here. When I opened terminal in pycharm it is opening cmder, but I am trying to send R code to terminal, it is still trying to lauch RGWLauncher and throwing the error described above
java.lang.reflect.InvocationTargetException
Cannot run program "C:\Users\Reddy\RGWConnector.exe": CreateProcess error=193, %1 is not a valid Win32 application
You can change the evaluation target in the plugin settings:
The conemu/cmder functionality was published with the rather recent v1.4 of the plugin.
Trying to use 'Send2Terminal' I get this error: java.io.IOException: Cannot run program "C:\Users\paulo\RGWConnector.exe": CreateProcess error=193, %1 não é um aplicativo Win32 válido Which means windows can't run RGWConnector.exe.
Tried to launch it with compatibility settings and admin access but isn't possible.
Reference Image:
Full stack trace:
Execution path