Git Product home page Git Product logo

Comments (2)

Wilfred avatar Wilfred commented on May 26, 2024 2

@pmiddend ripgrep returns an exit code of 1 when there are no results. It doesn't mean that there's anything wrong necessarily. I've always thought that it's a slightly odd behaviour, but it's consistent with grep.

@PuercoPop FWIW deadgrep does try to enforce a match of a known search term, so you shouldn't be able to specify a search type of erb.

have you considered a dedicated process buffer like magit that can be opened on $?

I do think we'll need some kind of debugging tool to help with bug reports. I'm reluctant to expose all the raw search data as it can be big when you have a lot of results, and it's not very readable when Emacs shows the raw ASCII control characters. It's also possible to have multiple searches running simultaneously, unlike magit, so I can't have a single *deadgrep-output* buffer.

from deadgrep.

PuercoPop avatar PuercoPop commented on May 26, 2024

I ran into a similar issue when trying to pass erb as the type, turns out rg doesn't support the erb type .(although you can add it as a command flag).

To get a better idea of what is going on in your case I recommend you can rg from the CLI to be able to read its error message. You'll need to findout how deadgrep is invoking rg. To do so, you can use edebug on deadgrep--start to get the values of return by (format "rg %s" search-term) and (deadgrep--format-command.

@Wilfred have you considered a dedicated process buffer like magit that can be opened on $?

from deadgrep.

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.