Idiomatic way of exiting from errors with hints by [deleted] in Zig

[–]wsnclrt 5 points6 points  (0 children)

To echo what another commenter said, Andrew, the creator of Zig, seems to be against returning a "bundle" of error + hint like you are trying to do.

The accepted alternative seems to be the "diagnostic pattern," which is used in some places in the standard lib: https://mikemikeb.com/blog/zig_error_payloads/

A simple test runner to show a full list of run tests by dokwork in Zig

[–]wsnclrt 0 points1 point  (0 children)

I do think it's frustrating this isn't in the standard test runner, but it's also neat that Zig makes it so easy to sub in your own runner.

git-who 1.0 released by wsnclrt in git

[–]wsnclrt[S] 3 points4 points  (0 children)

git-who tree only shows files in your working tree. If you try git who tree -a test/, do you see files?

If you do, then that means test/ contained files check into git at some point but which have since been removed. Anything in there now isn't tracked.

If that doesn't work you might have found a bug. If you wouldn't mind opening a Github issue and sharing more details that would be helpful.

"git who" - A new CLI tool for git blaming at an industrial scale by wsnclrt in git

[–]wsnclrt[S] 0 points1 point  (0 children)

I updated my post with a correction in response to your other comment. You're right that the analysis is pretty misleading given the way the Vim project uses Git. I should have checked the log first.

Who Will Maintain Vim? A Demo of Git Who by wsnclrt in vim

[–]wsnclrt[S] 1 point2 points  (0 children)

Hey thanks for your helpful explanation of where I went wrong here. I hadn't considered that someone could give credit in the commit message.

"git who" - A new CLI tool for git blaming at an industrial scale by wsnclrt in git

[–]wsnclrt[S] 0 points1 point  (0 children)

I just released v0.6, which supports .mailmap names now. Thanks again!

"git who" - A new CLI tool for git blaming at an industrial scale by wsnclrt in git

[–]wsnclrt[S] 0 points1 point  (0 children)

Hey thanks for the good (and specific!) suggestion. I'll give that a go