IntelliJ IDEA, jbehave support plugin cannot find declaration to go to
Solution 1
- you should be sure, that those steps have declaration to go to, because it's possible to have steps without it.
- you successfully build your project(all modules were downloaded and build successfully).
- your project configured correctly and you added all module dependencies.
In my case it was 2nd option from the list. After that I can jump to step declaration.
Solution 2
"cannot find declaration to go to" in Intellij with grails
if you find mentioned issue, Just go to the file --> setting --> language Framework -->grails--> .sdkman --> ................... grails 3.1.0 like --> ok
Solution 3
What did it for me was:
following this guide for importing the Ant build: https://www.youtube.com/watch?v=0hDxv7jjlPc
-
specifying
src
folder as "Sources":
Solution 4
This is to do with your "Project Settings", assuming you are using Mac, try the following:
- "cmd + ;" or "File" => "Project Structure" to open "Project Settings"
- Check "Project Settings" => "Project" => "Project SDK"
- Check "Project Settings" => "Modules" => "Dependencies" => "Module SDK"
- Check "Platform Settings" => "SDKs"
All the SDKs settings can be found in "/usr/local/Cellar/..." if you use brew on a Mac.
Then rebuild the project, let IntelliJ does the indexing and restart IntelliJ couple times to make sure the changes have taken effect.
Related videos on Youtube
Comments
-
Alex.K. over 1 year
I've faced with the next problem:
after installing
jbehave support
plugin I can't jump to step declaration in Java.I've already tried:
- to uninstall and again install this plugin;
- to use
jbehave plugin
, but this functionality also didn't work; - to create new project and import already existed project in it;
- to import all project modules again;
- to restart IntelliJ IDEA few times;
- to Invalidate Caches/restart(IntelliJ IDEA functionality);
- to reboot my PC.
My OS: Windows 7 Professional 64-bit.
IntelliJ IDEA Community Edition 14.1
If you need any additional info, please mention which one.
-
timmy_stapler about 8 yearshere is what fixed it for me today: stackoverflow.com/a/35455980/4166508