Skip to content
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

VIRTUAL_ENV_DISABLE_PROMPT is not respected when activating virtual environments #22052

Closed
karrtikr opened this issue Sep 21, 2023 · 5 comments
Closed
Assignees
Labels
area-terminal experimenting Feature is part of an experiment feature-request Request for new features or functionality linux macos verification-needed Verification of issue is requested verified Verification succeeded

Comments

@karrtikr
Copy link

karrtikr commented Sep 21, 2023

Originally posted by @vapopescu in #22037 (comment)

Note that the VIRTUAL_ENV_DISABLE_PROMPT=y environment variable is present, but the virtualenv prompt is not disabled, messing up my zsh theme.

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2023-09-21 10:11:52.875 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-09-21 10:11:52.875 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-09-21 10:11:52.875 [info] Experiment 'pythonSurveyNotification' is active
2023-09-21 10:11:52.875 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2023-09-21 10:11:52.875 [info] Experiment 'pythonTestAdaptercf' is active
2023-09-21 10:11:52.875 [debug] Getting roots
2023-09-21 10:11:52.875 [debug] Getting roots
2023-09-21 10:11:52.875 [debug] Found roots
2023-09-21 10:11:52.875 [debug] Start watching file for changes /home/user/.conda/environments.txt
2023-09-21 10:11:52.875 [debug] Start watching: /home/user/.conda with pattern environments.txt using VSCode API
2023-09-21 10:11:52.875 [debug] Found roots
2023-09-21 10:11:52.875 [debug] Start watching root /home/user/project for globs ["python","*/python","*/bin/python"]
2023-09-21 10:11:52.875 [debug] Start watching: /home/user/project with pattern python using VSCode API
2023-09-21 10:11:52.875 [debug] Start watching: /home/user/project with pattern */python using VSCode API
2023-09-21 10:11:52.875 [debug] Start watching: /home/user/project with pattern */bin/python using VSCode API
2023-09-21 10:11:52.913 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:52.913 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:52.913 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:52.913 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:52.913 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:52.913 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:52.913 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:52.917 [debug] Waiting for test server to start...
2023-09-21 10:11:52.918 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.158 [debug] VS Code was not launched from the command line, not selecting activated interpreter
2023-09-21 10:11:53.161 [info] Test server listening.
2023-09-21 10:11:53.161 [debug] Test server started.
2023-09-21 10:11:53.161 [debug] Testing: Setting up watcher for /home/user/project
2023-09-21 10:11:53.162 [debug] Needed to validate /home/user/project/.venv/bin/python with latest info
2023-09-21 10:11:53.162 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.163 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:53.164 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.164 [debug] Needed to validate /usr/bin/python with latest info
2023-09-21 10:11:53.164 [debug] Resolved /usr/bin/python from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python","sysPrefix":"/usr","ctime":1596192673382,"mtime":1523889078000},"display":"Python 2.7.17 64-bit","version":{"major":2,"minor":7,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"2.7.17 (default, Mar  8 2023, 18:40:28) \n[GCC 7.5.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python","detailedDisplayName":"Python 2.7.17 64-bit"}
2023-09-21 10:11:53.164 [debug] Needed to validate /usr/bin/python3 with latest info
2023-09-21 10:11:53.165 [debug] Resolved /usr/bin/python3 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":1593519761546,"mtime":1593519761546},"display":"Python 3.6.9 64-bit","version":{"major":3,"minor":6,"micro":9,"release":{"level":"final","serial":0},"sysVersion":"3.6.9 (default, Mar 10 2023, 16:46:00) \n[GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3","detailedDisplayName":"Python 3.6.9 64-bit"}
2023-09-21 10:11:53.165 [debug] Needed to validate /usr/bin/python3.8 with latest info
2023-09-21 10:11:53.165 [debug] Resolved /usr/bin/python3.8 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3.8","sysPrefix":"/usr","ctime":1694982051913,"mtime":1639072407000},"display":"Python 3.8.0 64-bit","version":{"major":3,"minor":8,"micro":0,"release":{"level":"final","serial":0},"sysVersion":"3.8.0 (default, Dec  9 2021, 17:53:27) \n[GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python3.8","detailedDisplayName":"Python 3.8.0 64-bit"}
2023-09-21 10:11:53.165 [debug] Needed to validate /usr/local/bin/python3 with latest info
2023-09-21 10:11:53.165 [debug] Resolved /usr/local/bin/python3 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/local/bin/python3","sysPrefix":"/usr/local","ctime":1694532713583,"mtime":1694532713583},"display":"Python 3.11.4 64-bit","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/local/bin/python3","detailedDisplayName":"Python 3.11.4 64-bit"}
2023-09-21 10:11:53.166 [debug] Needed to validate /home/user/project/.venv/bin/python with latest info
2023-09-21 10:11:53.166 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.166 [debug] Needed to validate /usr/local/bin/python3 with latest info
2023-09-21 10:11:53.166 [debug] Resolved /usr/local/bin/python3 from cache: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/local/bin/python3","sysPrefix":"/usr/local","ctime":1694532713583,"mtime":1694532713583},"display":"Python 3.11.4 64-bit","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":["path env var"],"id":"/usr/local/bin/python3","detailedDisplayName":"Python 3.11.4 64-bit"}
2023-09-21 10:11:53.167 [debug] Needed to validate /home/user/project/.venv/bin/python with latest info
2023-09-21 10:11:53.167 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.168 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:53.168 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.168 [debug] Needed to validate /home/user/project/.venv/bin/python with latest info
2023-09-21 10:11:53.168 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.169 [info] Python interpreter path: ./.venv/bin/python
2023-09-21 10:11:53.169 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:53.169 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:53.169 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.286 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:53.286 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.287 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:53.287 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.288 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:53.288 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.298 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.299 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:53.388 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined
2023-09-21 10:11:53.389 [debug] Extension ms-toolsai.jupyter accessed onDidEnvironmentVariablesChange with args: undefined
2023-09-21 10:11:53.390 [debug] Extension ms-toolsai.jupyter accessed getEnvironmentVariables with args: undefined
2023-09-21 10:11:53.391 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2023-09-21 10:11:53.391 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined
2023-09-21 10:11:53.392 [debug] Extension ms-toolsai.jupyter accessed onDidEnvironmentVariablesChange with args: undefined
2023-09-21 10:11:53.393 [debug] Extension ms-toolsai.jupyter accessed onDidChangeEnvironments with args: undefined
2023-09-21 10:11:53.394 [debug] Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath with args: undefined
2023-09-21 10:11:53.395 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2023-09-21 10:11:53.395 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2023-09-21 10:11:53.396 [debug] Extension ms-toolsai.jupyter accessed onDidChangeActiveEnvironmentPath with args: undefined
2023-09-21 10:11:53.397 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"id":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:53.398 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python","id":"/usr/bin/python","executable":{"uri":{"$mid":1,"path":"/usr/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":2,"minor":7,"micro":17,"release":{"level":"final","serial":0},"sysVersion":"2.7.17 (default, Mar  8 2023, 18:40:28) \n[GCC 7.5.0]"},"tools":[]},"id":"/usr/bin/python"}
2023-09-21 10:11:53.398 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python3","id":"/usr/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":6,"micro":9,"release":{"level":"final","serial":0},"sysVersion":"3.6.9 (default, Mar 10 2023, 16:46:00) \n[GCC 8.4.0]"},"tools":[]},"id":"/usr/bin/python3"}
2023-09-21 10:11:53.399 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/local/bin/python3","id":"/usr/local/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr/local"},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"tools":[]},"id":"/usr/local/bin/python3"}
2023-09-21 10:11:53.400 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/bin/python3.8","id":"/usr/bin/python3.8","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3.8","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":8,"micro":0,"release":{"level":"final","serial":0},"sysVersion":"3.8.0 (default, Dec  9 2021, 17:53:27) \n[GCC 8.4.0]"},"tools":[]},"id":"/usr/bin/python3.8"}
2023-09-21 10:11:53.401 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/user/project/.venv/bin/python","id":"/home/user/project/.venv/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/user/project/.venv"},"environment":{"type":"VirtualEnvironment","name":".venv","folderUri":{"$mid":1,"path":"/home/user/project/.venv","scheme":"file"}},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"tools":["Venv"]},"id":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:53.401 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/usr/local/bin/python3","id":"/usr/local/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr/local"},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"tools":[]},"id":"/usr/local/bin/python3"}
2023-09-21 10:11:53.402 [debug] Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath with args: undefined
2023-09-21 10:11:53.403 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"id":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:53.404 [debug] Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath with args: undefined
2023-09-21 10:11:53.405 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"id":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:53.405 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2023-09-21 10:11:53.406 [debug] Extension ms-toolsai.jupyter accessed resolveEnvironment with args: {"internal":{"path":"/home/user/project/.venv/bin/python","id":"/home/user/project/.venv/bin/python","executable":{"uri":{"$mid":1,"fsPath":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/home/user/project/.venv"},"environment":{"type":"VirtualEnvironment","name":".venv","folderUri":{"$mid":1,"path":"/home/user/project/.venv","scheme":"file"}},"version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"tools":["Venv"]},"id":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:53.407 [debug] Extension ms-toolsai.jupyter accessed getEnvironmentVariables with args: undefined
2023-09-21 10:11:53.408 [debug] Extension ms-toolsai.jupyter accessed known with args: undefined
2023-09-21 10:11:53.588 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:53.588 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:53.588 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:53.588 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:53.588 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.588 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:53.589 [debug] Shell path '/usr/bin/zsh', base path '/usr/bin/zsh'
2023-09-21 10:11:53.589 [debug] Shell path identified as shell 'zsh'
2023-09-21 10:11:53.591 [debug] Extension ms-python.isort accessed onDidChangeActiveEnvironmentPath with args: undefined
2023-09-21 10:11:53.592 [debug] Extension ms-python.isort accessed resolveEnvironment with args: {"id":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:53.593 [debug] Extension ms-python.isort accessed getActiveEnvironmentPath with args: undefined
2023-09-21 10:11:53.593 [debug] Extension ms-python.isort accessed getActiveEnvironmentPath with args: undefined
2023-09-21 10:11:53.593 [debug] Extension ms-python.isort accessed getActiveEnvironmentPath with args: undefined
2023-09-21 10:11:53.594 [debug] Extension ms-python.isort accessed resolveEnvironment with args: {"id":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:53.594 [debug] Extension ms-python.isort accessed resolveEnvironment with args: {"id":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:53.950 [debug] Searching for conda.
2023-09-21 10:11:54.251 [debug] Probing conda binary: conda
2023-09-21 10:11:54.276 [debug] Clearing context for python dependencies not installed: /home/user/project/module/__main__.py
2023-09-21 10:11:54.277 [debug] Dump environment variables {
    "LC_MEASUREMENT": "en_US.UTF-8",
    "SSH_CONNECTION": "192.168.1.100 65101 192.168.1.101 22",
    "LC_PAPER": "en_US.UTF-8",
    "LC_MONETARY": "en_US.UTF-8",
    "LANG": "en_US.UTF-8",
    "OLDPWD": "/home/user",
    "LC_NAME": "en_US.UTF-8",
    "XDG_SESSION_ID": "1620",
    "USER": "user",
    "PWD": "/home/user",
    "HOME": "/home/user",
    "SSH_CLIENT": "192.168.1.100 65101 22",
    "LC_ADDRESS": "en_US.UTF-8",
    "LC_NUMERIC": "en_US.UTF-8",
    "MAIL": "/var/mail/user",
    "SHELL": "/bin/zsh",
    "SHLVL": "2",
    "LC_TELEPHONE": "en_US.UTF-8",
    "VSCODE_AGENT_FOLDER": "/home/user/.vscode-server",
    "LOGNAME": "user",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1001/bus",
    "XDG_RUNTIME_DIR": "/run/user/1001",
    "LC_IDENTIFICATION": "en_US.UTF-8",
    "LC_TIME": "en_US.UTF-8",
    "_": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "ZSH": "/home/user/.oh-my-zsh",
    "PAGER": "less",
    "LESS": "-R",
    "LSCOLORS": "Gxfxcxdxbxegedabagacad",
    "LS_COLORS": "",
    "VIRTUAL_ENV_DISABLE_PROMPT": "y",
    "EDITOR": "vim",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "BROWSER": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/bin/helpers/browser.sh",
    "VSCODE_CWD": "/home/user",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/1001/vscode-ipc-3ea6abea-6341-40bb-82fe-7e5c93f886c1.sock",
    "PATH": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/bin/remote-cli:/home/user/scripts:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/installs/mips/toolchain/x86-linux2/bin:/usr/local/installs/powerpc/toolchain/x86-linux2/bin"
}
2023-09-21 10:11:54.289 [info] > conda info --json
2023-09-21 10:11:54.291 [debug] Failed to spawn conda binary conda [Error: spawn conda ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:283:19)
	at onErrorNT (node:internal/child_process:476:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn conda',
  path: 'conda',
  spawnargs: [ 'info', '--json' ]
}
2023-09-21 10:11:54.293 [debug] Couldn't locate the conda binary.
2023-09-21 10:11:54.295 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:54.295 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:54.295 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:54.367 [debug] Clearing context for python dependencies not installed: /home/user/project/module/__main__.py
2023-09-21 10:11:54.479 [debug] Activation Commands received source /home/user/project/.venv/bin/activate for shell /usr/bin/zsh
2023-09-21 10:11:54.479 [debug] Has Custom Env Vars
2023-09-21 10:11:54.479 [debug] Activating Environment to capture Environment variables, . /home/user/project/.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/user/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/printEnvVariables.py
2023-09-21 10:11:54.479 [debug] Shell path '/usr/bin/zsh', base path '/usr/bin/zsh'
2023-09-21 10:11:54.479 [debug] Shell path identified as shell 'zsh'
2023-09-21 10:11:54.479 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/printEnvVariables.py
2023-09-21 10:11:54.479 [info] shell: zsh
2023-09-21 10:11:54.479 [debug] Shell Exec: . /home/user/project/.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/user/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/printEnvVariables.py with options: {
    "env": {
        "LC_MEASUREMENT": "en_US.UTF-8",
        "SSH_CONNECTION": "192.168.1.100 65101 192.168.1.101 22",
        "LC_PAPER": "en_US.UTF-8",
        "LC_MONETARY": "en_US.UTF-8",
        "LANG": "en_US.UTF-8",
        "OLDPWD": "/home/user",
        "LC_NAME": "en_US.UTF-8",
        "XDG_SESSION_ID": "1620",
        "USER": "user",
        "PWD": "/home/user",
        "HOME": "/home/user",
        "SSH_CLIENT": "192.168.1.100 65101 22",
        "LC_ADDRESS": "en_US.UTF-8",
        "LC_NUMERIC": "en_US.UTF-8",
        "MAIL": "/var/mail/user",
        "SHELL": "/bin/zsh",
        "SHLVL": "2",
        "LC_TELEPHONE": "en_US.UTF-8",
        "VSCODE_AGENT_FOLDER": "/home/user/.vscode-server",
        "LOGNAME": "user",
        "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1001/bus",
        "XDG_RUNTIME_DIR": "/run/user/1001",
        "LC_IDENTIFICATION": "en_US.UTF-8",
        "LC_TIME": "en_US.UTF-8",
        "_": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node",
        "VSCODE_HANDLES_SIGPIPE": "true",
        "ZSH": "/home/user/.oh-my-zsh",
        "PAGER": "less",
        "LESS": "-R",
        "LSCOLORS": "Gxfxcxdxbxegedabagacad",
        "LS_COLORS": "",
        "VIRTUAL_ENV_DISABLE_PROMPT": "y",
        "EDITOR": "vim",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
        "BROWSER": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/bin/helpers/browser.sh",
        "VSCODE_CWD": "/home/user",
        "ELECTRON_RUN_AS_NODE": "1",
        "VSCODE_IPC_HOOK_CLI": "/run/user/1001/vscode-ipc-3ea6abea-6341-40bb-82fe-7e5c93f886c1.sock",
        "PATH": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/bin/remote-cli:/home/user/scripts:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/installs/mips/toolchain/x86-linux2/bin:/usr/local/installs/powerpc/toolchain/x86-linux2/bin",
        "PYTHONWARNINGS": "ignore",
        "PYTHONUNBUFFERED": "1",
        "PYTHONIOENCODING": "utf-8"
    },
    "shell": "/usr/bin/zsh",
    "timeout": 30000,
    "maxBuffer": 1000000,
    "throwOnStdErr": false,
    "encoding": "utf8"
}
2023-09-21 10:11:54.485 [debug] Extension ms-python.vscode-pylance accessed onDidChangeActiveEnvironmentPath with args: undefined
2023-09-21 10:11:54.487 [debug] Extension ms-python.vscode-pylance accessed onDidEnvironmentVariablesChange with args: undefined
2023-09-21 10:11:54.510 [debug] Shell path '/usr/bin/zsh', base path '/usr/bin/zsh'
2023-09-21 10:11:54.510 [debug] Shell path identified as shell 'zsh'
2023-09-21 10:11:54.510 [info] > /usr/bin/python ~/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/printEnvVariables.py
2023-09-21 10:11:54.510 [info] shell: zsh
2023-09-21 10:11:54.510 [debug] Shell Exec: /usr/bin/python /home/user/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/printEnvVariables.py with options: {
    "shell": "/usr/bin/zsh",
    "timeout": 30000,
    "maxBuffer": 1000000,
    "throwOnStdErr": false,
    "encoding": "utf8",
    "env": {
        "LC_MEASUREMENT": "en_US.UTF-8",
        "SSH_CONNECTION": "192.168.1.100 65101 192.168.1.101 22",
        "LC_PAPER": "en_US.UTF-8",
        "LC_MONETARY": "en_US.UTF-8",
        "LANG": "en_US.UTF-8",
        "OLDPWD": "/home/user",
        "LC_NAME": "en_US.UTF-8",
        "XDG_SESSION_ID": "1620",
        "USER": "user",
        "PWD": "/home/user",
        "HOME": "/home/user",
        "SSH_CLIENT": "192.168.1.100 65101 22",
        "LC_ADDRESS": "en_US.UTF-8",
        "LC_NUMERIC": "en_US.UTF-8",
        "MAIL": "/var/mail/user",
        "SHELL": "/bin/zsh",
        "SHLVL": "2",
        "LC_TELEPHONE": "en_US.UTF-8",
        "VSCODE_AGENT_FOLDER": "/home/user/.vscode-server",
        "LOGNAME": "user",
        "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1001/bus",
        "XDG_RUNTIME_DIR": "/run/user/1001",
        "PATH": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/bin/remote-cli:/home/user/scripts:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/installs/mips/toolchain/x86-linux2/bin:/usr/local/installs/powerpc/toolchain/x86-linux2/bin",
        "LC_IDENTIFICATION": "en_US.UTF-8",
        "LC_TIME": "en_US.UTF-8",
        "_": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node",
        "VSCODE_HANDLES_SIGPIPE": "true",
        "ZSH": "/home/user/.oh-my-zsh",
        "PAGER": "less",
        "LESS": "-R",
        "LSCOLORS": "Gxfxcxdxbxegedabagacad",
        "LS_COLORS": "",
        "VIRTUAL_ENV_DISABLE_PROMPT": "y",
        "EDITOR": "vim",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
        "BROWSER": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/bin/helpers/browser.sh",
        "VSCODE_CWD": "/home/user",
        "ELECTRON_RUN_AS_NODE": "1",
        "VSCODE_IPC_HOOK_CLI": "/run/user/1001/vscode-ipc-3ea6abea-6341-40bb-82fe-7e5c93f886c1.sock",
        "PYTHONUNBUFFERED": "1",
        "PYTHONIOENCODING": "utf-8"
    }
}
2023-09-21 10:11:54.525 [debug] Shell path '/usr/bin/zsh', base path '/usr/bin/zsh'
2023-09-21 10:11:54.526 [debug] Shell path identified as shell 'zsh'
2023-09-21 10:11:54.526 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:54.526 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:54.526 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:54.526 [debug] Prepending environment variable PATH in collection with /home/user/project/.venv/bin:
2023-09-21 10:11:54.526 [debug] Setting environment variable VIRTUAL_ENV in collection to /home/user/project/.venv
2023-09-21 10:11:54.526 [debug] Prepending environment variable PS1 in collection with (.venv) 
2023-09-21 10:11:54.526 [debug] Shell path '/usr/bin/zsh', base path '/usr/bin/zsh'
2023-09-21 10:11:54.526 [debug] Shell path identified as shell 'zsh'
2023-09-21 10:11:54.526 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:54.526 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:54.527 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:54.788 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:54.788 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:54.789 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:54.789 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:54.789 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:54.789 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:54.838 [debug] Clearing context for python dependencies not installed: /home/user/project/module/__main__.py
2023-09-21 10:11:55.059 [debug] Activation Commands received source /home/user/project/.venv/bin/activate for shell bash
2023-09-21 10:11:55.059 [debug] Has Custom Env Vars
2023-09-21 10:11:55.060 [debug] Activating Environment to capture Environment variables, . /home/user/project/.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/user/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/printEnvVariables.py
2023-09-21 10:11:55.060 [debug] Shell path 'bash', base path 'bash'
2023-09-21 10:11:55.060 [debug] Shell path identified as shell 'bash'
2023-09-21 10:11:55.060 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/printEnvVariables.py
2023-09-21 10:11:55.060 [info] shell: bash
2023-09-21 10:11:55.060 [debug] Shell Exec: . /home/user/project/.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/user/.vscode-server/extensions/ms-python.python-2023.16.0/pythonFiles/printEnvVariables.py with options: {
    "env": {
        "LC_MEASUREMENT": "en_US.UTF-8",
        "SSH_CONNECTION": "192.168.1.100 65101 192.168.1.101 22",
        "LC_PAPER": "en_US.UTF-8",
        "LC_MONETARY": "en_US.UTF-8",
        "LANG": "en_US.UTF-8",
        "OLDPWD": "/home/user",
        "LC_NAME": "en_US.UTF-8",
        "XDG_SESSION_ID": "1620",
        "USER": "user",
        "PWD": "/home/user",
        "HOME": "/home/user",
        "SSH_CLIENT": "192.168.1.100 65101 22",
        "LC_ADDRESS": "en_US.UTF-8",
        "LC_NUMERIC": "en_US.UTF-8",
        "MAIL": "/var/mail/user",
        "SHELL": "/bin/zsh",
        "SHLVL": "2",
        "LC_TELEPHONE": "en_US.UTF-8",
        "VSCODE_AGENT_FOLDER": "/home/user/.vscode-server",
        "LOGNAME": "user",
        "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1001/bus",
        "XDG_RUNTIME_DIR": "/run/user/1001",
        "LC_IDENTIFICATION": "en_US.UTF-8",
        "LC_TIME": "en_US.UTF-8",
        "_": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/node",
        "VSCODE_HANDLES_SIGPIPE": "true",
        "ZSH": "/home/user/.oh-my-zsh",
        "PAGER": "less",
        "LESS": "-R",
        "LSCOLORS": "Gxfxcxdxbxegedabagacad",
        "LS_COLORS": "",
        "VIRTUAL_ENV_DISABLE_PROMPT": "y",
        "EDITOR": "vim",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
        "BROWSER": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/bin/helpers/browser.sh",
        "VSCODE_CWD": "/home/user",
        "ELECTRON_RUN_AS_NODE": "1",
        "VSCODE_IPC_HOOK_CLI": "/run/user/1001/vscode-ipc-3ea6abea-6341-40bb-82fe-7e5c93f886c1.sock",
        "PATH": "/home/user/.vscode-server/bin/abd2f3db4bdb28f9e95536dfa84d8479f1eb312d/bin/remote-cli:/home/user/scripts:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/installs/mips/toolchain/x86-linux2/bin:/usr/local/installs/powerpc/toolchain/x86-linux2/bin",
        "PYTHONWARNINGS": "ignore",
        "PYTHONUNBUFFERED": "1",
        "PYTHONIOENCODING": "utf-8"
    },
    "shell": "bash",
    "timeout": 30000,
    "maxBuffer": 1000000,
    "throwOnStdErr": false,
    "encoding": "utf8"
}
2023-09-21 10:11:55.236 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:55.236 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:55.236 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:55.286 [debug] Clearing context for python dependencies not installed: /home/user/project/module/__main__.py
2023-09-21 10:11:55.508 [info] Starting Pylance language server.
2023-09-21 10:11:55.510 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:55.510 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:55.510 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:55.511 [debug] [object Object]. Shell identified as undefined 
2023-09-21 10:11:55.511 [debug] Shell path '/usr/bin/zsh', base path '/usr/bin/zsh'
2023-09-21 10:11:55.511 [debug] Shell path identified as shell 'zsh'
2023-09-21 10:11:55.511 [debug] Terminal shell path '/usr/bin/zsh' identified as shell 'zsh'
2023-09-21 10:11:55.511 [debug] [object Object]. Shell identified as zsh 
2023-09-21 10:11:55.511 [debug] Shell identified as 'zsh'
2023-09-21 10:11:55.511 [debug] Cached data exists KeyPrefix=Cache_Method_Output_b._selectIfLaunchedViaActivatedEnv-Args=true
2023-09-21 10:11:55.511 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:55.511 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:55.512 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:55.512 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"ssh-remote_WORKSPACE_FOLDER_INTERPRETER_PATH_/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:55.512 [debug] Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/user/project"-Arg-Separator-undefined
2023-09-21 10:11:55.516 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:55.516 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:55.517 [debug] Found cached env for /home/user/project/.venv/bin/python
2023-09-21 10:11:55.517 [debug] Resolved /home/user/project/.venv/bin/python from cache: {"name":".venv","location":"/home/user/project/.venv","kind":"virt-venv","executable":{"filename":"/home/user/project/.venv/bin/python","sysPrefix":"/home/user/project/.venv","ctime":1687359691262,"mtime":1687359691262},"searchLocation":{"$mid":1,"fsPath":"/home/user/project/.venv","path":"/home/user/project/.venv","scheme":"vscode-remote"},"display":"Python 3.11.4 ('.venv': venv)","version":{"major":3,"minor":11,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.11.4 (main, Sep 12 2023, 18:31:39) [GCC 8.4.0]"},"arch":3,"distro":{"org":""},"source":[],"type":"Virtual","id":"/home/user/project/.venv/bin/python","detailedDisplayName":"Python 3.11.4 ('.venv': venv)"}
2023-09-21 10:11:55.535 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2023-09-21 10:11:55.536 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:55.536 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2023-09-21 10:11:55.538 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/user/project/.venv/bin/python","path":"/home/user/project/.venv/bin/python"}
2023-09-21 10:11:55.539 [debug] Extension ms-python.vscode-pylance accessed getEnvironmentVariables with args: undefined
2023-09-21 10:11:57.280 [debug] Clearing context for python dependencies not installed: /home/user/project/module/__main__.py

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 21, 2023
@karrtikr karrtikr added the experimenting Feature is part of an experiment label Sep 21, 2023
@karrtikr
Copy link
Author

Related #21959

@karrtikr
Copy link
Author

@vapopescu Fix should be out in the pre-release version of the extension, use the following to try it out:

image

@karrtikr karrtikr added this to the September 2023 milestone Sep 22, 2023
@karrtikr karrtikr added the info-needed Issue requires more information from poster label Sep 22, 2023
@karrtikr karrtikr added feature-request Request for new features or functionality area-terminal verification-needed Verification of issue is requested needs PR Ready to be worked on and removed info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team labels Sep 25, 2023
@github-actions github-actions bot removed the needs PR Ready to be worked on label Sep 25, 2023
@bhavyaus bhavyaus added verification-steps-needed Steps to verify are needed for verification verification-needed Verification of issue is requested and removed verification-needed Verification of issue is requested labels Sep 26, 2023
@karrtikr
Copy link
Author

karrtikr commented Sep 27, 2023

Activate.ps1 respects VIRTUAL_ENV_DISABLE_PROMPT, but strangely not activate.bat. Hence this is to be verified on any shells other than cmd, or Unix platforms in general.

@karrtikr
Copy link
Author

Created issue: python/cpython#109940.

@karrtikr
Copy link
Author

karrtikr commented Sep 27, 2023

Verification steps:

  • Use bash on Unix
  • Opt into experiment in User settings and close VS Code:
"python.experiments.optInto": ["pythonTerminalEnvVarActivation"]
  • Set VIRTUAL_ENV_DISABLE_PROMPT to 1 and launch VS Code using code . command.
  • Select a venv created using python -m venv .venv command (Python: Select Interpreter)
  • Create a new terminal and make sure (.venv) does not appear in the terminal prompt.

@karrtikr karrtikr removed the verification-steps-needed Steps to verify are needed for verification label Sep 27, 2023
@amunger amunger added the verified Verification succeeded label Sep 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal experimenting Feature is part of an experiment feature-request Request for new features or functionality linux macos verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants