Any change I make to the better-todo-tree.regex.regex setting, apart from removing the lookahead expressions entirely, triggers the following error when I try to refresh:
Better Todo Tree: ripgrep failed with exit code 2 (rg: regex parse error: (?:(^|//|#|<!--|/*|^[ \t](-|\d+.))\s(?=[x]|[ ]|[A-Za-z0-9_])([x]|[ ]|XXX|TODO|HACK|FIXME|BUG)(?![A-Za-z0-9_])) ^^^ error: look-around, including look-ahead and look-behind, is not supported Consider enabling PCRE2 with the --pcre2 flag, which can handle backreferences and look-around. )
(In this case, I just removed the '|;' option from the initial capture group, but again, this occurs with any change.)
Following the suggestion of the error and adding the --pcre2 flag to the better-todo-tree.ripgrep.ripgrepArgs setting resolves the issue; however, since this is the default Regex expression, it seems this flag should also be included by default.
I am on version 1.1.15 of the extension and version 1.122.1 of VS Code.
Any change I make to the better-todo-tree.regex.regex setting, apart from removing the lookahead expressions entirely, triggers the following error when I try to refresh:
(In this case, I just removed the '|;' option from the initial capture group, but again, this occurs with any change.)
Following the suggestion of the error and adding the --pcre2 flag to the better-todo-tree.ripgrep.ripgrepArgs setting resolves the issue; however, since this is the default Regex expression, it seems this flag should also be included by default.
I am on version 1.1.15 of the extension and version 1.122.1 of VS Code.