redhat-developer / redhat-developer/vscode-java

"Classpath is incomplete" warning with react-native (gradle) generated project

Open
#626 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The warning message "Classpath is incomplete" pops up in any react-native generated project when you open a JAVA file even if the requested build.gradle is present

image

Environment
  • Operating "Classpath incomplete"System: Linux
  • JDK version: javac 1.8.0_181
  • Visual Studio Code version: 1.26.1
  • Java extension version: 0.30.0
Steps To Reproduce
  1. npm install -g create-react-native-app
  2. create-react-native-app AwesomeProject
  3. Run code
  4. Open file MainActivity.java

test-project.tar.gz

attach logs

vscode.log

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

Start by reproducing the warning when opening MainActivity.java in the supplied React Native project, then inspect the attached vscode.log and the project's build.gradle. Done means the extension no longer reports an incomplete classpath when the requested build.gradle is present.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, react-native, typescript
Domain
developer-experience, tooling
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.