redhat-developer / redhat-developer/vscode-java

call hierarchy does not find callers (but it should)

Open
#2,219 4 comments 0 reactions 1 assignee View on GitHub

@snjeza is already working on this.

Since Jan 15, 2023.

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

Description

Environment
  • Operating System: macos 12.0.1
  • JDK version: 11
  • Visual Studio Code version: 1.62.2
  • Java extension version: java extension pack v0.18.6
Steps To Reproduce

I have created a public repo so that the issue is easily reproducible:

step1: clone this repo:

git clone https://github.com/clembo590/issues.git --branch vscode-java/issues/2219

step2: run mvn clean install

step 3: "import the project in vscode"
open MyCustomizer.java and select the method called customize
make a right click and select Show call hierarchy
Vscode should (and do) find a method (see screenshot)

Screenshot 2021-11-17 at 14 23 36

step 4: open pom.xml and uncomment the dependency:
Screenshot 2021-11-17 at 14 34 06

step 5:
open MyCustomizer.java and select the method called customize
make a right click and select Show call hierarchy
--> VSCODE does not find any calls to this method: that is an error! vscode should find the same call hierarchy as on step 3 (IntelliJ shows correctly the call hierarchy)

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.