-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
mkdocs project and python.terminal.activateEnvironment #22247
Comments
If that's still not activating, please provide the debug logs which can help diagnose the issue:
Output for
|
OK, I see it now. The environment is activated properly even if the command line prompt doesn't indicate it. I may have seen the notification at some point, but can't remember :) . Has the status bar indication been dropped? It's still in the documentation Also, how does it deal with multiple environments? I sometimes like to be able to switch between environments to test with different Python versions. The Create Environment command only seems to allow one environment. FWIW I can still do it manually, I see. |
In my use case it's a "Python" project but the the files I'm editing aren't Python. The status bar only indicates the environment when a .py file is open in the editor. I can create an empty file for that purpose but that seems silly. It would be nice if the status bar showed the extension activation status separate from the file Language Mode. i.e. I'm in a Python project and editing the Readme file, and I open a terminal window to run some example I want to paste in the readme. |
Thanks for getting back.
The doc you pointed out explains
The following setting might just be for you: Let me know if we can do anything else, or any feedback regarding making the notification clearer. |
It works now. For anyone reading this in the future, Thanks for the help; I jump in and out of using these tools (not a daily user) so have missed some of the progress and changes. I'll try to follow the project more closely. Removing the indication from the terminal prompt was probably done for a good reason, I'll humbly try to research that. |
Great, happy to be of help. |
Discussed in #22237
Originally posted by normanlorrain October 16, 2023
I have a workspace with a .venv/ containing Python 3.11 and the mkdocs library for building my web site.
I'd like the environment to be activated when I open a terminal (Powershell, Windows 10) to run mkdocs. It's not activating. I can activate it manually but it would be nice to have it automatic as I think is the intention.
The only enabled extention is Python & Pylance.
python.terminal.activateEnvironment: true
I don't see any errors in the Python extension output.
Edit: by the way, this used to work, a month or so ago.
The text was updated successfully, but these errors were encountered: