-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Potentially broken word wrapping on main
#333
Labels
bug
Something isn't working
Comments
Oh, and as the title implies, this is using the current |
My guess: the wrapping for the nested diagnostic is not taking into account that it's getting nested, so it's using the column count of the parent. |
zkat
pushed a commit
that referenced
this issue
Mar 27, 2024
Boshen
pushed a commit
to oxc-project/oxc-miette
that referenced
this issue
Oct 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just a quick report, and I might have time to dig a bit deeper later on, but I've noticed a few times that I'll get some strange wrapping where the
GraphicalReportHandler
will move from the first to the second line, print exactly one word, then move to a third line.I'm not particularly sure why yet, but it looks something like this:
Here,
the
is the lonely word that gets banished to that middle line, though I think I've seen this witha
as well, so it seems like one-char words are enough to trigger this issue. Resizing the terminal a bit causes the problem to disappear or reappear, so perhaps there is some sort of off-by-one, or several levels of wrapping that don't communicate indentation properly?Hard to say, but I've left it here in case anyone else has more time to look into it than I do!
The text was updated successfully, but these errors were encountered: