From c80e00c604b5fba8e06281446c71ffb4bf44cf79 Mon Sep 17 00:00:00 2001 From: Jonatan Waern Date: Tue, 15 Jul 2025 15:01:39 +0200 Subject: [PATCH] Fix missattribution of paths for device errors in non-device files Signed-off-by: Jonatan Waern --- CHANGELOG.md | 1 + src/actions/analysis_storage.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32cc8a6..75521a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ## 0.9.12 - Diagnostics sent from the server will now indicate their source as 'dml' or 'dml-lint' - Added 'simics\_util\_vect' as a known provisional (with no DLS semantics) +- Fixed an issue where diagnostics would sometime be reported within the wrong file ## 0.9.11 - Fixed deadlock when a configuration update happens diff --git a/src/actions/analysis_storage.rs b/src/actions/analysis_storage.rs index c320094..a5ffa3e 100644 --- a/src/actions/analysis_storage.rs +++ b/src/actions/analysis_storage.rs @@ -725,7 +725,7 @@ impl AnalysisStorage { // Only report device errors if this analysis context is active if filter.map_or(true, |f|f.contains(&file.clone().into())) { for (dfile, errors) in self.gather_device_errors(file) { - device_errors.entry(file.clone().into()) + device_errors.entry(dfile.clone()) .or_default() .extend(errors.into_iter()); if !self.has_client_file(&PathBuf::from("dml-builtins.dml")) {