redhat-developer / redhat-developer/vscode-java

go define wrong file when use lombok

Open
#1,963 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Lombok
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

mac:11.4
vscode:1.56.2
plugin:Language support for Java ™ for Visual Studio Code v0.79.2
language server jdk:java 16.0.1
maven java runtime: jdk1.8.0

A.java source use lombok, and make jar. In my project i use a.getXX().
When i go define, vscode open A.class, but it look not a class file, it like A.java, and i cant see the real A.class file.
Open same project by IDEA, it can go to the real A.java, and i also can choose to go to the real A.class file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the go-to-definition behavior with the reported macOS, VS Code, Java extension, JDK, Maven runtime, and Lombok setup, using A.java, A.class, and a.getXX(). Compare the result with IntelliJ IDEA. Done means navigation reaches the real A.java and offers a way to open the real A.class instead of the generated-looking A.class view.

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
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.