Closed Mads-MMJ closed 1 month ago
Thank you for reporting this. I can not reproduce this in Firefox. I copied the unit_list
implementation and then your unit_list(12 degrees + 34 minute + 56 second, [1 degree, 1´, 1´´])
query to arrive at this, and I see the following output:
And no JavaScript errors are appearing. I also tested it in the CLI version and everything works as expected.
Interestingly though, I experienced a potentially related error today. I did something like this …
… in a slightly different environment, and only saw List
in the output, instead of List<Length>
. Turns out that HTML symbols are not properly escaped in error messages (it works fine with actual values). The problem is this function:
which needs to call html_escape::encode_text
on the incoming text.
Maybe something similar happened in your case?! Or it is something else entirely. But then I need some help with reproducing this.
The escaping problem should definitely be fixed though.
I was playing around with making a generic numbat function for creating list representations of mixed units after reading #364 and #501.
:star_struck:
@Mads-MMJ any feedback on this?
I'm closing this due to inactivity. Please feel free to comment in case it should be re-opened.
Description I was playing around with making a generic numbat function for creating list representations of mixed units after reading #364 and #501. When I tried to test it on the
Angle
Dimension I tried to use the minute and second symbols but used the wrong characters by accident. This however caused a parsing error which took several seconds (roughly 10) to print while read text filled the screen. It looks a lot like an unhandled exception that rose all the way to the user by accident. For the sake of reproducibility, I have included the error and my implementation of the function that caused it. I can however not include the full error due to the GitHub character limit. I do however have the full error and full session history saved and can provide it if needed.Error
Implementation of unit_list