Have ty recognize the .venv packages in a subdirectory #158
Replies: 1 comment
-
|
Putting a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm not sure if this is a bug or something else is misconfigured. I have a project, where the .venv and pyproject.toml is in a subdirectory (monorepo, all python related stuff resides in
backend/.) The project interpreter is set to uv and correctly points to thebackend/.venv). All interpreter paths are correctly set and with stock pycharm, everything works as intended.ty/Ruff, both with the native language server and LSP4J fail to resolve imported packages from the virtual environment. How can I resolve that?
Thank you for your work!
/e: In the LSP log it reports the wrong python version, so I guess the issue is, that the LSP Server is started in the project root and is not aware of the .venv:
2025-10-30 09:34:58.324 ERR 2025-10-30 09:34:58.324879700 INFO Defaulting to python-platform
win322025-10-30 09:34:58.324 ERR 2025-10-30 09:34:58.325428000 INFO Python version: Python 3.13, platform: win32
Beta Was this translation helpful? Give feedback.
All reactions