Skip to content
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

Improved file reload error message #6274

Merged
merged 2 commits into from
Mar 14, 2023
Merged

Improved file reload error message #6274

merged 2 commits into from
Mar 14, 2023

Conversation

santiagovrancovich
Copy link
Contributor

@santiagovrancovich santiagovrancovich commented Mar 11, 2023

Improvements on helix-view/document.rs reload function to show file paths on error based on the idea of #6222.
Currently this only shows one of the possible missing files due to how errors are handled with anyhow.
I would like to add a multi line output with all of the missing file paths but i'm not sure in how it could be done, if someone has an idea i would really appreciate it.

Edit: after some digging i've found that the prompt is limited to have a height of one line, so this will be all that could be done for now

@santiagovrancovich santiagovrancovich marked this pull request as draft March 11, 2023 20:51
@santiagovrancovich santiagovrancovich marked this pull request as ready for review March 12, 2023 02:20
Copy link
Contributor

@pickfire pickfire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for helping to improve the error message.

Usually error messages or UX might get missed out, but there is someone like that just working on rustc error messages and I am quite impressed with that guy.

@pickfire pickfire merged commit ad855da into helix-editor:master Mar 14, 2023
sagnibak pushed a commit to sagnibak/helix that referenced this pull request Mar 21, 2023
icecreammatt pushed a commit to icecreammatt/helix that referenced this pull request Apr 19, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants