getgauge / Intellij-Plugin

Gauge IntelliJ IDEA plugin
Apache License 2.0
44 stars 28 forks source link

plugin not working after 1. april update #377

Closed miroslav750 closed 5 years ago

miroslav750 commented 5 years ago

Expected behavior

Actual behavior

Steps to reproduce

1. update plugin to 0.3.4 (from idea ultimate marketplace) 2. update idea to 2019.1 IntelliJ IDEA 2019.1 (Ultimate Edition) Build #IU-191.6183.87, built on March 27, 2019

Version information

Plugins

html-report (4.0.8) java (0.7.2) screenshot (0.0.1) spectacle (0.1.3)



* When I run test with older plugin (0.3.15 nightly) it connects implementet steps with spec but fail with:

```2019/04/02 09:13:33 Failed to get configuration from Gauge properties file. Error: open /usr/local/bin/gauge/config/gauge.properties: not a directory
2019/04/02 09:13:33 Incorrect value for gauge_telemetry_enabled in property file. Cannot convert  to boolean.
2019/04/02 09:13:33 Failed to get configuration from Gauge properties file. Error: open /usr/local/bin/gauge/config/gauge.properties: not a directory
2019/04/02 09:13:33 Incorrect value for gauge_telemetry_log_enabled in property file. Cannot convert  to boolean.
2019/04/02 09:13:33 Failed to get configuration from Gauge properties file. Error: open /usr/local/bin/gauge/config/gauge.properties: not a directory
2019/04/02 09:13:33 Failed to get configuration from Gauge properties file. Error: open /usr/local/bin/gauge/config/gauge.properties: not a directory
2019/04/02 09:13:33 Failed to get configuration from Gauge properties file. Error: open /usr/local/bin/gauge/config/gauge.properties: not a directory
2019/04/02 09:13:33 Incorrect value for check_updates in property file. Cannot convert  to boolean.
2019/04/02 09:13:33 Failed to get configuration from Gauge properties file. Error: open /usr/local/bin/gauge/config/gauge.properties: not a directory
2019/04/02 09:13:33 Failed to get configuration from Gauge properties file. Error: open /usr/local/bin/gauge/config/gauge.properties: not a directory
2019/04/02 09:13:33 Failed to get configuration from Gauge properties file. Error: open /usr/local/bin/gauge/config/gauge.properties: not a directory
Compatible version of plugin java not found. Installing plugin java...```
nehashri commented 5 years ago

Duplicate of https://github.com/getgauge/Intellij-Plugin/issues/376.

miroslav750 commented 5 years ago

Is there any guide how to set up settings in nightly ? It connected steps with implementation now but still can't run tests. get error as I mentions at the the bottom of my last message. Gauge is installed with brew on mac, so it is in default directory. In plugin settings I have gauge binary path empty and in GAUGE_HOME I have: /usr/local/bin/gauge

nehashri commented 5 years ago

@miroslav750 Your GAUGE_HOME is wrong. Refer https://docs.gauge.org/latest/faqs.html#what-is-gauge-home for more information on GAUGE_HOME. If you have default settings, I suggest you to leave the field blank.

SureshRajpurohit85 commented 5 years ago

i am getting similar issue post update of Plugin Stack trace : java.lang.RuntimeException: Gauge API not started at com.thoughtworks.gauge.connection.GaugeConnection.createConnection(GaugeConnection.java:76) at com.thoughtworks.gauge.connection.GaugeConnection.createConnection(GaugeConnection.java:87) at com.thoughtworks.gauge.connection.GaugeConnection.createConnection(GaugeConnection.java:87) at com.thoughtworks.gauge.connection.GaugeConnection.createConnection(GaugeConnection.java:87) at com.thoughtworks.gauge.connection.GaugeConnection.createConnection(GaugeConnection.java:87) at com.thoughtworks.gauge.connection.GaugeConnection.createConnection(GaugeConnection.java:87) at com.thoughtworks.gauge.connection.GaugeConnection.<init>(GaugeConnection.java:49) at com.thoughtworks.gauge.GaugeModuleComponent.initializeGaugeConnection(GaugeModuleComponent.java:118) at com.thoughtworks.gauge.GaugeModuleComponent.createGaugeService(GaugeModuleComponent.java:110) at com.thoughtworks.gauge.module.lib.AbstractLibHelper.<init>(AbstractLibHelper.java:37) at com.thoughtworks.gauge.module.lib.GaugeLibHelper.<init>(GaugeLibHelper.java:51) at com.thoughtworks.gauge.module.lib.LibHelperFactory.helperFor(LibHelperFactory.java:35) at com.thoughtworks.gauge.GaugeModuleComponent.projectOpened(GaugeModuleComponent.java:81) at com.thoughtworks.gauge.GaugeModuleComponent.moduleAdded(GaugeModuleComponent.java:98) at com.intellij.openapi.module.impl.ModuleImpl.moduleAdded(ModuleImpl.java:208) at com.intellij.openapi.module.impl.ModuleManagerImpl.lambda$fireModuleAddedInWriteAction$4(ModuleManagerImpl.java:639) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1054) at com.intellij.openapi.module.impl.ModuleManagerImpl.fireModuleAddedInWriteAction(ModuleManagerImpl.java:637) at com.intellij.openapi.module.impl.ModuleManagerComponent.lambda$fireModulesAdded$1(ModuleManagerComponent.java:144) at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88) at com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:153) at com.intellij.openapi.module.impl.ModuleManagerComponent.fireModulesAdded(ModuleManagerComponent.java:144) at com.intellij.openapi.module.impl.ModuleManagerImpl.projectOpened(ModuleManagerImpl.java:95) at com.intellij.openapi.project.impl.ProjectManagerImpl.lambda$fireProjectOpened$17(ProjectManagerImpl.java:784) at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:360) at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectOpened(ProjectManagerImpl.java:784) at com.intellij.openapi.project.impl.ProjectManagerImpl.lambda$null$6(ProjectManagerImpl.java:397) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransactionAndWait$2(TransactionGuardImpl.java:165) 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.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:435) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:419) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:403) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) 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:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:747) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:696) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391) at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:804) at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:210) at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:196) at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:608) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:454) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:109) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:251) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:205) at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProjectUnderProgress(ProjectManagerImpl.java:446) at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:421) at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:260) at com.intellij.ide.RecentProjectsManagerBase.doOpenProject(RecentProjectsManagerBase.java:509) at com.intellij.ide.RecentProjectsManagerBase.doReopenLastProject(RecentProjectsManagerBase.java:628) at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:684) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114) at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:393) at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:354) at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:343) at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:320) at com.intellij.util.messages.impl.MessageBusImpl.access$100(MessageBusImpl.java:29) at com.intellij.util.messages.impl.MessageBusImpl$1.invoke(MessageBusImpl.java:192) at com.sun.proxy.$Proxy43.appStarting(Unknown Source) at com.intellij.idea.IdeaApplication$IdeStarter.lambda$main$1(IdeaApplication.java:370) 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.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:368) at com.intellij.idea.IdeaApplication.lambda$run$1(IdeaApplication.java:211) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195) at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:211) at com.intellij.idea.IdeaApplication.lambda$initApplication$0(IdeaApplication.java:74) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) 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:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:347) 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)

Apoorva-GA commented 5 years ago

@miroslav750 I tried to replicate the issue, but no luck. I am on

Gauge version: 1.0.4
Commit Hash: 3a9a647

Plugins
-------
html-report (4.0.8)
java (0.7.2)
xml-report (0.2.1)

And I did a gauge init java and opened the project in intellij 2019.1 and I am able to execute the specs.

Could you please recheck if Gauge IntelliJ plugin 0.3.15-nightly-2019-04-01 is installed?

Debashis9012 commented 5 years ago

We have released intellij. Could you please try with the release version: 0.3.15 you can refer: https://github.com/getgauge/Intellij-Plugin/releases/tag/v0.3.15