Closed
Description
opened on Feb 22, 2024
In the https://github.com/typst/typst repo, on a specific field, calling get all references returns over 100 duplicate results.
Reproduction
- git clone the typst repo (commit 56ecd6c is where this appeared for me)
- call get all refrences on the field
justify
on line 37 ofcrates/typst/src/text/linebreak.rs
Helix Log
2024-02-22T19:18:45.957 helix_lsp::transport [INFO] rust-analyzer -> {"jsonrpc":"2.0","method":"textDocument/references","params":{"context":{"includeDeclaration":true},"position":{"character":11,"line":36},"textDocument":{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"}},"id":1}
2024-02-22T19:18:53.608 helix_lsp::transport [INFO] rust-analyzer <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","diagnostics":[],"version":0}}
2024-02-22T19:18:53.693 helix_lsp::transport [INFO] rust-analyzer <- {"jsonrpc":"2.0","id":1,"result":[{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/layout/inline/mod.rs","range":{"start":{"line":461,"character":28},"end":{"line":461,"character":35}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}},{"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs","range":{"start":{"line":36,"character":8},"end":{"line":36,"character":15}}}]}
2024-02-22T19:18:53.693 helix_lsp::transport [INFO] rust-analyzer <- [{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":35,"line":461},"start":{"character":28,"line":461}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/layout/inline/mod.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"},{"range":{"end":{"character":15,"line":36},"start":{"character":8,"line":36}},"uri":"file:///home/me/Documents/Programming/Rust/Forks/typst/crates/typst/src/text/linebreak.rs"}]
PS: In VSCode duplicate entries don't appear, I assume this is due to filtering on their side.
rust-analyzer version: rust-analyzer 1.76.0 (07dca48 2024-02-04)
rustc version: rust-analyzer 1.76.0 (07dca48 2024-02-04)
Activity