zed/crates/zed
Max Brunsfeld 8592208d3a
Fix failure to upload panics when multiple panics happen at the same time (#2616)
When multiple panics occur at the same time (usually because one thread
panics, and another thread joins it), multiple panic JSON objects can
get written to the same panic file. The resulting file won't be valid
JSON.

This PR addresses that problem via two changes:
* Format panic files as single-line JSON objects
* When a panic file  isn't valid JSON, try taking the first line

In the future, we could try combining all of the backtraces, but for
now, I just want to avoid a problem of not reporting a panic at all.

Release Notes:

- Fixed a problem with Zed's internal crash reporting.
2023-06-15 15:31:49 -07:00
..
resources Add entitlements file to bundle step 2023-06-14 17:34:48 -07:00
src Fix failure to upload panics when multiple panics happen at the same time (#2616) 2023-06-15 15:31:49 -07:00
build.rs Eliminate assets crate 2023-06-06 11:46:46 -07:00
Cargo.toml v0.92.x dev 2023-06-14 13:27:36 -04:00
RELEASE_CHANNEL Store current release channel name in a file in the zed crate 2022-10-26 16:19:19 -07:00