Closed uron86 closed 3 years ago
I can confirm that. since the upgrade to 2020.3 the step recognition does not work at all. Steps are in the code and runnable when starting cucumber, this is the ESSENTIAL feature of this plugin!
Testing using https://github.com/cucumber/cucumber-jvm/tree/main/kotlin-java8 I found everything working. Can you provide me with a sample project just like https://github.com/cucumber/cucumber-jvm/tree/main/kotlin-java8 with code that is not working? There might be something in the way the files are setup at your end that is different.
The project where the plugin stopped working is confidential, but I found a really strange behaviour in a small sample project, where I delete a single line in the step class and the the linking will stop working.
I made a screencast video of that. vokoscreenNG-2020-12-14_11-48-30.zip
The screencast is showing steps in Java, so that is a problem of the Cucumber for Java plugin. This is the Cucumber for Kotlin plugin. It only works with steps written in Kotlin.
Sorry my fault. I preparing a project in kotlin. When I got it right the problem is when not having English (En) Gherkin files.
Here we go https://github.com/boris779/german_cucumber_kotlin_plugin
I also added a branch with the English usage of gherkin and there it works.
Is there a possibility to install this "unreleased" Version (at my own risk)?
I tried to download the zip and tried install from disk but .....
They are usually quite quick in their reviews. Using this URL you should be able to download the 2020.3.1 version: https://plugins.jetbrains.com/plugin/download?rel=true&updateId=105453 If that doesn't work you always have the option to download an older version of the plugin from the plugins.jetbrains.com website and install that.
@jlagerweij Thank you so much, it works now (with German Gherkin)
In IDEA 2020.1.3 with kotlin for cucumber plugin 1.1.4 enabled, the recognition of step definition between a feature file and step definitions doesn't always give the same result.
Here is my scenario :
When I write these two steps on a same kotlin class, ther is no problem :
The given is recognized and the others are not recognized => OK
But when I write the two conditions in two different kotlin classes, the Given Step is sometimes recongized (more often) and sometimes not recognized. I notice that with step highlightinh or code inspection.
This is a real problem because we have a lot of steps in our projects and we are unable to know which steps are missing or not.