redhat-developer / redhat-developer/vscode-java

Update classpath based on java.project.referencedLibraries when modifications in pointed folders

Open
#1,874 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Environment
  • Operating System:
  • JDK version:
  • Visual Studio Code version:
  • Java extension version:
Steps To Reproduce
  • have a folder defined in java.project.referencedLibraries outside of workspace. For instance:
	"java.project.referencedLibraries": [
		"/home/apupier/.config/Code/User/globalStorage/redhat.vscode-camelk/java-dependencies-3.7.0/dependencies/*.jar"
	]
  • list of jars is modified inside /home/apupier/.config/Code/User/globalStorage/redhat.vscode-camelk/java-dependencies-3.7.0/dependencies/

[Please attach a sample project reproducing the error]
Please attach logs

Current Result

the classpath is not refreshed.

Expected Result

Either:

  • automatically detect it and refresh
  • provide a command to call a refresh
Additional Informations

any light workaround for it? (or already existing API?)

heavy workarounds:

  • remove the entry, then readd in the settings
  • call "Clean java language Server workspace"

needed for VS Code Camel K https://issues.redhat.com/browse/FUSETOOLS2-826

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 tracing how the java.project.referencedLibraries setting is processed and how the extension reacts to changes in referenced folders outside the workspace. Compare the existing “Clean java language Server workspace” workaround with the requested automatic refresh or command, then verify that adding or removing matching JARs refreshes the classpath.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.