You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ rg -g "foo" -g "bar" -g "**.txt" foobar
invalid use of **; must be one path component
$ rg -g "foo" -g "bar" -g "{{}}" foobar
nested alternate groups are not allowed
There is an error printed, and the search doesn't continue, but it may not be obvious which glob is causing the issue. This comes up in microsoft/vscode#24050 but I imagine it may be useful for command line users to have a message like
Invalid glob "{{}}", nested alternate groups are not allowed
The text was updated successfully, but these errors were encountered:
Fully agreed that the error message should be improved here. If it's just a matter of printing the invalid glob, that should hopefully be pretty easy to do. I'll see what I can do about this before the next release.
When I have an invalid glob:
There is an error printed, and the search doesn't continue, but it may not be obvious which glob is causing the issue. This comes up in microsoft/vscode#24050 but I imagine it may be useful for command line users to have a message like
Invalid glob "{{}}", nested alternate groups are not allowed
The text was updated successfully, but these errors were encountered: