Commit a2285fc
Warn when ripgrep PCRE2 is not available (#542)
* Warn when ripgrep returns PCRE2 not available error (closes #303)
When rg lacks PCRE2 support and returns an error, dumb-jump previously
showed a confusing "not found" message. Now detect the PCRE2 error in
rg output and display a clear warning directing users to either install
rg with PCRE2 or customize `dumb-jump-rg-search-args`.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Anchor PCRE2 error detection to line start to avoid false positives
The previous substring check could match search hits containing
"PCRE2 is not available" in source code. Use ^ anchor so only the
actual rg error line (emitted on stderr) triggers the warning.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1cc7a57 commit a2285fc
2 files changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4859 | 4859 | | |
4860 | 4860 | | |
4861 | 4861 | | |
| 4862 | + | |
| 4863 | + | |
| 4864 | + | |
4862 | 4865 | | |
4863 | 4866 | | |
4864 | 4867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
648 | 688 | | |
649 | 689 | | |
650 | 690 | | |
| |||
0 commit comments