redhat-developer / redhat-developer/vscode-java

Support referenced libraries for Eclipse projects

Open
#2,931 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Type: Bug

So I have this project set up where I have .project and .classpath files in root folder.
Now I'm saving this as a workspace file and therein I have added a new referencedLibrary setting to include the jar file in lib folder.

Expected: Opening the workspace, the jar in lib folder should be used as dependency, ideally should be updated in .classpath file.

Actual: .classpath file is not updated. Neither does vscode honor the setting in workspace file.

Extension version: 1.14.0
VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:32:34.589Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Sandboxed: No
Connection to 'ssh-remote+100.108.204.190' could not be established

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 1805)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.73GB (17.29GB free)
Process Argv --folder-uri vscode-remote://ssh-remote%2B100.108.204.190/scratch/anaray/view_storage/anaray_apps-pt/fusionapps/atf/components/commonComp/atk/essMeta/AtkEssMetaDataPublicUi
Screen Reader no
VM 0%

Connection to 'ssh-remote+100.108.204.190' could not be established

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 workspace with root .project and .classpath files, a lib JAR, and the referencedLibrary workspace setting. Then trace how the extension reads workspace settings and Eclipse classpath metadata. Done means the JAR is used as a dependency and the .classpath file is updated consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
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.