cucumber-eclipse icon indicating copy to clipboard operation
cucumber-eclipse copied to clipboard

Step navigation link disappears in the editor of the .feature file

Open duylam-katalon opened this issue 1 year ago • 6 comments

👓 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)

Screenshot 2024-09-25 at 16 05 45

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?

  1. 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
  2. Install the plugin at version 1.0.0.202110280427 from https://cucumber.github.io/cucumber-eclipse/update-site
Screenshot 2024-09-25 at 15 39 02
  1. Launch Eclipse, and import the project at $HOME/calculator-bdd-tests/ as "Existing Projects"

Screenshot 2024-09-25 at 15 43 10

  1. Open the file Include/features/operations/Divide.feature

Screenshot 2024-09-25 at 15 45 39

  1. 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 avatar Sep 25 '24 09:09 duylam-katalon

@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 avatar Sep 26 '24 16:09 laeubi

@laeubi I'm trying it out on my environment, will inform the result then. Thank you

duylam-katalon avatar Sep 30 '24 04:09 duylam-katalon

@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]

Screenshot 2024-09-30 at 14 55 46

Screenshot 2024-09-30 at 14 56 33

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.

Screenshot 2024-09-30 at 14 59 30

Do you have any recommendations to resolve it?

duylam-katalon avatar Sep 30 '24 08:09 duylam-katalon

I'll try to check this looks similar to

  • https://github.com/cucumber/cucumber-eclipse/issues/507

laeubi avatar Sep 30 '24 08:09 laeubi

@laeubi Just to check on the progress: do you have a chance to identify the installation failure ?

duylam-katalon avatar Oct 10 '24 02:10 duylam-katalon

A fixed snapshot should be deployed soon!

laeubi avatar Oct 12 '24 15:10 laeubi

@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.

laeubi avatar May 15 '25 10:05 laeubi