Skip to content
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

Error parsing regex near 'E:\Relea' at character offset 3: Unrecognized escape sequence: '\R'. #338

Closed
jiangjianshan opened this issue Jan 22, 2017 · 7 comments
Labels
duplicate An issue that is duplicative of another.

Comments

@jiangjianshan
Copy link

Hello,

I want to combine to use ripgrep and CtrlP together, but meet the following issue as the picure showing:

image

As you see my setting for the plugin CtrlP. I think the issue is came from the below line

let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
The version of ripgrep I'm using is 0.4.0, which is installed from commad 'cargo install ripgrep'.
Is it something wrong for my setting for the rg command or any other reasong to cause this issue?

@BurntSushi
Copy link
Owner

I think this is a dupe of #326.

@jiangjianshan
Copy link
Author

@BurntSushi, I have look through the #326 issue, it seems like it is still open. Below is what I'm try on my Windows 7 SP1 64bit system.
image

I have already following the instruction on your github website to build ripgrep.

image

@BurntSushi
Copy link
Owner

It is indeed still open. But it still looks like a duplicate to me. :-)

@jiangjianshan
Copy link
Author

@BurntSushi , I have found a new strange behaviour for command "rg --files [path]"
image
As you see above, the command "rg --files .\doc" worked at the folder "E:\Releases\lua-5.3.3", but "rg --files .\gnu_regex" not work at folder "E:\Releases\ctags-5.8".
The version of Rust I'm using is 1.14.0, which target is x86_64-pc-windows-msvc.
When I'm using the command "cargo install ripgrep", I have noticed that the version of regex to compile ripgrep is 0.2.1 but not the 0.2 on this github.
I'm still finding the solution for the issue I meet.

@BurntSushi
Copy link
Owner

The bug is that the file path appears to be interpreted as a regex. If that's true, then your error messages make sense: \d is a valid escape sequence while \g is not.

When I'm using the command "cargo install ripgrep", I have noticed that the version of regex to compile ripgrep is 0.2.1 but not the 0.2 on this github.

ripgrep uses regex 0.2.1.

@jiangjianshan
Copy link
Author

@BurntSushi, so what you mean this bug maybe came from regex 0.2.1?

@BurntSushi
Copy link
Owner

BurntSushi commented Jan 24, 2017 via email

@BurntSushi BurntSushi added the duplicate An issue that is duplicative of another. label Feb 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate An issue that is duplicative of another.
Projects
None yet
Development

No branches or pull requests

2 participants