-
Notifications
You must be signed in to change notification settings - Fork 149
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
.feature doesn't work with import from io.cucumber but work with cucumber.api #368
Comments
@qvdk The annotations were moved to |
Hi @timtebeek The upgrade of cucumber libraries will not solve this issue. For now, as a workaround, you need to play with You will see in the first lines:
This constants are used in this class to search the imports of Hope that helps. |
Pushed some code to a branch just now in #369 ; Could you have a look if this matches what you envisioned? |
@timtebeek I have the latest plugin version from ZIP archive(v 1.0.0.201907020018), and the issue is still present in Eclipse Version: 2019-06 (4.12). |
@timtebeek is there a simple project I can download that uses the new annotation? I'll then take a look at this, shouldn't be a problem. |
@laeubi Thanks for offering to help! @qvdk mentioned he usually ust plays around with the cucumber-jvm examples in https://github.com/cucumber/cucumber-jvm/tree/master/examples . Note that the cucumber-jvm examples were changed to use cucumber expressions rather than regular expressions over a year ago, but it's unclear whether the plugin presently supports both: cucumber/cucumber-jvm@a4a3ad5#diff-bfebe34154a0dfd9fc7b447fc9ed74e9 |
I am aware that it is a problem. But I'm unfamiliar with the needs of an IDE to really account for it. Would you be able to create a few tickets that outline the things that need to be facilitated?
I don't expect Cucumber JVM will use Gherkin 6 until it does. |
@mpkorstanje thanks for offering support in that area, should I file issues against https://github.com/cucumber/cucumber-jvm/issues ? |
When in doubt I'd start with Cucumber-JVM. I also think we may need to use something that isn't tied quite so strictly to a specific Cucumber JVM implementation version (i.e. a JSON representation) so hopefully the Cucumber expressions shouldn't come into it so much. |
Added a comment to cucumber/cucumber-jvm#1711 (comment) which might be relevant here; it's a new approach at running a plugin in cucumber-jvm itself to let it tell you which lines in .features match which lines in .java files. Hope it helps getting 5.0 support off the ground, and could remove the need for a parallel feature discovery layer in cucumber-eclipse. |
Fix 368 by also matching `io.cucumber` annotations and interfaces
We are currently developing a new version of the cucumber-plugin with improved support for more recent cucumber versions, if you like try out the following update-site (please uninstall the old plugin before): |
Does this require a minimum version of eclipse? Getting the errors below using 2020-06 (4.16) even after uninstalling the old cucumber version
|
You should at least use 2021-03 as this release contains an important fix / API improvement. |
I think this issue has since been solved in newer releases. I'd suggest closing this one if you all agree . |
Not sure if my setup is wrong, but still cant get steps to match glue code. Also when I right click on the feature file I see no Cucumber options (Pretty format, Find Step, Scan etc) and the keyboard shortcut to create the step is not recognized. Edit: Nevermind, added my feature folder as a source and seems to work, but still not seeing the right click options? Thanks for plugin, this is super helpful! |
@ryanh007 could you please share me the link to get Cucumber plugin 2.0.0.202110241342. |
@nramu33 It used to be on https://cucumber.github.io/cucumber-eclipse/update-site/main/ but looks like that got pulled down. Not seeing any other way to get 2.X. Is the support for this plugin End of Life at this point? |
The update site is still there. You have to add it to Eclipse, not visit it with your web browser. |
Eclipse 4.10.0 2018-12
Cucumber Eclipse Plugin 0.0.23.201811220126
With io.cucumber
With deprecated cucumber.api
The text was updated successfully, but these errors were encountered: