Replies: 3 comments
-
|
That's desired behavior, serena uses its own dependencies whenever feasible. Why was that a problem for you? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Serena uses its own Python environment which is managed by uv; this environment is also used to run pyright. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Serena uses its own Python environment which is managed by uv;
That is great.
this environment is also used to run pyright.
But I think this is a problem.
Your local Python installations should be completely decoupled from Serena's. Use uv.
My serena isn't installed by uv and my project python is completely
decoupled from serena as well.
It is fine for both serena's design and my usage.
That's desired behavior, serena uses its own dependencies whenever feasible. Why was that a problem for you?
The problem is "this environment is also used to run pyright."
There are three different python environment now.
1. serena and its dependencies (without pyright)
2. pyright only
3. local project env
If 1 and 2 use same python environment, non-python projects will see
pyright as well, which isn't my expection.
I want serena can be run anywhere, and lsp is configured and
installed for each project's own isolation.
There is a flake.nix in this project. Like its package, serena with its
own python environment to run without pyright.
And each project has their own development environment (either python or
non-python).
There should be an isolated pyright for each python project that cannot
be seen by others where serena's python environment cannot see pyright as well.
|
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.
-
I'm not sure this is a bug or a config issue I miss, so a discussion is posted here.
My serena is lanuched with some environments like
And in my python projects, serena uses the python for serena, not python in my venv, because
PATHhas a higher priority for serena, and other enviroment variables such as venv activation is ignored here.That causes serena use wrong python to import pyright.
By the way, I also want pyright installed seperately instead of current python environments, but serena uses a fix coded method to load pyright with current running python.
Beta Was this translation helpful? Give feedback.
All reactions