Coder Social home page Coder Social logo

Comments (11)

konstantinstadler avatar konstantinstadler commented on June 12, 2024 2

Had the same problem. It was caused by a folder containing binary data. Excluding the directory through the ignore_pattern flag solved the issue

from notational-fzf-vim.

kwbr avatar kwbr commented on June 12, 2024 2

The problem seems to be shorten_path_for_notational_fzf.py:

It uses for line in stdin: to read lines. This fails if the line contains characters that can not be converted to a unicode string (the systems sys.getdefaultencoding()) and the script stops at this point.

I currently disabled this feature by setting g:nv_use_short_pathnames = 0.

While working on a fix I am clueless what is the best way to handle this. It might be better to treat the lines as pure bytes not as strings and leave them as they are.

if __name__ == "__main__":
    for line in sys.stdin.buffer:
        try:
            line = line.decode("utf-8")
            print(process_line(line))
        except:
            # What to do here?
            pass

from notational-fzf-vim.

alok avatar alok commented on June 12, 2024 1

from notational-fzf-vim.

clenio avatar clenio commented on June 12, 2024 1

Facing the same issue here.

In my case, a pdf file in the directory crashed the "indexing process". I removed that specific file and returned to working normally.

from notational-fzf-vim.

Andreilys avatar Andreilys commented on June 12, 2024

Here's an example, you can see player_piano.md and professional_writing.md show up in thesearch, but personal_poems.md and personal_writing.md do not, despite all four being in the same directory.

Screen Shot 2020-11-15 at 1 09 32 PM

Screen Shot 2020-11-15 at 1 09 43 PM

Screen Shot 2020-11-15 at 1 09 49 PM

Screen Shot 2020-11-15 at 1 10 04 PM

from notational-fzf-vim.

alok avatar alok commented on June 12, 2024

from notational-fzf-vim.

Andreilys avatar Andreilys commented on June 12, 2024

Nope both files have content inside them

from notational-fzf-vim.

clenio avatar clenio commented on June 12, 2024

Facing the same issue here.

from notational-fzf-vim.

Brutus11111 avatar Brutus11111 commented on June 12, 2024

I'm having the same issue here.

Two terminals next to each other. One with vim. I search for workorder and the file doesn't show up. In the other terminal I open fzf manually and type workorder and it does show up. It's a document I actively use and contains data.

from notational-fzf-vim.

heikete avatar heikete commented on June 12, 2024

I have the same issue. I've checked with bare fzf I can find the filename, however the plugin doesn't list it. Maybe the error is caused by some illegal byte in assumed utf8 file? I tried to narrow the problem by searching a pattern in listed/omitted files, but didn't have time to debug the script. Is there a simple option to debug the script by printing the data in some intermediate state? It looks like some exception is silently ignored. I can zip my txt files directory and share for debugging.

from notational-fzf-vim.

Brutus11111 avatar Brutus11111 commented on June 12, 2024

Had the same problem. It was caused by a folder containing binary data. Excluding the directory through the ignore_pattern flag solved the issue

I can confirm that this is the issue. After moving all binary files out of the directory, it can suddenly find all the files.

For anyone else that wants to get it working right now, go to the directory, type 'grep -rIL .' to find those files.

It would be nice if this could somehow be solved in the addon. I'm not capable of fixing it myself. Somehow ignoring binary files should do the trick.

from notational-fzf-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.