From f20596c33ba9baab349321a2be4ada3f1241fd14 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Wed, 28 May 2025 21:44:00 -0400 Subject: [PATCH] debugger: Don't open non-absolute paths from stack frame list (#31534) Follow-up to #31524 with a more general fix Release Notes: - N/A --------- Co-authored-by: Piotr --- crates/debugger_ui/src/session/running/stack_frame_list.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/debugger_ui/src/session/running/stack_frame_list.rs b/crates/debugger_ui/src/session/running/stack_frame_list.rs index 2120cbca53..3e38dad501 100644 --- a/crates/debugger_ui/src/session/running/stack_frame_list.rs +++ b/crates/debugger_ui/src/session/running/stack_frame_list.rs @@ -250,9 +250,6 @@ impl StackFrameList { let Some(abs_path) = Self::abs_path_from_stack_frame(&stack_frame) else { return Task::ready(Err(anyhow!("Project path not found"))); }; - if abs_path.starts_with("") { - return Task::ready(Ok(())); - } let row = stack_frame.line.saturating_sub(1) as u32; cx.emit(StackFrameListEvent::SelectedStackFrameChanged( stack_frame_id, @@ -345,6 +342,7 @@ impl StackFrameList { s.path .as_deref() .map(|path| Arc::::from(Path::new(path))) + .filter(|path| path.is_absolute()) }) }