redhat-developer / redhat-developer/vscode-java

Editing classpath file requires restart of VS Code

Open
#895 1 comment 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

Originally created by @VanessaLange at Microsoft/vscode-java-debug#576

When adding a jar to the classpath file the program won't build any longer and you get the error message: "Build failed, do you want to continue?" You have to restart VS Code before it works again.

Environment
  • Operating System: macOS Mojave Version 10.14.4 (also Windows 10)
  • JDK version: openjdk version "1.8.0_212"
  • Visual Studio Code version: 1.33.1
  • Java extension version: 0.43.0
  • Java Debugger extension version: 0.17.0
Steps To Reproduce
  1. Create a new Java Project
  2. Add a jar to the classpath
  3. Try to run the program
Current Result

The build fails and you cannot run the program.

Expected Result

Either building works out of the box when editing the classpath or at least we get a message that restarting VS Code is required.

Additional Informations

The language server is loaded correctly (thumbs up icon).

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 in a new Java Project by adding a jar to the classpath and running the program in VS Code. Trace how the Java extension handles classpath edits and build state; done means the project builds and runs without restarting VS Code, or clearly reports when a restart is required.

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.