This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 Diagnostics don't inherit file path when creating a Location
type
#3829
Labels
A-Diagnostic
Area: errors and diagnostics
S-Bug: confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
At the moment there's a small issue where creating a
Location
via the builder pattern doesn't always pick up the file path injected viawith_file_path
.This forces us, as a workaround, to do this: https://github.com/rome/tools/blob/main/crates/rome_analyze/src/diagnostics.rs#L114-L117
As a consequence, there's some code that is not called at the moment: https://github.com/rome/tools/blob/main/crates/rome_analyze/src/rule.rs#L394-L415
Expected result
We should be able to create a correct
Location
by mixing the location information coming from a client and the information inside a diagnostic type.Code of Conduct
The text was updated successfully, but these errors were encountered: