redhat-developer / redhat-developer/vscode-java
vscode Java no definition found no references found Java
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
[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
- no definition found
- no references found
- no declaration found
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;
}
Current Result
Expected Result
Additional Informations
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the VS Code Java extension's troubleshooting guidance and reproduce the missing definition, reference, and declaration results using the reported macOS, JDK, VS Code, and extension versions. Enable the requested logs and inspect the provided Java examples. Done means Java navigation actions return the expected definitions, references, and declarations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100