You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so for version 4 and above when I print pretrty much any error that contains something like this 🏳️⚧️
anywhere in the source it would just cut it. version 3 has weird formating things on the colors but otherwise works
specifcly I ran this
// Function to create a report for UnclosedString
fn handle_unclosed_string<'a>(span: LocatedSpan<&'a str>, ch: char, source: &'a str) -> Report<'a, Range> {
let (line, line_range, _) = get_line_info(source, span.location_offset());
let byte_offset = span.location_offset();
let span_len = span.fragment().len();
and it would work fine on most texts but fail on something like ", 丐, 丑 \n\nmore::stuff\n\n" unclosed string"
by printing just Error: Unclosed string error
The text was updated successfully, but these errors were encountered:
so for version 4 and above when I print pretrty much any error that contains something like this 🏳️⚧️
anywhere in the source it would just cut it. version 3 has weird formating things on the colors but otherwise works
specifcly I ran this
// Function to create a report for UnclosedString
fn handle_unclosed_string<'a>(span: LocatedSpan<&'a str>, ch: char, source: &'a str) -> Report<'a, Range> {
let (line, line_range, _) = get_line_info(source, span.location_offset());
let byte_offset = span.location_offset();
let span_len = span.fragment().len();
}
and it would work fine on most texts but fail on something like ", 丐, 丑 \n\nmore::stuff\n\n" unclosed string"
by printing just Error: Unclosed string error
The text was updated successfully, but these errors were encountered: