From 9598553e5d4952ccc98fe9dbde53cfa526c541d9 Mon Sep 17 00:00:00 2001 From: Micah Date: Thu, 31 Jul 2025 09:19:57 -0700 Subject: [PATCH] Normalize paths in sourcemap generation (#1085) --- CHANGELOG.md | 2 ++ src/cli/sourcemap.rs | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de1c097a..ab5843f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,13 @@ # Rojo Changelog ## Unreleased +* Fixed `sourcemap` command outputting paths with OS-specific path separators ([#1085]) * Fixed nil -> nil properties showing up as failing to sync in plugin's patch visualizer ([#1081]) * Changed the background of the server's in-browser UI to be gray instead of white ([#1080]) * Fixed `Auto Connect Playtest Server` no longer functioning due to Roblox change ([#1066]) * Added an update indicator to the version header when a new version of the plugin is available. ([#1069]) +[#1085]: https://github.com/rojo-rbx/rojo/pull/1085 [#1081]: https://github.com/rojo-rbx/rojo/pull/1081 [#1080]: https://github.com/rojo-rbx/rojo/pull/1080 [#1049]: https://github.com/rojo-rbx/rojo/pull/1066 diff --git a/src/cli/sourcemap.rs b/src/cli/sourcemap.rs index 4c759f90..268a9724 100644 --- a/src/cli/sourcemap.rs +++ b/src/cli/sourcemap.rs @@ -28,7 +28,10 @@ struct SourcemapNode<'a> { name: &'a str, class_name: Ustr, - #[serde(skip_serializing_if = "Vec::is_empty")] + #[serde( + skip_serializing_if = "Vec::is_empty", + serialize_with = "crate::path_serializer::serialize_vec_absolute" + )] file_paths: Vec, #[serde(skip_serializing_if = "Vec::is_empty")]