Skip to content
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

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

Open
duylam-katalon opened this issue Sep 25, 2024 · 6 comments
Open

Comments

@duylam-katalon
Copy link

duylam-katalon commented Sep 25, 2024

👓 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

@laeubi
Copy link
Contributor

laeubi commented Sep 26, 2024

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

@duylam-katalon
Copy link
Author

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

@duylam-katalon
Copy link
Author

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

@laeubi
Copy link
Contributor

laeubi commented Sep 30, 2024

I'll try to check this looks similar to

@duylam-katalon
Copy link
Author

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

@laeubi
Copy link
Contributor

laeubi commented Oct 12, 2024

A fixed snapshot should be deployed soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants