I don't know if this is the best solution but I was having issues with the nix linter. The reason seems to be that I get errors such as:
error: undefined variable 'pkg'
at /home/axel/.config/home-manager/home.nix:23:5:
22| # # "Hello, world!" when run.
23| pkg.hello
| ^
24| pkgs.neovim
where the pattern ((%w+): (.+)\n%s*at .+:(%d+):(%d+)) looks for a match which is actually in the above two lines. Since lines from stdout/stderr are passed line by line to the pattern we don't get any match.
This adds an option to from_pattern to not split the lines before passing to the pattern. This can of course then only give a single error at a time. But at least for nix this seems to be the case anyway?
Happy for some suggestions of how to handle this better.
I don't know if this is the best solution but I was having issues with the
nix
linter. The reason seems to be that I get errors such as:where the pattern (
(%w+): (.+)\n%s*at .+:(%d+):(%d+)
) looks for a match which is actually in the above two lines. Since lines from stdout/stderr are passed line by line to the pattern we don't get any match.This adds an option to
from_pattern
to not split the lines before passing to the pattern. This can of course then only give a single error at a time. But at least fornix
this seems to be the case anyway?Happy for some suggestions of how to handle this better.