Skip to content

Commit 3413a72

Browse files
committed
Fixed actual root cause of bug
1 parent 52da1c6 commit 3413a72

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

lua/cmake-tools/config.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ end
258258

259259
function Config:get_launch_target_from_info(target_info)
260260
local target_path = target_info["artifacts"][1]["path"]
261+
if require('cmake-tools.osys').iswin32 then
262+
target_path = target_path:gsub("/", "\\")
263+
end
261264
target_path = Path:new(target_path)
262265
if not target_path:is_absolute() then
263266
-- then it is a relative path, based on build directory

lua/cmake-tools/utils.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,6 @@ function utils.run(cmd, env_script, env, args, cwd, runner, callback)
188188
-- save all
189189
vim.cmd("silent exec " .. '"wall"')
190190

191-
if osys.iswin32 then
192-
cmd = cmd:gsub("/", "\\")
193-
end
194-
195191
local ntfy = notification:new("runner")
196192

197193
ntfy:notify(cmd, "info")

0 commit comments

Comments
 (0)