SONARIUM vol. III @ 10 Avenue Des Pins Ouest - 14 Mar feat. euphorism, Safia Nihil, Miette

#SESH #euphorism #SafiaNihil #Miette

https://sesh.sx/e/1877275

I am once again reminded that I should probably do a better job of letting people know that if they use miette, or things that use miette, you can put NO_GRAPHICS=1 in an env var, and instead of drawing fancy graphical diagnostics, miette will automatically drop into a "narratable" renderer that's optimized for screen readers. The output looks like:

oops!
Diagnostic severity: error
Begin snippet for bad_file.rs starting at line 1, column 1

snippet line 1: source
snippet line 2: text
label at line 2, columns 3 to 6: this bit here
snippet line 3: here
diagnostic help: try doing it better next time?
diagnostic code: oops::my::bad

This works for any tool or library using miette unless they're manually messing with renderer settings and preventing this fallback from happening.

#Miette #Rust #RustLang

This is a very early proof-of-concept and I'm still evaluating if I have the time to work on such a project. Even though I see the dire need to improve Nix error messages. It's written in rust and uses the miette crate for error handling. I'm currently trying out nom for parsing nix errors.

Still what do you think? What would you change?

And does anyone know if there a complete and official list of all Nix error online, with explanations?

#nix #nixos #errorhandling #miette #rust #rustlang

so this is happening.

All my #Rust #RustLang repos are moved over. Now I just need to figure out CI, republish to crates.io, and archive the github side (and document a tombstone in their readmes).

I have a bunch of other repos I'll either archive or delete as well.

#KDL and #orogene will remain github-side for now because they're a bit more dependent on github services, but I would like to at least move orogene over eventually. KDL might be stuck, though, unfortunately, but I might move only kdl-rs.

#bevy #miette

mon ami me prête son lit et voila que je fais que manger des biscuits dedans …#miette partout..
Some example testcase errors, thanks to the awesome #miette crate from @zkat (who also authored #KDL btw!)
[Feature Request] Add an option to skip line number and column · Issue #429 · zkat/miette

Usecase: swc-project/swc#10253 (review) Hi! I'm creator of the SWC project, and I'm using miette so well. So I want to say thank you first! I'm trying to use the snippet formatting of miette for a ...

GitHub

So I may have come up with a genuinely reasonable alternative to anyhow-style error globbing that retains stack information between calls while still being statically typed and properly implementing std::error::Error and it was so simple I’m pretty convinced I’m actually going down into a dead end again because there’s just no way this hasn’t already become the de facto way to manage Rust errors

If this works out, this is going to be the foundation for #miette going forward.

how offended would y'all be if I revisited some major #Miette APIs and changed a bit about how it works as an error library, and took the chance to same some specifics around e.g. spans and such?

I value stability a lot so I've been hesitant to do this, but I think these changes might be valuable enough that the community will be willing to migrate to them over time. I'll try and see what the migration/compat path looks like, too, once I've got something that makes me feel like it's worth migrating TO.