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

IDE Errors Using Eclipse #90

Closed
NuttBoxer opened this issue Jun 15, 2017 · 12 comments
Closed

IDE Errors Using Eclipse #90

NuttBoxer opened this issue Jun 15, 2017 · 12 comments
Labels

Comments

@NuttBoxer
Copy link

Using Eclipse, and the specified Cucumber Eclipse Plugin, I'm seeing errors such as "... does not have matching glue code". If there's additional setup, or dependencies needed to run Karate in Eclipse, they seem to be missing from the setup instructions.

These errors do not prevent the tests from running successfully.

Cucumber Eclipse Feature 0.0.17.201704062133 cucumber.eclipse.feature.feature.group null
Version: Neon.3 Release (4.6.3)
Maven project was setup using the archtype quick start method
screen shot 2017-06-14 at 3 58 07 pm

@ptrthomas
Copy link
Member

ptrthomas commented Jun 15, 2017

try this.

Eclipse --> Preferences --> Cucumber --> User Settings

In the text-field for "Add Root Package Name .." enter com.intuit.karate

In some cases, even this does not work. Then go to the "Run Configuration" for the feature you were attempting to run and use com.intuit.karate instead of classpath: for the 'Glue'.

The first part above is in the Cucumber Eclipse Plugin doc. The second is a mystery. Let me know if this works.

@NuttBoxer
Copy link
Author

Thanks for the reply Peter! adding com.intuit.karate, then restarting Eclipse seems to have fixed my issue. I will add this to our project readme, a bit embarrassed I didn't find it myself.

@ptrthomas
Copy link
Member

great ! thanks for the update.

@aeendale
Copy link

aeendale commented Oct 16, 2017

Somewhat similar to "NuttBoxer", but I am seeing different error messages in Eclipse Mars 4.5.2 that does not prevent me from executing the .feature files, but they are extremely annoying. I tested this using both Maven and Gradle and this does not appear on Intellij, its a Eclipse specific issue. I tried the above solution but i do NOT see a "user setting" in the Cucumber option. Screenshot attached.
any ideas?

eclipse mars error messages

@NuttBoxer
Copy link
Author

Do you have the cucumber plugin installed?
https://github.com/cucumber/cucumber-eclipse

@ptrthomas
Copy link
Member

are you sure you are using the "official" cucumber eclipse plugin, there are a couple of other non-official plugins in the eclipse marketplace etc.

@aeendale
Copy link

when I searched for "cucumber" in the eclipse marketplace, the only result that returned was a plugin called, "Natural" 0.7.6. It said it supported Cucumber, Jebahve, etc. I am guessing that is not the "official" plugin. what would it be called on the Eclipse marketplace?

@NuttBoxer
Copy link
Author

I couldn't find it in the marketplace. The above link works.

@ptrthomas
Copy link
Member

yes. ignore the marketplace, install from the link.

@aeendale
Copy link

I am so used to installing from the marketplace. Thank you both, the error messages went away after installing the correct plugin.

@LingeshSD
Copy link

@ptrthomas I am facing still this error. "required (...)+ loop did not match anything at input 'Scenario:'" installed cucumber plugin.
Screenshot 2020-05-11 at 8 51 22 PM

@ptrthomas
Copy link
Member

@Lingeshs if you can't figure this out from all the above comments and the link below, take it up with the plugin developers please. we are focused on the VS Code IDE support: https://github.com/intuit/karate/wiki/IDE-Support

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

No branches or pull requests

4 participants