From 175890b04647b95a6c08d833d8f45d932332a72b Mon Sep 17 00:00:00 2001 From: Tomasz Pasternak Date: Sun, 13 Oct 2024 03:04:04 +0200 Subject: [PATCH] fix: pass absolute paths to the Starlark Debugger --- .../idea/blaze/skylark/debugger/impl/SkylarkDebugProcess.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skylark/src/com/google/idea/blaze/skylark/debugger/impl/SkylarkDebugProcess.java b/skylark/src/com/google/idea/blaze/skylark/debugger/impl/SkylarkDebugProcess.java index 86fe42eb81d..eef8ae827a2 100644 --- a/skylark/src/com/google/idea/blaze/skylark/debugger/impl/SkylarkDebugProcess.java +++ b/skylark/src/com/google/idea/blaze/skylark/debugger/impl/SkylarkDebugProcess.java @@ -32,6 +32,7 @@ import com.google.devtools.build.lib.starlarkdebugging.StarlarkDebuggingProtos.SetBreakpointsRequest; import com.google.devtools.build.lib.starlarkdebugging.StarlarkDebuggingProtos.StartDebuggingRequest; import com.google.devtools.build.lib.starlarkdebugging.StarlarkDebuggingProtos.Stepping; +import com.google.idea.blaze.base.model.primitives.WorkspaceRoot; import com.intellij.execution.ExecutionResult; import com.intellij.execution.process.ProcessAdapter; import com.intellij.execution.process.ProcessEvent; @@ -269,7 +270,7 @@ private Location convertLocation(XLineBreakpoint breakpoi // TODO(brendandouglas): handle local changes? return Location.newBuilder() .setLineNumber(breakpoint.getLine() + 1) - .setPath(breakpoint.getPresentableFilePath()) + .setPath(WorkspaceRoot.fromProject(project).absolutePathFor(breakpoint.getPresentableFilePath()).toString()) .build(); }