cucumber-eclipse
cucumber-eclipse copied to clipboard
Step navigation link disappears in the editor of the .feature file
👓 What did you see?
When upgrading to version 1.0.0.202110280427, the editor of the .feature file (below screenshot) from my Eclipse project (see the STPs) doesn't show the navigation link for the step when hovering the cursor (with Cmd key pressing, in macOS)
The link was available in version 0.0.23.202109140741 (the one I was before upgrading)
✅ What did you expect to see?
The plugin in version 1.0.0.202110280427, when opening my existing project, can show the navigation link on the cursor hovering over the step
📦 Which tool/library version are you using?
Eclipse 2023-03 (4.27.0) - RCP and RAP Developers edition OpenJDK Runtime Environment Corretto-17.0.11.9.1
🔬 How could we reproduce it?
- Checkout the Eclipse BDD project from https://github.com/katalon-studio-samples/calculator-bdd-tests, let's say that it's saved at
$HOME/calculator-bdd-tests/dir - Install the plugin at version
1.0.0.202110280427from https://cucumber.github.io/cucumber-eclipse/update-site
- Launch Eclipse, and import the project at
$HOME/calculator-bdd-tests/as "Existing Projects"
- Open the file
Include/features/operations/Divide.feature
- Hold the Cmd key (on macOS), and move the cursor over the step
The Calculator page ...
Expected Result The text line is visible as a link, clicking on the link opens a new editor which is the file scripts/groovy/common/Common.groovy and focuses on the equivalent method definition
Actual Result The text line remains as plain text, can't navigate to the code file anymore
📚 Any additional context?
No response
@duylam-katalon can you probably try out version 2.0 (current snapshot):
https://cucumber.github.io/cucumber-eclipse/update-site/main/
Version 1.0 is quite outdated sadly, you also mentions groovy does it also happen with a plain java file? I was not aware that groovy projects where supported at all ...
@laeubi I'm trying it out on my environment, will inform the result then. Thank you
@laeubi
I installed the v2 per your URL and the Eclipse IDE says about the error below (with screenshots)
Cannot complete the install because one or more required items could not be found.
Software being installed: Cucumber Eclipse 2.0.0.202407160654 ([cucumber.eclipse.feature.feature.group](http://cucumber.eclipse.feature.feature.group/) 2.0.0.202407160654)
Missing requirement: io.cucumber:cucumber-core:6.9.1 6.9.1 (io.cucumber.cucumber-core 6.9.1) requires 'java.package; io.cucumber.cucumberexpressions [10.3.0,11.0.0)' but it could not be found
Cannot satisfy dependency:
From: Cucumber Eclipse 2.0.0.202407160654 ([cucumber.eclipse.feature.feature.group](http://cucumber.eclipse.feature.feature.group/) 2.0.0.202407160654)
To: org.eclipse.equinox.p2.iu; io.cucumber.cucumber-core [6.9.1,6.9.1]
It looks like the error is because the Maven artifact io.cucumber:cucumber-expressions isn't in the dependency list of the plugin (I'm a new in the Eclipse plugin development). I tried an ad-hoc workaround by adding the cucumber-expression jar file into the Eclipse (below screenshots) but the installation still has the same error.
Do you have any recommendations to resolve it?
I'll try to check this looks similar to
- https://github.com/cucumber/cucumber-eclipse/issues/507
@laeubi Just to check on the progress: do you have a chance to identify the installation failure ?
A fixed snapshot should be deployed soon!
@duylam-katalon please retry with new v3.
If the problem persists please provide a runnable example here as a PR so it can be further investigated:
https://github.com/cucumber/cucumber-eclipse/tree/main/examples
until then I'm closing this issue, feel free to reopen it with updated details.