vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Error: Trying to add a disposable to a DisposableStore that has already been disposed of

Open ZhengJun003 opened this issue 5 years ago • 1 comments

Environment

  • Operating System: Win10
  • JDK version: 1.8.0_202
  • Visual Studio Code version: 1.42.1
  • Java extension version: 0.57.0
  • Java Debugger extension version: 0.25.0

Steps To Reproduce

  1. Git clone https://github.com/ZhengJun003/junit5-samples/tree/testrunner
  2. Open junit5-jupiter-starter-maven folder
  3. Open Toggle Developer Tools
  4. Add a main method in Calculator.java file and click Debug code lens

Current Result

Start a debug session that will prompt an error at Toggle Developer Tools. Capture

ZhengJun003 avatar Feb 24 '20 08:02 ZhengJun003

Hi @ZhengJun003, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

This error is coming from VS Code’s UI layer when you toggle the Developer Tools, not from the Java extensions themselves. Suggestions:

  • Update VS Code to the latest version. There have been various fixes around DisposableStore in recent releases.
  • Update the Java extensions (Language Support for Java and Java Debugger) to their latest versions.
  • Try reproducing without opening Developer Tools—clicking the "Run | Debug" code lens should launch the debugger without errors.
  • If the issue persists, please file it against the VS Code core repository: https://github.com/microsoft/vscode/issues/new?title=DisposableStore%20error%20in%20UI

Labels:

  • question

The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

github-actions[bot] avatar Nov 11 '25 11:11 github-actions[bot]