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

BUG: Exception received when installing recursive file system watcher #1635

Closed
JordyScript opened this issue Aug 2, 2021 · 5 comments
Closed
Labels
waiting for user response Requires more information from user

Comments

@JordyScript
Copy link

Environment data

  • Language Server version: 2021.7.7
  • OS and version: linux x64 (Pop_OS 21.04)
  • Python version: CPython 3.9.5
  • python.analysis.indexing: undefined
  • python.analysis.typeCheckingMode: off

Expected behaviour

Language server works and provides intellisense

Actual behaviour

Language server doesn't work, no intellisense

Logs

Python Language Server Log

[Info  - 20:42:34] Pylance language server 2021.7.7 (pyright fa453b2e) starting
[Info  - 20:42:34] Server root directory: /home/$USER/.vscode/extensions/ms-python.vscode-pylance-2021.7.7/dist
Exception received when installing recursive 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

@github-actions github-actions bot added the triage label Aug 2, 2021
@jakebailey
Copy link
Member

This message is a red herring and has nothing to do with not getting intellisense. See also #923.

Can you provide your full trace logs? What isn't working? What folder have you opened?

@jakebailey jakebailey added the waiting for user response Requires more information from user label Aug 2, 2021
@github-actions github-actions bot removed the triage label Aug 2, 2021
@JordyScript
Copy link
Author

Actually, I had not opened any folder. I just opened a blank VSCode editor and then created a new python file and didn't get any Pylance features to work after typing some code.

However, after switching to Jedi and back to Pylance it seems to work again even though my earlier attempt to uninstall and reinstall Pylance didn't fix anything initially.

Thanks for pointing out that the error message was irrelevant. I am not sure where to find full trace logs, but I could still provide them if I know where to get them.

@jakebailey
Copy link
Member

The same place, but with "python.analysis.logLevel": "Trace" set (it was in the issue template).

I'll close this, as the issue went away, but if it comes back and you can provide logs and a description of which features are broken, that would be helpful.

Largely, open file mode has a few shortcomings because it doesn't have any context about what code is available, so imports, some refactorings, reference finding, etc, will all be limited. Opening a folder for your project is the best method to have a working experience.

@danielward27
Copy link

I also have this issue. With "python.analysis.logLevel": "Trace" set, I get the following output from the Python Language Server:

[Info  - 10:53:13] Pylance language server 2021.8.0 (pyright dfb796d8) starting
[Info  - 10:53:13] Server root directory: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist
[Info  - 10:53:13] No configuration file found.
[Info  - 10:53:13] No pyproject.toml file found.
[Info  - 10:53:13] Setting pythonPath for service "misspecified_flows": "/home/dw16200/miniconda3/envs/sbi_env/bin/python"
[Warn  - 10:53:13] stubPath /home/dw16200/Documents/compass/project/misspecification/misspecified_flows/typings is not a valid directory.
[Info  - 10:53:13] Assuming Python version 3.8
[Info  - 10:53:13] Assuming Python platform Linux
Search paths for /home/dw16200/Documents/compass/project/misspecification/misspecified_flows
  /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib
  /home/dw16200/Documents/compass/project/misspecification/misspecified_flows
  /home/dw16200/Documents/compass/project/misspecification/misspecified_flows
  /home/dw16200/Documents/compass/project/misspecification/misspecified_flows/typings
  /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stubs/...
  /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/bundled/stubs
  /home/dw16200/miniconda3/envs/sbi_env/lib/python3.8
  /home/dw16200/miniconda3/envs/sbi_env/lib/python3.8/lib-dynload
  /home/dw16200/.local/lib/python3.8/site-packages
  /home/dw16200/miniconda3/envs/sbi_env/lib/python3.8/site-packages
  /home/dw16200/Documents/compass/project/misspecification/misspecified_flows
Exception received when installing recursive 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
Exception received when installing recursive 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
Exception received when installing recursive 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
Exception received when installing recursive 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
[Info  - 10:53:14] Searching for source files
[Info  - 10:53:14] Found 12 source files
[Info  - 10:53:14] Background analysis(1) root directory: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist
[Info  - 10:53:14] Background analysis(1) started
Background analysis message: setConfigOptions
Background analysis message: ensurePartialStubPackages
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
[Info  - 10:53:14] Background analysis(2) root directory: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist
[Info  - 10:53:14] Background analysis(2) started
[Info  - 10:53:14] No configuration file found.
[Info  - 10:53:14] No pyproject.toml file found.
[Info  - 10:53:14] Setting pythonPath for service "analysis": "/home/dw16200/miniconda3/envs/sbi_env/bin/python"
[Warn  - 10:53:14] stubPath /home/dw16200/Documents/compass/project/misspecification/analysis/typings is not a valid directory.
[Info  - 10:53:14] Assuming Python version 3.8
[Info  - 10:53:14] Assuming Python platform Linux
Search paths for /home/dw16200/Documents/compass/project/misspecification/analysis
  /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib
  /home/dw16200/Documents/compass/project/misspecification/analysis
  /home/dw16200/Documents/compass/project/misspecification/misspecified_flows
  /home/dw16200/Documents/compass/project/misspecification/analysis/typings
  /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stubs/...
  /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/bundled/stubs
  /home/dw16200/miniconda3/envs/sbi_env/lib/python3.8
  /home/dw16200/miniconda3/envs/sbi_env/lib/python3.8/lib-dynload
  /home/dw16200/.local/lib/python3.8/site-packages
  /home/dw16200/miniconda3/envs/sbi_env/lib/python3.8/site-packages
  /home/dw16200/Documents/compass/project/misspecification/misspecified_flows
Exception received when installing recursive 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
Exception received when installing recursive 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
Exception received when installing recursive 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
Exception received when installing recursive 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
[Info  - 10:53:14] Searching for source files
[Info  - 10:53:14] Found 7 source files
Background analysis message: analyze
Background analysis message: setConfigOptions
Background analysis message: ensurePartialStubPackages
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: setFileOpened
Background analysis message: analyze
[BG(2)] analyzing: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py ...
[BG(2)]   parsing: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py (17ms)
[BG(2)]   parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 2ms] (88ms)
[BG(2)]   binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/builtins.pyi (36ms)
[BG(2)]   binding: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py (0ms)
[BG(2)]   checking: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py ...
[BG(2)]     parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/typing.pyi [fs read 1ms] (32ms)
[BG(2)]     binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/typing.pyi (10ms)
[BG(2)]     parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi [fs read 0ms] (6ms)
[BG(2)]     binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi (1ms)
[BG(2)]     parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (2ms)
[BG(2)]     binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/typing_extensions.pyi (1ms)
[BG(2)]     parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (1ms)
[BG(2)]     binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/abc.pyi (1ms)
[BG(2)]   checking: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py (86ms)
[BG(2)] analyzing: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py (229ms)
Background analysis message: resumeAnalysis
Background analysis message: invalidateAndForceReanalysis
[Info  - 10:53:15] Searching for source files
[Info  - 10:53:15] Found 12 source files
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: analyze
Background analysis message: invalidateAndForceReanalysis
Background analysis message: invalidateAndForceReanalysis
[Info  - 10:53:15] Searching for source files
[Info  - 10:53:15] Found 12 source files
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: analyze
Background analysis message: invalidateAndForceReanalysis
Background analysis message: analyze
[BG(2)] analyzing: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py ...
[BG(2)]   parsing: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py (74ms)
[BG(2)]   parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/builtins.pyi [fs read 0ms] (49ms)
[BG(2)]   binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/builtins.pyi (23ms)
[BG(2)]   binding: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py (1ms)
[BG(2)]   checking: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py ...
[BG(2)]     parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/typing.pyi [fs read 0ms] (16ms)
[BG(2)]     binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/typing.pyi (6ms)
[BG(2)]     parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/typing_extensions.pyi [fs read 0ms] (1ms)
[BG(2)]     binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/typing_extensions.pyi (1ms)
[BG(2)]     parsing: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/abc.pyi [fs read 0ms] (0ms)
[BG(2)]     binding: /home/dw16200/.vscode/extensions/ms-python.vscode-pylance-2021.8.0/dist/typeshed-fallback/stdlib/abc.pyi (0ms)
[BG(2)]   checking: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py (33ms)
[BG(2)] analyzing: /home/dw16200/Documents/compass/project/misspecification/analysis/delme.py (180ms)
Background analysis message: resumeAnalysis

I am using:
Ubuntu 20.04.2 LTS
pylance v2021.8.0
conda 4.10.1
Python 3.8.10

Doesn't seem to actually break anything that I can tell though...

@jakebailey
Copy link
Member

Correct, it's benign. #1392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for user response Requires more information from user
Projects
None yet
Development

No branches or pull requests

3 participants