redhat-developer / redhat-developer/vscode-java

vscode Java no definition found no references found Java

未关闭
#3,650 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

[provide a description of the issue]

Environment
  • Operating System: macOS 14.4.1 (23E224)
  • JDK version: jdk1.8.0_361.jdk
  • Visual Studio Code version: 1.89.1 (Universal)
  • Java extension version:v1.31.2024051008 (pre-release)
Steps To Reproduce
  1. no definition found
image image
  1. no references found
image
  1. no declaration found
image image

Since I upgraded vscode
When I click on a method to query its definition, " no definition found "
When I click on a class declaration, " no declaration found" , no, no, no every Java no.
This problem has been bothering me for two days. Could you please help me solve it, great master?

if (StringUtils.isBlank(token)) {
			return ResponseCommon.fail(-1, "token为空");
		}
		UserInfoOutput output = (UserInfoOutput) session.getAttribute(CommonConstant.SESSION_USER_KEY);
		if (output == null && ObjectUtils.notEqual(output.getToken(), token)) {
			return ResponseCommon.fail(-1, "token错误");
		}
@Data
public class UserInfoOutput {
	private String userName;
	private String phone;
	private String avatar;
	private String token;
}

Please attach logs

Current Result
Expected Result
Additional Informations

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 VS Code Java extension 的故障排除指南开始,并使用报告中 macOS、JDK、VS Code 和扩展的版本重现缺失的定义、引用和声明结果。启用请求的日志并检查提供的 Java 示例。当 Java 导航操作返回预期的定义、引用和声明时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, vscode
领域
developer-experience, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
20/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。