-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Make columns indices 1-based in the text output format #539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make columns indices 1-based in the text output format #539
Conversation
Not changing the column in JSON errors. Not sure if we want to change that too. Closes #537.
I think it'd make sense to change it in the JSON printer too if you're up for it. Should we even consider changing it when we convert from |
@charliermarsh good call! Let me make that change. |
@charliermarsh how does this look? I originally tried to make a copy of the My Rust-fu is a bit limited here, let me know if I'm wasting your time 😁 |
src/message.rs
Outdated
let mut location = check.location; | ||
location.go_right(); | ||
let mut end_location = check.end_location; | ||
end_location.go_right(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't feel right 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can use Location::new and location.row() methods to create a new location here! (On subway so low-fidelity message…)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh that makes more sense hah I was too influenced by Go in my first attempt. Pushed a fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woo, thanks!
\cc @Seamooo - we changed |
Awesome, ruffd also now uses location and end_location in |
Not changing the column in JSON errors. Not sure if we want to change that too.
Closes #537.