#yumy: diagnostics rendering crate
25 messages · Page 1 of 1 (latest)
I feel like there’s a new one of these every week lol
we’ve got the classic annotate-snippets, ariadne, miette, probably a lot more…
yeah there definitely are a lot of these, but i thought one more wouldn't hurt lol
in all seriousness, though, i wanted something a little simpler and less "dictating" (i.e. some crates have built-in message types like error, warning, etc - i tried to make mine agnostic)
also, ariadne looked awesome but used way too much space for me - so i aimed for a "ariadne but compact" look
and at the end of the day i also just wanted to write a library for the fun of it. so thats what i did
Seems cool. Also, i think it would be better to re-license the project under dual MIT/Apache 2.0 before it's too late
why is your source span u32..u32?
so ive tried to use your crate
and ive found a few issues
firstly, it panics on a span of n..n+1
secondly, compact mode line numbers are one off
i prefer the api of this crate to ariadne
just to save some space. i don't think anyone is gonna be using it for text larger than 4gb - at least that's not a use case i think is worth supporting. as a matter of fact, it's actually NonMaxU32..u32, so that Option<Span> is still just 8 bytes!
could you elaborate?
true! nice catch
and thank you!
it definitely has some bugs and i've been planning some internal refactoring for a while now
i just haven't found the time for it, been working on other projects
but if you're thinking about using it, i could try and make it happen sooner :)
also, next time ping me!
this makes it somewhat annoying to use however, as you have to cast, and i dont think saving space is very helpful. errors shouldnt happen much, you dont need to render them in 4 ns
im not sure, but it was p anicking alot
it alsod oesnt support multiple labels on the same line