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.

5 comments
Comment actions Permalink

Looks like cucumber libraries are not attached to the project. Do you use maven or smth like it?

0
Comment actions Permalink

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.

0
Comment actions Permalink

Could you provide sample project? It would help to reproduce and fix the problem.

0
Comment actions Permalink

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
0

Please sign in to leave a comment.