Giter Site home page Giter Site logo

Wrong type argument: stringp, nil about rg.el HOT 5 CLOSED

dajva avatar dajva commented on May 26, 2024
Wrong type argument: stringp, nil

from rg.el.

Comments (5)

dajva avatar dajva commented on May 26, 2024

What version of ripgrep is this and what OS is this? The empty string at the begining of the type list should be the problem but I don't know why you get that.

from rg.el.

ForLoveOfCats avatar ForLoveOfCats commented on May 26, 2024

image

from rg.el.

dajva avatar dajva commented on May 26, 2024

Ok, I have essentially the same environgment (linux rg version) so no clue there. There is an empty string at the end of the type list though coming from splitting the output from rg --type-list on newline. That one is filtered out to avoid these kind of problems.
I guess the simplest solution to this is just to handle empty strings gracefully when processing the list. Should make it more resiliant to any strangeness in this area.

from rg.el.

dajva avatar dajva commented on May 26, 2024

Pushed a fix now. Let's see if this works.

from rg.el.

ForLoveOfCats avatar ForLoveOfCats commented on May 26, 2024

I can confirm that the issue has been resolved on my system! Thanks for your time and effort on this library!

from rg.el.

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.