Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing classpath file requires restart of VS Code #895

Open
testforstephen opened this issue Apr 22, 2019 · 1 comment
Open

Editing classpath file requires restart of VS Code #895

testforstephen opened this issue Apr 22, 2019 · 1 comment

Comments

@testforstephen
Copy link
Collaborator

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).

@rgrunber
Copy link
Member

@testforstephen can this be closed ? Doesn't Update Project" handle this now ? For a Maven project, this seems to be working with "java.configuration.updateBuildConfiguration": "automatic"(though I believe the default isinteractive`). For an invisible project adding a jar to the library folder(s) also works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants