redhat-developer / redhat-developer/vscode-java
Code Navigation doesn't work with gradle project
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
When using a gradle project the code navigation does not work at all.
Not with cmd + click and not with F12.
It says 'no Definition found for 'name of class'
This works with a maven project and j11 but not gradle and j8.
I have a multi module gradle project and it has a big build.gradle file.
Environment
- Operating System: Mac 10.14.6
- JDK version: openjdk version "1.8.0_242"
- Visual Studio Code version: 1.41.1
- Java extension version: 0.55.1
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
Reproduce the failure with the reported multi-module Gradle project and large build.gradle file, using the stated macOS, JDK 8, VS Code, and Java extension versions. Compare cmd+click and F12 navigation with the working Maven/JDK 11 case. Done means both navigation actions resolve the selected class definition in the Gradle project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- build-system, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100