Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when "installing file system watcher" #87

Open
rwols opened this issue Oct 2, 2021 · 4 comments
Open

Exception when "installing file system watcher" #87

rwols opened this issue Oct 2, 2021 · 4 comments

Comments

@rwols
Copy link
Member

rwols commented Oct 2, 2021

In the server log panel I see this message:

LSP-pyright: Exception received when installing file system watcher: TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js

OS is Ubuntu 20.4. System node is v12. I have a Node v14 installed in $cache/Package Storage/lsp_utils/

@rchl
Copy link
Member

rchl commented Oct 2, 2021

https://github.com/paulmillr/chokidar says that on Linux fs.watch API is used and that does not provide recursive watching...

Kinda surprising since this library is used "everywhere" so I don't get how it could not support such basic need...

@rchl
Copy link
Member

rchl commented Oct 2, 2021

Oh, somehow I've assumed that this is related to my https://github.com/sublimelsp/LSP-file-watcher-chokidar but I guess this is internal error from Pyright instead. In that case an issue in the Pyright repo would likely receive a quick response.

@rchl
Copy link
Member

rchl commented Oct 2, 2021

@rchl
Copy link
Member

rchl commented Oct 2, 2021

Pyright could fix it so that it wouldn't pass recursive: true on linux.
Maybe not a great idea in case support is added in the future but can always be refined later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants