cucumber / cucumber-eclipse

Eclipse plugin for Cucumber
MIT License
190 stars 147 forks source link

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 closed 2 years ago

maioni commented 2 years ago

πŸ‘“ 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

  1. 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: https://github.com/cucumber/cucumber-eclipse/issues/458

laeubi commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

laeubi commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

maioni commented 2 years ago

Found it! Thank you again! image

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

maioni commented 2 years ago

Closed!