From d033102d20dc5b1fb376cd352117a08c46251ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Fri, 24 Oct 2025 00:44:35 -0300 Subject: [PATCH] Small fix in DAP protocol implementation. --- src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp | 2 +- src/tools/ecode/plugins/debugger/debuggerplugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp b/src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp index ef9749919..d9ee8983f 100644 --- a/src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp +++ b/src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp @@ -222,7 +222,7 @@ void DebuggerClientDap::requestInitialize( const SessionId& sessionId, { DAP_ADAPTER_ID, "ecode-dap" }, { DAP_LINES_START_AT1, mProtocol.linesStartAt1 }, { DAP_COLUMNS_START_AT2, mProtocol.columnsStartAt1 }, - { DAP_PATH, ( mProtocol.pathFormatURI ? DAP_URI : DAP_PATH ) }, + { DAP_PATH_FORMAT, ( mProtocol.pathFormatURI ? DAP_URI : DAP_PATH ) }, { DAP_SUPPORTS_VARIABLE_TYPE, true }, { DAP_SUPPORTS_VARIABLE_PAGING, false }, { DAP_SUPPORTS_RUN_IN_TERMINAL_REQUEST, true }, diff --git a/src/tools/ecode/plugins/debugger/debuggerplugin.cpp b/src/tools/ecode/plugins/debugger/debuggerplugin.cpp index 5458b2538..57d6e369a 100644 --- a/src/tools/ecode/plugins/debugger/debuggerplugin.cpp +++ b/src/tools/ecode/plugins/debugger/debuggerplugin.cpp @@ -1303,7 +1303,7 @@ void DebuggerPlugin::replaceKeysInJson( j = std::move( argsArr ); continue; } else if ( runConfig && val == KEY_ENV && buildConfig ) { - j = nlohmann::json{}; + j = nlohmann::json::object(); for ( const auto& env : buildConfig->envs() ) j[env.first] = env.second; } else if ( val == KEY_STOPONENTRY ) {