-
Notifications
You must be signed in to change notification settings - Fork 22
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
${venv:env} does not actually set the Python interpreter to the virtualenv one #945
Comments
Actually, printing |
It sounds like maybe the configuration option is not being applied... a common theme around here at the moment! 😅 A few questions / things to check
If you could share some of the debug logs (enabled by setting For example, this is what I see when using
Another useful section for this situation is where esbonio shows you all the configuration values it has loaded from various sources Example
|
It's in pyproject.toml.
Nope, running on my local /home. A full debug log from a clean Reload Window is here: https://gist.github.com/Fuyukai/cfe78713940f0b28b5b6e7d65e0178fa There's some interesting lines near the bottom:
It looks like the Sphinx config is losing the |
Thanks for sharing the whole thing! I've not digested it all yet, however I am very surprised to see this almost at the start of the log
There is no way the client should be created that soon! Edit: That might have been an over-reaction, I forgot that the server captures all log messages during startup and re-plays them once it has configured it's logging setup. But you are right, the |
I see what's happening - can't believe I didn't catch this when I was doing my testing 🤦 The server converts So when it runs Sphinx, it's using the global interpreter rather than the venv, and I've been able to reproduce your issue However, using an absolute path e.g. |
Running with the absolute path works fine; I mentioned it in the initial issue because it didn't cause the issue. Apologies if that wasn't clear. |
Expected behavior
Setting the following:
Will cause esbonio to pick up the paths of the virtual environment automatically.
Actual behavior
If I modify
util.py
to print sys.path first (notice the incorrect numbers) there's nothing that has been added from the virtual environment at all:If I set the command to the absolute path, then it prints the correct path with the virtual environment paths:
The text was updated successfully, but these errors were encountered: