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

After install Cucumber Plugin 2.0, the Eclipse does not associate the .feature files, does not enable the option Convert to Cucumber Project. This way the plugin can't be used. #459

Closed
maioni opened this issue Jun 15, 2022 · 8 comments

Comments

@maioni
Copy link

maioni commented Jun 15, 2022

πŸ‘“ What did you see?

After install plugin 2.0, the .feature files are not associated, and the Convert to Cucumber Project is not available. This way the .feature can't glue to step definitions.

βœ… What did you expect to see?

After install plugin 2.0, the .feature files are associated, and the Convert to Cucumber Project is available. So the .feature will glue to step definitions correctly.

πŸ“¦ Which tool/library version are you using?

Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components):
Version: 2022-06 (4.24.0)
Build id: 20220609-1112
image

πŸ”¬ How could we reproduce it?

Steps to reproduce the behavior:

  1. Java and Maven already installed and setup
  2. Download Eclipse: https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2022-03/R/eclipse-jee-2022-03-R-win32-x86_64.zip
  3. Decompress it and open Eclipse.exe
  4. Update Eclipse to last version (Version: 2022-06 (4.24.0) | Build id: 20220609-1112)
  5. Install and update the plugin Eclipse Web Developer Tools 3.25
  6. Verify the plugin already installed: Eclipse m2e - Maven support in Eclipse IDE Latest
  7. Select to Install a new Software at Eclipse Help -> Install New Software
    image
  8. Inform the name: Cucumber Eclipse Plugin 2.0
  9. Inform the Location: https://cucumber.github.io/cucumber-eclipse/update-site/main/
    image
  10. Select Cucumber Eclipse Plugin: Cucumber Eclipse and third party dependencies
    image
  11. Trust: Select all and Trust Selected
    image
  12. After Eclipse install and restart, import the example project as a Maven Project: https://github.com/cucumber/cucumber-eclipse/tree/main/examples/java-calculator

Actual Results

12. Right click on project's and select Configure -> Convert to Cucumber Project, but the option is not available
image
13. At Eclipse, goes to Windows -> Preferences -> General -> Editors -> Files Associations; and look for the .feature association; but there's no editor associated to it
image
14. At Eclipse, goes to Project and select Clean.
image
15. Open a .feature file and verify if it is associated to the step definitions, but there are no glue associated
image

Expected Results

  1. Convert to Cucumber Project available
    image

  2. .feature files are correctly associated
    image

  3. Feature are corrected linked/glued to the steps definitions:
    image

πŸ“š Any additional context?

Info: #458

@laeubi
Copy link
Contributor

laeubi commented Jun 15, 2022

Convert to Cucumber Project is not available

As already mentioned, converting to cucumber project is no longer a required and not offered.

Open a .feature file and verify if it is associated to the step definitions, but there are no glue associated

There is no longer an icon for glued steps, so from your screenshot everything looks fine and as expsected...

@maioni
Copy link
Author

maioni commented Jun 15, 2022

Convert to Cucumber Project is not available

As already mentioned, converting to cucumber project is no longer a required and not offered.

Thank you!

Open a .feature file and verify if it is associated to the step definitions, but there are no glue associated

There is no longer an icon for glued steps, so from your screenshot everything looks fine and as expsected...

Thank you! I can see that CTRL+CLICK is working too!
image

@maioni
Copy link
Author

maioni commented Jun 15, 2022

How about the file association? Why it's not displayed into Windows > Preferences > Editors > File Association?
image

@laeubi
Copy link
Contributor

laeubi commented Jun 15, 2022

How about the file association? Why it's not displayed into Windows > Preferences > Editors > File Association?

Cucumber-eclipse uses the "generic editor" maybe it is listed under "content types".

@maioni
Copy link
Author

maioni commented Jun 15, 2022

Cucumber plugin 1.0 (old Eclipse configured - 4.23.0):
image

Cucumber plugin 2.0 (new Eclipse configured - 4.24.0)
image
Could find association

Anyway, it's opening and is identified as cucumber file:
Top icon
image

@laeubi
Copy link
Contributor

laeubi commented Jun 15, 2022

cucumber is most probably a child of the "text" content type...

@maioni
Copy link
Author

maioni commented Jun 15, 2022

Found it! Thank you again!
image

I hope this issue could help others to make sure it's installed and working!

@maioni maioni closed this as completed Jun 15, 2022
@maioni
Copy link
Author

maioni commented Jun 16, 2022

Closed!

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