redhat-developer / redhat-developer/vscode-java

Can't edit/navigate standard Java class library files

Open
#1,127 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This extension doesn't seem to support editing the Java class library files themselves (e.g. java/lang/String.java). When I open such a file, I get a lot of errors starting from the package/import declarations ("The package java.lang conflicts with a package accessible from another module: java.base") up to all the other standard classes which are referenced in the sources ("DeflaterOutputStream cannot be resolved to a typeJava(16777218)").

Is there a simple way to configure this extension in such a way that it allows editing/navigating the standard Java class library files?

Environment
  • Operating System: Ubuntu 18.0.4
  • JDK version: 8/11
  • Visual Studio Code version: 1.39.2
  • Java extension version: Java Extension Pack 0.8.0, Language Support for Java(TM) by Red Hat 0.52.0
Steps To Reproduce
  1. open a directory with standard Java class library files (e.g. "jdk/src/share/classes" after cloning jdk from http://hg.openjdk.java.net/jdk8u/jdk8u/jdk

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 issue by opening sources under jdk/src/share/classes, such as java/lang/String.java, with JDK 8 and 11 in the stated VS Code and Java extension versions. Investigate how the extension handles standard-library sources and module/package diagnostics; done means those files can be edited and navigated without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.