Skip to content

Conversation

@llvmbot
Copy link
Member

@llvmbot llvmbot commented Dec 10, 2025

Backport 749537f

Requested by: @da-viper

pathFormat is an optional field in `initializeAruguments`.

(cherry picked from commit 749537f)
@llvmbot
Copy link
Member Author

llvmbot commented Dec 10, 2025

@ashgti What do you think about merging this PR to the release branch?

@llvmbot
Copy link
Member Author

llvmbot commented Dec 10, 2025

@llvm/pr-subscribers-lldb

Author: None (llvmbot)

Changes

Backport 749537f

Requested by: @da-viper


Full diff: https://github.com/llvm/llvm-project/pull/171587.diff

1 Files Affected:

  • (modified) lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp (+1-1)
diff --git a/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp b/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp
index 29855ca50e9e0..ea4ab1a29c49d 100644
--- a/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp
+++ b/lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp
@@ -219,7 +219,7 @@ bool fromJSON(const json::Value &Params, InitializeRequestArguments &IRA,
          OM.map("clientName", IRA.clientName) && OM.map("locale", IRA.locale) &&
          OM.map("linesStartAt1", IRA.linesStartAt1) &&
          OM.map("columnsStartAt1", IRA.columnsStartAt1) &&
-         OM.map("pathFormat", IRA.pathFormat) &&
+         OM.mapOptional("pathFormat", IRA.pathFormat) &&
          OM.map("$__lldb_sourceInitFile", IRA.lldbExtSourceInitFile);
 }
 

@da-viper
Copy link
Contributor

Ubuntu 26.04 LTS may ship with 21.x easier to add this fix instead of a client not adding the optional arg.

@ashgti
Copy link
Contributor

ashgti commented Dec 10, 2025

Should we also backport fff45dd on top of this?

@dyung
Copy link
Collaborator

dyung commented Dec 11, 2025

Thanks for the patch, but as this will be the final 21.x release, we only want to include fixes for regressions, or for small fixes that have broad impacts, neither of which this change seems to meet I'm afraid, so I'm going to defer this fix to the 22.x release.

@dyung dyung moved this from Needs Triage to Won't Merge in LLVM Release Status Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Won't Merge

Development

Successfully merging this pull request may close these issues.

4 participants