Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Try to flesh out our panic stacks more

Conrad Irwin5c1de4ce26de
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index 5abb046165c..fc8c282b42e 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -543,7 +543,12 @@ fn init_panic_hook(app: &App, installation_id: Option<String>, session_id: Strin
let mut backtrace = backtrace
.frames()
.iter()
- .filter_map(|frame| Some(format!("{:#}", frame.symbols().first()?.name()?)))
+ .flat_map(|frame| {
+ frame
+ .symbols()
+ .iter()
+ .filter_map(|frame| Some(format!("{:#}", frame.name()?)))
+ })
.collect::<Vec<_>>();
// Strip out leading stack frames for rust panic-handling.