-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find with Regex Lookbehind #100569
Comments
This is because I try to normalize the newline to |
I "stumbled" on this as a workaround in a search across files regex:
Making the Perhaps @roblourens can explain why. Does the character class version not get expanded to |
It does get expanded but in that case, |
A possible solution that comes to mind, is to instead of directly expanding This would probably be terrible for performance, but maybe better than having to use ExampleInstead of |
We will no longer normalize CRLF in lookbehinds. And will do so more intelligently in other cases. |
|
@roblourens I verified this search no longer triggers an error. However on windows I only see a workspace search for |
Actually nevermind, I still see errors in the developer tools: Repro
I see lots of errors that look like:
There errors are not shown to the user so I was not aware they were happening until checking the dev tools |
That looks like a quirk in ripgrep, they return results without any submatches. This would have had the same error before my changes (if it were possible to execute the search) and I'm sure there are other times people ran into this. It seems like a questionable bug in ripgrep. I put in a small patch to have the range behavior be the same as what the file matcher does, just showing the first character as the selection cc @roblourens |
That upstream issue is BurntSushi/ripgrep#1412, thought it was handled, maybe it got lost. Thanks for the fix @connor4312 |
Issue Type: Bug
Results:
Results:
VS Code version: Code 1.46.0 (a5d1cc2, 2020-06-10T09:03:20.462Z)
OS version: Windows_NT x64 10.0.19041
Remote OS version: Linux x64 4.19.84-microsoft-standard
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Extensions (23)
The text was updated successfully, but these errors were encountered: