Repository navigation
fix: a DAP run configuration without a file starts its session without an empty file name in the console - #2165
Merged
lagergren merged 1 commit intoNov 23, 2026
Conversation
…t an empty file name in the console The title of the task that starts the DAP server, which the console prints too, left out the file only when it was null. The file of a run configuration whose file field is empty is an empty string, so the line read "Attaching '' with 'DAP server' at ...". A blank file is now treated as no file: "Attaching 'DAP server' at ...". Fixes redhat-developer#2154
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2165 +/- ##
=======================================
Coverage 53.82% 53.82%
=======================================
Files 828 828
Lines 35034 35035 +1
Branches 5493 5494 +1
=======================================
+ Hits 18856 18858 +2
- Misses 13378 13384 +6
+ Partials 2800 2793 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@coderabbitai review |
Action not completed
|
Collaborator
Author
|
@coderabbitai review |
Action performed
|
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.
Fixes #2154
What
A DAP run configuration whose file field is empty started its session with the console line
with empty quotes where the file goes. The same happened with
Launching ''.Change
DAPDebugProcess.getStartingServerTaskTitlebuilt the line, which is also the title of the task that starts the DAP server. It left out the file, and thewithbefore the server's name, only when the file wasnull. The file of a run configuration whose file field is empty is an empty string. A blank file is now treated as no file.To test the method, it's package-private now, as
getConsoleTextis.Behaviour change
Attaching '' with 'DAP server' at 127.0.0.1:39079Attaching 'DAP server' at 127.0.0.1:39079A configuration with a file, or with a
nullfile, gets the same line as before.Test
DAPDebugProcessStartingTitleTest: with a file (Unix and Windows paths), without one, and with an empty or a blank one.DAPDebugProcess*test classes: 17 tests, 0 failures, on IC 2024.2, IC 2025.3 and IU 2026.3.dappackage on 2024.2: 384 tests, 0 failures.