redhat-developer / redhat-developer/vscode-java

Code Navigation doesn't work with gradle project

Open
#1,259 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Gradle navigation
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.