-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Intellij not recognizing these groovy steps #20
Comments
Thanks for the reply. I have both these plugins and I uninstalled 'substeps' plugin as well. Still I face this issue. |
Hello! My company hasn't yet migrated to cucumber-jvm-groovy 5.X just yet, but we are on 4.X. This shows up every now and then for us, and here is what we do to fix this:
Those are the things that worked for us, hope these help. |
@ice1080 : Thanks again. I already tried these steps as we used to work with cucumber 1.25. This is definitely looking like bug in Intellij. I have posted it on other sites as well. Here is the link: https://stackoverflow.com/questions/62956227/intellij-not-able-to-identify-cucumber-5-groovy-steps |
Step 7 was the one that worked 90% of the time and definitely the most important of all of the above steps. Unmarking them all and then remarking didn't work? |
@ice1080 : Hey after changing cucumber-groovy to 4.7.1 & cucumber-core & cucumber-junit to 4.8.1, I am still facing this issue. |
We are using cucumber-groovy, cucumber-junit, and cucumber-spring, all versions 4.5.4, and cucumber-reporting 4.7.0. We had some different, unrelated issues on 4.7+ so went back to 4.2.0 and then were able to get up to 4.5.4 |
@ice1080 : Hey ! I identified my issue. Thing is I messed up with syntax of Groovy and Java and overlooked the syntax of Groovy steps. After correcting it as mentioned in this project, it worked. I upgraded to cucumber-groovy to 4.7.4 & cucumber-core, cucumber-junit to 4.8.1. It is working as expected. Also tried upgrading to 5.1.3 but it was not working. One breaking issue I observed after moving from 1.2.5 to 4.8.1 is @field vars used in my Scripts. I am also trying the version you mentioned above. Thanks much buddy 🥇 |
Probably would go a long way for this project to create a "cucumber-groovy" plugin for IntelliJ-IDEA that would setup the project structure and source folders auto-magically. |
Anyone working on this issue? I want to use version 6.1.2 and it still don't work I noticed that when we use the proposed: IntelliJ don't recognise step, but when we use old solution: IntelliJ recognise steps. Or it recognises because we actually nothing pass to mixin method. I think the problem lies somewhere in EN class |
Hi @cheparsky , Have you got a reproducible snippet/project, it'll help us debug the issue you are seeing. Also please let us know Intellij version together with plugins installed. |
@janainaiacia and @assilzm, when we define our groovy steps we do so like this:
The ~ before tells groovy that it's a regex string. The starting ^ and ending $ tell it that there should be no other text in the step. Then the |
Hi @icdt-ihudson , last version 6.10.4 is working fine for me. But I have problem with step definitions; when i use |
Hi @cheparsky. I'm still on version 5.1.3, but unfortunately I've never used the @ParameterType definition so can't help with that. Is there a reason you need that type of step definition instead of using the above format? Not saying it shouldn't work, just wanting to understand it. |
@icdt-ihudson yes, I need this another format, only this format works with @ParameterType. @glibas @mpkorstanje do you know smth about this error, can you fix it? Or this problem more related to Intellij itself? |
@cheparsky in #20 (comment) you were asked to provided a minimal reproducer and additional information. You've not provided that information so it would be hard for anyone to help you. Anyway, I wouldn't be able to tell you much more, and if I think @glibas is currently fighting in a war. You may have to investigate this in more detail yourself. |
Hi,
Are you observing any issue related to Intellij showing steps as Undefined.?
I upgraded my cucumber-groovy , cucumber-core & cucumber-junit to 5.1.3 and observing this problem. Earlier I was using cucumber 1.25 and everything was working fine.
Any pointers will be great help.
Thanks!
The text was updated successfully, but these errors were encountered: