Closed montchr closed 2 years ago
Hmmm, it seems to be related to empty matches https://github.com/NixOS/nix/issues/1537
Working on a fix right now, thanks for the report!
Here's a possible fix, could you try it out? https://github.com/Misterio77/nix-colors/commit/b492ce12721492fb3becdb7137e31e5c0f54bf8a
~Unfortunately nope:~ Yes! But now a new one:
error: invalid regular expression '([^ :]+): *(.*?) *'
at /nix/store/l44mp4dv8ilaamrlkf2j7pah5kcvill0-source/lib/core/schemeFromYAML.nix:39:19:
38| let
39| match = builtins.match "([^ :]+): *(.*?) *" line;
| ^
40| in
~The error output is different now, but it also differs pretty significantly from the source code 🤔~
Edit: I misread: this is a different expression! So it looks like your fix worked for the one on L28, but L39 is failing now:
Okay! Please try this one now: 957021ec7eb0f2ba2dde29b86f4ffd6a31b568f0
It works! Thank you.
Hmmm, it seems to be related to empty matches
By the way, does this imply that I might have something configured incorrectly which would result in empty values?
It works! Thank you.
Awesome! I'll push it to main in a sec
By the way, does this imply that I might have something configured incorrectly which would result in empty values?
No no, not at all. It seems nix uses the OS' native regex implementation, and Darwin's seems to not handle well when capture groups return empty data
Since updating to the latest version, I'm getting the following error on macOS:
FWIW, I've seen similar Darwin-specific errors in home-manager relating to regular expressions.
Metadata
Stack Trace