redhat-developer / redhat-developer/vscode-java

no definition found in maven project

Open
#2,028 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ls-error/crash navigation
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: manjaor Linux, macOS
  • JDK version: Oracle JDK 8u202 and 11.0.11
  • Visual Studio Code version: 1.58.1 (Universal)
    Commit: 2aeda6b18e13c4f4f9edf6667158a6b8d408874b
  • Java extension version: v0.80.0
Steps To Reproduce

giving a multi maven project:

├── projectA
│   ├── pom.xml
│   ├── A.java
├── projectB
│   ├── pom.xml
│   ├── B.java
├── pom.xml

in A.java, I cannot navigate into B.java, which is MPPQueueInfo.java below
image
image

However, the project can build and run successfully. In another single maven project, nothing like this occurs.

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 reported case with the multi-module Maven layout: projectA, projectB, their pom.xml files, and the root pom.xml. Start by testing definition navigation from A.java to B.java (MPPQueueInfo.java), comparing it with the single-project case. Done means navigation works while the project continues to build and run; no implementation file or test is named.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.