You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing issues with integrating the Python Language Server (pylsp) in Neovim while using a Conda virtual environment. Despite configuring pylsp and mypy within Neovim, the language server is unable to locate my local Python package, though running mypy directly in the terminal detects the package without any issues.
The error messages displaying is that : Cannot find implementation or library stub for module named "my_lib"
Environment
Operating System: OS-X / Ubuntu22.04
Neovim Version: v0.10.0 / v0.95
Python Language Server (pylsp) Version: Newest version
Configuration
Here is the relevant part of my Neovim configuration for pylsp:
I expect pylsp to correctly locate and interact with my local Python package within the Conda environment, similar to how mypy operates when run directly in the terminal.
Actual Behavior
The language server does not locate my local Python package, causing issues with linting, type checking, and other features provided by pylsp and mypy.
Steps to Reproduce
create virtual env with conda
Install python-lsp and mypy via pip install "python-lsp-server[all]" pylsp-mypy
activate the virtual env and run nvim
Additional Note
I have verified that the Conda environment is activated when launching Neovim.
I have confirmed that mypy can detect my local packages when it's directly called from terminal by mypy <my_python_file>
The text was updated successfully, but these errors were encountered:
I am experiencing issues with integrating the Python Language Server (
pylsp
) in Neovim while using a Conda virtual environment. Despite configuringpylsp
andmypy
within Neovim, the language server is unable to locate my local Python package, though runningmypy
directly in the terminal detects the package without any issues.The error messages displaying is that :
Cannot find implementation or library stub for module named "my_lib"
Environment
pylsp
) Version: Newest versionConfiguration
Here is the relevant part of my Neovim configuration for
pylsp
:Expected Behavior
I expect pylsp to correctly locate and interact with my local Python package within the Conda environment, similar to how mypy operates when run directly in the terminal.
Actual Behavior
The language server does not locate my local Python package, causing issues with linting, type checking, and other features provided by pylsp and mypy.
Steps to Reproduce
pip install "python-lsp-server[all]" pylsp-mypy
nvim
Additional Note
mypy
can detect my local packages when it's directly called from terminal bymypy <my_python_file>
The text was updated successfully, but these errors were encountered: