Can't go to declaration from .feature to .java step definition
IntelliJ correctly links feature rules to .java step definitions, proven by right-clicking a rule and running/debugging it. However, strangely, IntelliJ doesn't allow me to Command+B go to the rule declaration.
Please sign in to leave a comment.
Looks like cucumber libraries are not attached to the project. Do you use maven or smth like it?
That is a recurring problem with IntelliJ. All dependencies specified in top-level regular build.gradle file in a Gradle project, but IntelliJ forgets about the dependencies whenever I relaunch the editor, or switch git branches.
Could you provide sample project? It would help to reproduce and fix the problem.
Sure thing!
https://github.com/mcandre/hello-kafka
I checked. Navigation works. Looks like something wrong with gradle configuration.
Could you see cucumber as attached libraries in your project? See my screenshot. Here are Gradle: info.cukes:cucumber-core, Gradle: info.cukes:cucumber-java and Gradle: info.cukes:cucumber-jvm-deps libraries.
Attachment(s):
Screen Shot 2015-11-02 at 13.22.35.png