From 591516215c56e16ab4560a58b500b962618c24f2 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Tue, 27 May 2025 11:32:48 -0400 Subject: [PATCH] debugger: Don't try to open `` paths (#31524) The JS DAP returns these, and they don't point to anything real on the filesystem. Release Notes: - N/A --- crates/debugger_ui/src/session/running/stack_frame_list.rs | 3 +++ 1 file changed, 3 insertions(+) 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 4c86be38756d6aa7ed34fa180f622341eb4df558..4d9ef12df1af139e9fdccec729804043166d26ea 100644 --- a/crates/debugger_ui/src/session/running/stack_frame_list.rs +++ b/crates/debugger_ui/src/session/running/stack_frame_list.rs @@ -250,6 +250,9 @@ 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,