about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Wirth <me@lukaswirth.dev>2025-08-07 13:25:13 +0000
committerGitHub <noreply@github.com>2025-08-07 13:25:13 +0000
commitbc5df9b057a1ab9f8d9c387cde9a7dbab0e1462b (patch)
treefa04a2d24a4226e08c75196033b434adae03dc2a
parentde3a71c1456a627346743c29b460df03f283e4c7 (diff)
parent1a73720b8051a533b402ac67e35f84d405ccb28d (diff)
downloadrust-bc5df9b057a1ab9f8d9c387cde9a7dbab0e1462b.tar.gz
rust-bc5df9b057a1ab9f8d9c387cde9a7dbab0e1462b.zip
Merge pull request #20400 from rust-lang/veykril/push-ksxzmxqymsto
Disable error log for position clamping, its too noisy due to ease of triggering
-rw-r--r--src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs
index 02757616d4f..333826a1790 100644
--- a/src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs
+++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/from_proto.rs
@@ -40,12 +40,13 @@ pub(crate) fn offset(
     })?;
     let col = TextSize::from(line_col.col);
     let clamped_len = col.min(line_range.len());
-    if clamped_len < col {
-        tracing::error!(
-            "Position {line_col:?} column exceeds line length {}, clamping it",
-            u32::from(line_range.len()),
-        );
-    }
+    // FIXME: The cause for this is likely our request retrying. Commented out as this log is just too chatty and very easy to trigger.
+    // if clamped_len < col {
+    //     tracing::error!(
+    //         "Position {line_col:?} column exceeds line length {}, clamping it",
+    //         u32::from(line_range.len()),
+    //     );
+    // }
     Ok(line_range.start() + clamped_len)
 }