Repository navigation
fix(dap): keep the command line of a command and an environment in DebugAdapterDescriptor, deprecated - #1963
Merged
lagergren merged 1 commit intoNov 11, 2026
Conversation
…bugAdapterDescriptor, deprecated redhat-developer#1684 replaced createStartServerCommandLine(command, userEnvironmentVariables, includeSystemEnvironmentVariables) with a version that takes the working directory first. A DebugAdapterDescriptor built against 0.21.0 that calls it no longer compiles, and fails with a NoSuchMethodError at runtime. It is back, deprecated, and creates the command line without a working directory, as in 0.21.0.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1963 +/- ##
==========================================
+ Coverage 48.16% 48.20% +0.03%
==========================================
Files 809 809
Lines 32486 32487 +1
Branches 5013 6620 +1607
==========================================
+ Hits 15647 15659 +12
+ Misses 14341 14335 -6
+ Partials 2498 2493 -5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1684 replaced
DebugAdapterDescriptor.createStartServerCommandLine(command, userEnvironmentVariables, includeSystemEnvironmentVariables)with a version that takes the working directory first.DebugAdapterDescriptoris the class that the DAP developer guide has a plugin extend, so a descriptor built against 0.21.0 that calls the old method no longer compiles against 0.30.0, and fails with aNoSuchMethodErrorat runtime.The method is back,
@Deprecatedas inLSPIJUtils, and creates the command line without a working directory, as in 0.21.0. The new version stays the one that LSP4IJ calls.DebugAdapterDescriptorTestchecks that the deprecated method replaces${port}, passes the environment variables and sets no working directory.mainno longer lists anything inDebugAdapterDescriptor.#1900 keeps
DAPDebugProcess.findBreakpointById(Integer)the same way.