coc-pyright seems unable to recognize modules installed by `pip install --editable`
suewonjp opened this issue · 1 comments
suewonjp commented
What's the output of :CocCommand pyright.version
[coc.nvim] coc-pyright 1.1.351 with Pyright 1.1.353
What's the output of :CocCommand workspace.showOutput Pyright
Workspace: /Users/bsw/test/trysomething/jupyter_bridge_kernel
Using python from /Users/bsw/test/trysomething/jupyter_bridge_kernel/venv_3.11.8/bin/python
[Info - 22:16:53.606] Pyright language server 1.1.353 starting
[Info - 22:16:53.606] Server root directory: file:///Users/bsw/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist
[Info - 22:16:53.608] Starting service instance "jupyter_bridge_kernel"
[Info - 22:16:53.621] Setting pythonPath for service "jupyter_bridge_kernel": "/Users/bsw/test/trysomething/jupyter_bridge_kernel/venv_3.11.8/bin/python"
[Info - 22:16:53.621] Loading configuration file at /Users/bsw/test/trysomething/jupyter_bridge_kernel/pyrightconfig.json
[Info - 22:16:53.624] No include entries specified; assuming /Users/bsw/test/trysomething/jupyter_bridge_kernel
[Info - 22:16:53.624] Auto-excluding **/node_modules
[Info - 22:16:53.624] Auto-excluding **/__pycache__
[Info - 22:16:53.624] Auto-excluding **/.*
[Info - 22:16:54.062] Auto-excluding /Users/bsw/test/trysomething/jupyter_bridge_kernel/venv_3.11
[Info - 22:16:54.062] Auto-excluding /Users/bsw/test/trysomething/jupyter_bridge_kernel/venv_3.11.8
[Info - 22:16:54.472] Found 4779 source files
[Error - 22:16:54.611] Sending request textDocument/documentHighlight failed.
Message: request cancelled
Code: -32800
[Error - 22:16:55.203] Sending request textDocument/documentHighlight failed.
Message: request cancelled
Code: -32800
[Error - 22:17:46.673] Sending request textDocument/documentHighlight failed.
Message: request cancelled
Code: -32800
Is this a known limitation?
If so, it's the limitation for pyright or coc-pyright?
fannheyward commented
Sorry for the delay. I didn't test with pip install -e
, but I think it's probably an issue for Pyright to resolve the module.
You can test with VSCode + Pyright/Pylance to check whether it works or not.