Although step implementation exists, still seeing "Undefined"

3,359 views
Skip to first unread message

Sravanthi Vulchi

unread,
May 8, 2015, 7:15:36 PM5/8/15
to getg...@googlegroups.com
Hi,

In the Spec file when i do Ctrl + Hover on the identifier, i am not taken to the step implementation, though the implementation is available. When i do Ctrl + Hover it just says "Cannot find declaration to go to". 
Help to resolve this issue would be much appreciated. 

I have also attached screenshot of the error. 

Thanks
Sravanthi

Issue.png

Prateek Kumar Baheti

unread,
May 9, 2015, 7:13:53 AM5/9/15
to Sravanthi Vulchi, getg...@googlegroups.com

Make sure you are on the latest version of the intellij gauge plugin. See updating intellij plugin.

Can you try the steps on the intellij Troubleshooting guide to see if it resolves the issue ?

Also can you please try opening only the gauge module in a separate project and not added inside another module. What i mean is open only the Selenium testing module in a new window.
--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/bc9acf0f-59c6-437a-bf8f-13436811876d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sent from my iPhone

ganesh n

unread,
May 12, 2015, 2:13:45 AM5/12/15
to getg...@googlegroups.com
Hi,

Even I am facing the same issue. I suspect some configuration needed at compile time for linking between spec file and step implementation is missing. 

Could you throw some insight on how the two gets linked other than the jar file.


apoorvam

unread,
May 12, 2015, 2:31:30 AM5/12/15
to getg...@googlegroups.com, ganes...@gmail.com

Hi,

The mapping between steps and the implementation is done via  @Step annotation of methods. The steps get marked as 'Unimplemented' if doesn't find source files having implementation. Can you please try the following to fix this issue? One of these could be the reason for steps not getting mapped. 

  • Ensure that src/test/java directory is marked as test sources root in the project. Right click on the src/test/java directory and select Mark Directory as -> Test sources root
  • Ensure the project is compiling. Press ctrl/cmd + F9 to build project or select Build -> Make project.
  • Ensure Module SDK is set to a valid JDK under Module settings.
  • Check the location of all the dependencies for your project and see if these are in your PROJECT_ROOT/libs directory? Gauge requires all your project's dependency to be present under the libs directory.
  • Restart Intellij or close and reopen the project - Invalidate Cache.
Please let us know if any of these helps you fix it or if you see any other issues.

--Apoorva

ganesh n

unread,
May 12, 2015, 3:56:11 AM5/12/15
to getg...@googlegroups.com
I have all your suggestions configured already. Still no luck

apoorvam

unread,
May 12, 2015, 5:37:28 AM5/12/15
to getg...@googlegroups.com, ganes...@gmail.com
Hello,

We found an issue where if you have nested Gauge modules in a project, the gauge API is not started. We have marked this as a issue in IntelliJ plugin. This could be the same reason for the issue you are facing.
You can track this issue and we will update you once this is fixed.

Meanwhile, the workaround could be :
* Open only a module inside the project, instead of the top level project.

Eg. From the snapshot you have sent, instead of opening the `testing22`, you can open the module, say `SeleniumTesting` in IntelliJ.

--Apoorva

Mat Walker

unread,
Apr 18, 2018, 10:49:25 PM4/18/18
to getgauge
I'm trying to debug and investigate Gauge issues as well.  However, when I click on the intellij troubleshooting guide (https://gauge.org/documentation/user/current/troubleshooting/intellij.html) i get access denied:-

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>30C2DDC8687A12C0</RequestId>
<HostId>
Jfgz7Oce9vQ3I0Gl0Psk1t8I9vltwLuWwSfFKo5SfNN4W7v9XCBb+Pz57394Rs05+/XdMSJCtUQ=
</HostId>
</Error>

Nehashri Puttu Lokesh

unread,
Apr 19, 2018, 1:13:29 AM4/19/18
to getg...@googlegroups.com
Hi Mat Walker,
   It seems that the url that there refers to our old documentation. I will have that changed soon. You can find the troubleshooting guide here - https://docs.gauge.org/troubleshooting.html#intellij-idea-plugin.

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+u...@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
Regards,
Nehashri P L
Reply all
Reply to author
Forward
0 new messages