Giter Site home page Giter Site logo

Comments (6)

wookayin avatar wookayin commented on May 30, 2024 2

For future reference:

This often happens when one mistakenly have rg installed in their anaconda environments, which often supersedes in PATH. The official prebuilt binaries well support PCRE2.

from any-jump.vim.

BurntSushi avatar BurntSushi commented on May 30, 2024 2

If you're installing ripgrep with Cargo, you should be able to enable PCRE2 support via cargo install ripgrep --features pcre2.

Also, you all might consider using --auto-hybrid-regex. I don't know exactly how you're invoking ripgrep and what kind of regexes you're using, but enabling PCRE2 can be slower: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pcre2-slow (There are ways to make it faster, which the FAQ entry addresses.) However, if you use --auto-hybrid-regex, then ripgrep will automatically use its default engine if it can (when the regex doesn't have look-around or backreferences).

from any-jump.vim.

pechorin avatar pechorin commented on May 30, 2024 1

Hello, thanks for report. I will try to add PCRE2 check for better error message :)

Also i think too many any-jump regexps uses PCRE2, so this is not in my road-map, but i think i will research this problem.

from any-jump.vim.

AZanellato avatar AZanellato commented on May 30, 2024 1

Not only that. The installation through cargo doesn't support PCRE2 by default.

from any-jump.vim.

pechorin avatar pechorin commented on May 30, 2024 1

Okay, not all regexp rules uses PCRE2 look-ahed/behind so i think i can enable --auto-hybrid-regex instead of strict --PCRE2

be4b64a

Please try and let me know if it helps :)

from any-jump.vim.

AZanellato avatar AZanellato commented on May 30, 2024

Thank you @pechorin and @BurntSushi !

from any-jump.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.