Shadow cat was sitting in a doorway, and complained at spouse when he stepped over her. When I wanted to go through, I tapped her gently with my foot to see if she would move.

She did, but she also shouted at me.

I had to quote Miette. Shadow glared.

#cats #Miette

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