-
-
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
MietteReporter: Render a "bounding box" when the lines are way too long #20
Comments
Could you elaborate on how you envisioned this? Is this still something you want? |
Would this only involve trimming snippets horizontally like they're currently trimmed vertically (like @Benjamin-L said here (sorry for the ping)) or would it involve wrapping long lines? (or both?) |
It's trimming horizontally, finding a "display window". For example, if you have 10,000 chars of JSON on a single line, and the syntax error is on char 5,000, then it would only render the syntax error range, plus a certain number of characters before and after, possibly with ellipses. |
The case that came up in #327 is slightly trickier, but still probably covered by this issue. It's like a 10,000 char JSON file where there's one label at char 10 and one at char 90,000. There are two ways I can think of to display that: splitting it into two separate snippets or putting it in one snippet that's broken in the middle.
versus
The first option is likely easier to implement, and more consistent with how vertical trimming currently works. |
splitting it into two definitely seems like the most readable alternative, yeh |
This is going to be hard, but it's going to make out-of-the-box display for, say, a bunch of single-line json, a lot easier.
The text was updated successfully, but these errors were encountered: