Comments (8)
Yea looks like it isnt working, I will make a PR with a fix
from neovim.
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.
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.
@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.
Ok. Will review a PR.
from neovim.
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
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.
Hmm, found this and it looks like --exclude actually doesnt do anything with --recursive specified:
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.
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)
- Inconsistent behavior around vim.api.nvim_tabpage_set_var and vim.api.nvim_tabpage_get_var HOT 2
- completeopt=popup crashing neovim HOT 1
- multibyte 'langmap' doesn't work for custom mapping HOT 3
- New regular expression atoms for WORD-boundaries HOT 1
- Explain that the root node is not displayed in InspectTree HOT 1
- Downloading 'nvim-linux64.tar.gz' by following wiki results corrupt file HOT 2
- using t_Cs to set undercurl works in vim but not neovim HOT 7
- Sidebar obscures content on online help docs (neovim.io website) HOT 1
- ext_cmdline/message for the TUI: tracking issue HOT 1
- `expand('%')` returns absolute path in file having LSP diagnostics HOT 5
- `<C-Space>` as mapleader doesn't work and gives unexpected behavior HOT 3
- `treesitter/highlighter: Invalid '_subpriority': out of range` HOT 2
- ui_comp_raw_line: Assertion `attrs[i] >= 0' HOT 4
- [Windows] Nightly release triggers Windows Defender virus detection HOT 1
- Treesitter conceal broken HOT 4
- Segfault (msgpack) HOT 4
- Allow opening man pages in the current window HOT 3
- Installation failed on Fedora 39 HOT 4
- return to previous window when quitting table of contents HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neovim.