java IntelliJ IDEA,jbehave 支持插件找不到要转到的声明

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29841833/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 16:00:24  来源:igfitidea点击:

IntelliJ IDEA, jbehave support plugin cannot find declaration to go to

javamavenintellij-ideajbehavejbehave-plugin

提问by Alex.K.

I've faced with the next problem:

我遇到了下一个问题:

after installing jbehave supportplugin I can't jump to step declaration in Java.

安装jbehave support插件后,我无法跳转到 Java 中的步骤声明。

I've already tried:

我已经尝试过:

  1. to uninstall and again install this plugin;
  2. to use jbehave plugin, but this functionality also didn't work;
  3. to create new project and import already existed project in it;
  4. to import all project modules again;
  5. to restart IntelliJ IDEA few times;
  6. to Invalidate Caches/restart(IntelliJ IDEA functionality);
  7. to reboot my PC.
  1. 卸载并再次安装此插件;
  2. 使用jbehave plugin,但此功能也不起作用;
  3. 创建新项目并导入其中已经存在的项目;
  4. 再次导入所有项目模块;
  5. 重启 IntelliJ IDEA 几次;
  6. 使缓存无效/重新启动(IntelliJ IDEA 功能);
  7. 重新启动我的电脑。

My OS: Windows 7 Professional 64-bit.

我的操作系统:Windows 7 Professional 64 位

IntelliJ IDEA Community Edition 14.1

IntelliJ IDEA 社区版 14.1

If you need any additional info, please mention which one.

如果您需要任何其他信息,请说明是哪一个。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

采纳答案by Alex.K.

  1. you should be sure, that those steps have declaration to go to, because it's possible to have steps without it.
  2. you successfully build your project(all modules were downloaded and build successfully).
  3. your project configured correctly and you added all module dependencies.
  1. 您应该确定,这些步骤有要执行的声明,因为没有它也可能有步骤。
  2. 您成功构建了项目(所有模块均已下载并成功构建)。
  3. 您的项目配置正确并添加了所有模块依赖项。

In my case it was 2nd option from the list. After that I can jump to step declaration.

就我而言,它是列表中的第二个选项。之后我可以跳转到步骤声明。

回答by Saran

What did it for me was:

对我来说是什么:

  1. following this guide for importing the Ant build: https://www.youtube.com/watch?v=0hDxv7jjlPc

  2. specifying srcfolder as "Sources":

    enter image description here

  1. 按照本指南导入 Ant 构建:https: //www.youtube.com/watch?v=0hDxv7jjlPc

  2. src文件夹指定为“来源”:

    在此处输入图片说明

回答by user6671991

"cannot find declaration to go to" in Intellij with grails

使用 grails 在 Intellij 中“找不到要转到的声明”

if you find mentioned issue, Just go to the file --> setting --> language Framework -->grails--> .sdkman --> ................... grails 3.1.0 like --> ok

如果您发现提到的问题,只需转到文件 --> 设置 --> 语言框架 --> grails--> .sdkman --> ................. . grails 3.1.0 喜欢 --> 好的

回答by Meng

This is to do with your "Project Settings", assuming you are using Mac, try the following:

这与您的“项目设置”有关,假设您使用的是 Mac,请尝试以下操作:

  • "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"
  • "cmd + ;" 或“文件”=>“项目结构”打开“项目设置”
  • 检查“项目设置”=>“项目”=>“项目SDK”
  • 检查“项目设置”=>“模块”=>“依赖项”=>“模块SDK”
  • 检查“平台设置”=>“SDK”

All the SDKs settings can be found in "/usr/local/Cellar/..." if you use brew on a Mac.

如果您在 Mac 上使用 brew,则所有 SDK 设置都可以在“/usr/local/Cellar/...”中找到。

Then rebuild the project, let IntelliJ does the indexing and restart IntelliJ couple times to make sure the changes have taken effect.

然后重建项目,让 IntelliJ 进行索引并重新启动 IntelliJ 几次以确保更改生效。