GithubHelp home page GithubHelp logo

Comments (8)

deathbeam avatar deathbeam commented on September 27, 2024 1

Yea looks like it isnt working, I will make a PR with a fix

from neovim.

deathbeam avatar deathbeam commented on September 27, 2024

Looking at fswatch documentation this error should probably not be handled as actual error, idk:

  • The inotify monitor, available on Linux since kernel 2.6.13, may suffer
    a queue overflow if events are generated faster than they are read from the
    queue. In any case, the application is guaranteed to receive an overflow
    notification which can be handled to gracefully recover. fswatch
    currently throws an exception if a queue overflow occurs. Future versions
    will handle the overflow by emitting proper notifications.

EDIT:

Also can be adjusted and fixed with something like this: https://stackoverflow.com/a/62501929/4915340

Maybe including the config in the error message is worthwhile or having like :h fswatch include it and error reference it?

from neovim.

lewis6991 avatar lewis6991 commented on September 27, 2024

This is just a limitation of Linux and pyright asking to watch too many files. It's not really a problem we can feasibly solve.

from neovim.

deathbeam avatar deathbeam commented on September 27, 2024

@lewis6991 Sure but at least adding some documentation or improving the error message might help. For example intellij tells you to increase inotify limits if it detects they are too low. The current behaviour where it just throws error message twice for something that is supposed to be just notification per fswatch docs is not very good.

from neovim.

lewis6991 avatar lewis6991 commented on September 27, 2024

Ok. Will review a PR.

from neovim.

deathbeam avatar deathbeam commented on September 27, 2024

Oh, also another thing, I was looking at the PR that implemented this feature and there is this: https://github.com/neovim/neovim/pull/27347/files#diff-bfeb92628ce760a1e10360bddb9393ad66b5396a26c0cb7fcdcd39bc60eaa194R283

image

That is supposed to ignore the .git directory I assume but I cannot reproduce this issue when I remove the .git directory so maybe similar check is missing somewhere else or its not working?

from neovim.

deathbeam avatar deathbeam commented on September 27, 2024

Hmm, found this and it looks like --exclude actually doesnt do anything with --recursive specified:

emcrisostomo/fswatch#151

So the PR isnt as easy as i thought. thought about adjusting the regex, as that one is also slightly wrong but I think as per emcrisostomo/fswatch#151 the change would need to provide list of files beforehand, but that would also break watching for new files I assume.

from neovim.

deathbeam avatar deathbeam commented on September 27, 2024

Actually I think the real issue was that pyright changed from single file mode to workspace mode when I added .git dir and then it started watching python lib so even if my .git dir was empty same issue, so probs just the documentation is needed, closing again I guess

from neovim.

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.