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

coc-pyright seems unable to recognize modules installed by pip install --editable #1060

Closed
suewonjp opened this issue Mar 13, 2024 · 1 comment
Assignees

Comments

@suewonjp
Copy link

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
Copy link
Owner

fannheyward commented Mar 20, 2024

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.

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