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

Terminal activate venv with prefix of folder name, not my setting prefix. And I can't actually deactivate it. #22895

Closed
WiC-htao opened this issue Feb 10, 2024 · 8 comments
Assignees
Labels
experimenting Feature is part of an experiment triage-needed Needs assignment to the proper sub-team

Comments

@WiC-htao
Copy link

WiC-htao commented Feb 10, 2024

Type: Bug

Behaviour

Expected vs. Actual

When I startup or open a new terminal in vscode, it activate venv of folder with my chosen interpreter, but with prefix of floder name(.env) not my setting(development), and i can re-activate (development) venv. It looks really wired. And when I deactivate the venv, it seems like re-activating a "default" terminal, for when I ctrl+D, it back to (.env) venv.

Btw after I disable python>Terminal: Activate Environment in settings, venv(.env) is still activitated when I open a Terminal. I'm not sure if it's a bug or I misunderstand this term.

Steps to reproduce:

  1. startup or open a new terminal under a folder with a venv chosen as the interpreter.
  2. deactivate activated venv

eba is my alias of source .env/bin/activate
image

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.8
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

No current configuration is defined in the workspace state. Assuming 'Default'.
No target defined in the workspace state. Assuming 'Default'.
Dropping various extension output files at /home/htao_ubuntu/.config/Code/User/workspaceStorage/20e73bb9fa14a8f202a7fbfc72d8feae/ms-vscode.makefile-tools
Logging level: Normal
Configurations cached at /home/htao_ubuntu/.config/Code/User/workspaceStorage/20e73bb9fa14a8f202a7fbfc72d8feae/ms-vscode.makefile-tools/configurationCache.log
No path to the makefile is defined in the settings file.
No folder path to the makefile is defined in the settings file.
Always pre-configure: false
Always post-configure: false
Dry-run switches: '--always-make', '--keep-going', '--print-directory'
No current launch configuration is set in the workspace state.
Default launch configuration: MIMode = undefined,
                    miDebuggerPath = undefined,
                    stopAtEntry = undefined,
                    symbolSearchPath = undefined
Configure on open: true
Configure on edit: true
Configure after command: true
Only .PHONY targets: false
Save before build or configure: true
Build before launch: true
Clear output before build: true
Ignore directory commands: true
compile_commands.json path: null
Deduced command 'make ' for configuration "Default"
The makefile entry point was not found. Make sure it exists at the location defined by makefile.makefilePath, makefile.configurations[].makefilePath, makefile.makeDirectory, makefile.configurations[].makeDirectoryor in the root of the workspace.

User Settings


languageServer: "Pylance"

Extension version: 2024.0.1
VS Code version: Code 1.86.1 (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:07:19.849Z)
OS version: Linux x64 6.5.0-17-generic
Modes:

System Info
Item Value
CPUs AMD Ryzen 9 7950X3D 16-Core Processor (32 x 3138)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 0, 0, 0
Memory (System) 93.48GB (88.27GB free)
Process Argv . --crash-reporter-id 4a154e1f-0549-4499-8f45-d96bbae1fee0
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
fegfb526:30961430
7j2b6412:30949929

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 10, 2024
@karrtikr karrtikr added the experimenting Feature is part of an experiment label Feb 12, 2024
@karrtikr
Copy link

Please provide the debug logs which can help diagnose the issue:

  • Run Developer: Set log level command
  • Select Trace
  • Run Developer: Reload Window command
  • Provide the output:
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Feb 12, 2024
@WiC-htao
Copy link
Author

WiC-htao commented Feb 16, 2024

Please provide the debug logs which can help diagnose the issue:

  • Run Developer: Set log level command
  • Select Trace
  • Run Developer: Reload Window command
  • Provide the output:

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

2024-02-16 14:59:06.726 [info] Experiment 'pythonaacf' is active
2024-02-16 14:59:06.726 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-02-16 14:59:06.726 [info] Experiment 'pythonREPLSmartSend' is active
2024-02-16 14:59:06.726 [info] Experiment 'pythonSurveyNotificationcf' is active
2024-02-16 14:59:06.726 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-02-16 14:59:06.726 [info] Experiment 'pythonTestAdapter' is active
2024-02-16 14:59:06.735 [info] Default formatter is set to ms-python.black-formatter for workspace /home/htao_ubuntu/WizardsInCouch/dev
2024-02-16 14:59:06.747 [info] VS Code was launched from an activated environment: '.env', selecting it as the interpreter for workspace.
2024-02-16 14:59:06.748 [info] Test server listening.
2024-02-16 14:59:06.878 [info] Python interpreter path: ./.env/bin/python
2024-02-16 14:59:06.938 [error] Custom .env is likely not pointing to a valid file [EntryIsADirectory (FileSystemError): Error: EISDIR: illegal operation on a directory, read
	at E.e (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:149:6267)
	at Object.readFile (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:149:4464)
	at async b.readText (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:192205)
	at async f.parseFile (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:318368)
	at async v._getEnvironmentVariables (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:323051)
	at async v.getEnvironmentVariables (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:322218)
	at async u.create (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:213330)
	at async k.getActivatedEnvironmentVariablesImpl (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:394477)] {
  code: 'FileIsADirectory'
}
2024-02-16 14:59:06.991 [info] > . ./.env/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-16 14:59:06.991 [info] shell: bash
2024-02-16 14:59:07.008 [info] > /bin/python3.11 ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-16 14:59:07.008 [info] shell: bash
2024-02-16 14:59:07.022 [info] Send text to terminal: /bin/python3.11 /home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariablesToFile.py /home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/deactivate/bash/envVars.txt
2024-02-16 14:59:07.783 [info] Starting Pylance language server.
2024-02-16 15:00:20.571 [info] Experiment 'pythonaacf' is active
2024-02-16 15:00:20.571 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-02-16 15:00:20.571 [info] Experiment 'pythonREPLSmartSend' is active
2024-02-16 15:00:20.571 [info] Experiment 'pythonSurveyNotificationcf' is active
2024-02-16 15:00:20.571 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-02-16 15:00:20.571 [info] Experiment 'pythonTestAdapter' is active
2024-02-16 15:00:20.571 [debug] Getting roots
2024-02-16 15:00:20.571 [debug] Getting roots
2024-02-16 15:00:20.571 [debug] Found roots
2024-02-16 15:00:20.571 [debug] Start watching file for changes /home/htao_ubuntu/.conda/environments.txt
2024-02-16 15:00:20.571 [debug] Start watching: /home/htao_ubuntu/.conda with pattern environments.txt using VSCode API
2024-02-16 15:00:20.571 [debug] Found roots
2024-02-16 15:00:20.571 [debug] Start watching root /home/htao_ubuntu/WizardsInCouch/dev for globs ["python","*/python","*/bin/python"]
2024-02-16 15:00:20.571 [debug] Start watching: /home/htao_ubuntu/WizardsInCouch/dev with pattern python using VSCode API
2024-02-16 15:00:20.571 [debug] Start watching: /home/htao_ubuntu/WizardsInCouch/dev with pattern */python using VSCode API
2024-02-16 15:00:20.571 [debug] Start watching: /home/htao_ubuntu/WizardsInCouch/dev with pattern */bin/python using VSCode API
2024-02-16 15:00:20.579 [info] Default formatter is set to ms-python.black-formatter for workspace /home/htao_ubuntu/WizardsInCouch/dev
2024-02-16 15:00:20.580 [debug] Waiting for test server to start...
2024-02-16 15:00:20.581 [debug] VS Code was not launched from the command line
2024-02-16 15:00:20.581 [info] VS Code was launched from an activated environment: '.env', selecting it as the interpreter for workspace.
2024-02-16 15:00:20.582 [info] Test server listening.
2024-02-16 15:00:20.582 [debug] Test server started.
2024-02-16 15:00:20.582 [debug] Testing: Setting up watcher for /home/htao_ubuntu/WizardsInCouch/dev
2024-02-16 15:00:20.582 [debug] Needed to validate /home/htao_ubuntu/WizardsInCouch/dev/.env with latest info
2024-02-16 15:00:20.584 [debug] Needed to validate /home/htao_ubuntu/WizardsInCouch/dev/.env with latest info
2024-02-16 15:00:20.584 [info] Python interpreter path: ./.env/bin/python
2024-02-16 15:00:20.584 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.816 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.816 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.817 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.831 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.831 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.832 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.834 [debug] Extension ms-python.black-formatter accessed onDidChangeActiveEnvironmentPath with args: undefined
2024-02-16 15:00:20.835 [debug] Extension ms-python.black-formatter accessed getActiveEnvironmentPath with args: undefined
2024-02-16 15:00:20.835 [debug] Extension ms-python.black-formatter accessed resolveEnvironment with args: {"id":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python","path":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python"}
2024-02-16 15:00:20.835 [debug] Extension ms-python.black-formatter accessed getActiveEnvironmentPath with args: undefined
2024-02-16 15:00:20.835 [debug] Extension ms-python.black-formatter accessed resolveEnvironment with args: {"id":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python","path":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python"}
2024-02-16 15:00:20.836 [debug] Extension ms-python.black-formatter accessed getActiveEnvironmentPath with args: undefined
2024-02-16 15:00:20.836 [debug] Extension ms-python.black-formatter accessed resolveEnvironment with args: {"id":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python","path":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python"}
2024-02-16 15:00:20.848 [error] Custom .env is likely not pointing to a valid file [EntryIsADirectory (FileSystemError): Error: EISDIR: illegal operation on a directory, read
	at E.e (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:149:6267)
	at Object.readFile (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:149:4464)
	at async b.readText (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:192205)
	at async f.parseFile (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:318368)
	at async v._getEnvironmentVariables (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:323051)
	at async v.getEnvironmentVariables (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:322218)
	at async u.create (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:213330)
	at async k.getActivatedEnvironmentVariablesImpl (/home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/out/client/extension.js:2:394477)] {
  code: 'FileIsADirectory'
}
2024-02-16 15:00:20.848 [debug] Dump environment variables {
    "ALL_PROXY": "socks://127.0.0.1:7890/",
    "CALENDARPATH": ":/home/htao_ubuntu/WizardsInCouch/db/calendar/",
    "CHROME_DESKTOP": "code-url-handler.desktop",
    "COLORTERM": "truecolor",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
    "DESKTOP_SESSION": "ubuntu",
    "DISPLAY": ":0",
    "ELECTRON_NO_ATTACH_CONSOLE": "1",
    "GDK_BACKEND": "x11",
    "GDMSESSION": "ubuntu",
    "GNOME_DESKTOP_SESSION_ID": "this-is-deprecated",
    "GNOME_SETUP_DISPLAY": ":1",
    "GNOME_SHELL_SESSION_MODE": "ubuntu",
    "GNOME_TERMINAL_SCREEN": "/org/gnome/Terminal/screen/2330f84c_cb98_42ac_b7b7_3944e67bffd4",
    "GNOME_TERMINAL_SERVICE": ":1.148",
    "GTK_MODULES": "gail:atk-bridge",
    "HOME": "/home/htao_ubuntu",
    "HTTPS_PROXY": "http://127.0.0.1:7890/",
    "HTTP_PROXY": "http://127.0.0.1:7890/",
    "IM_CONFIG_PHASE": "1",
    "LANG": "en_US.UTF-8",
    "LC_ADDRESS": "zh_CN.UTF-8",
    "LC_IDENTIFICATION": "zh_CN.UTF-8",
    "LC_MEASUREMENT": "zh_CN.UTF-8",
    "LC_MONETARY": "zh_CN.UTF-8",
    "LC_NAME": "zh_CN.UTF-8",
    "LC_NUMERIC": "zh_CN.UTF-8",
    "LC_PAPER": "zh_CN.UTF-8",
    "LC_TELEPHONE": "zh_CN.UTF-8",
    "LC_TIME": "zh_CN.UTF-8",
    "LESSCLOSE": "/usr/bin/lesspipe %s %s",
    "LESSOPEN": "| /usr/bin/lesspipe %s",
    "LOGNAME": "htao_ubuntu",
    "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",
    "NO_PROXY": "localhost,127.0.0.1,::1",
    "OLDPWD": "/home/htao_ubuntu/WizardsInCouch/db",
    "ORIGINAL_XDG_CURRENT_DESKTOP": "ubuntu:GNOME",
    "PS1": "(development) \\[\\e]0;\\u@\\h: \\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ ",
    "PWD": "/home/htao_ubuntu/WizardsInCouch/dev",
    "QT_ACCESSIBILITY": "1",
    "QT_IM_MODULE": "ibus",
    "SESSION_MANAGER": "local/htao-UB:@/tmp/.ICE-unix/2083,unix/htao-UB:/tmp/.ICE-unix/2083",
    "SHELL": "/bin/bash",
    "SHLVL": "1",
    "SSH_AGENT_LAUNCHER": "gnome-keyring",
    "SSH_AUTH_SOCK": "/run/user/1000/keyring/ssh",
    "SYSTEMD_EXEC_PID": "2104",
    "TERM": "xterm-256color",
    "UNIVPATH": ":/home/htao_ubuntu/WizardsInCouch/db/univ/",
    "USER": "htao_ubuntu",
    "USERNAME": "htao_ubuntu",
    "VIRTUAL_ENV": "/home/htao_ubuntu/WizardsInCouch/dev/.env",
    "VIRTUAL_ENV_PROMPT": "(development) ",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_CLI": "1",
    "VSCODE_CODE_CACHE_PATH": "/home/htao_ubuntu/.config/Code/CachedData/31c37ee8f63491495ac49e43b8544550fbae4533",
    "VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
    "VSCODE_CWD": "/home/htao_ubuntu/WizardsInCouch/dev",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_IPC_HOOK": "/run/user/1000/vscode-b8888966-1.86-main.sock",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"osLocale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
    "VSCODE_PID": "18655",
    "VTE_VERSION": "6800",
    "WAYLAND_DISPLAY": "wayland-0",
    "XAUTHORITY": "/run/user/1000/.mutter-Xwaylandauth.1UH1I2",
    "XDG_CONFIG_DIRS": "/etc/xdg/xdg-ubuntu:/etc/xdg",
    "XDG_CURRENT_DESKTOP": "Unity",
    "XDG_DATA_DIRS": "/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop",
    "XDG_MENU_PREFIX": "gnome-",
    "XDG_RUNTIME_DIR": "/run/user/1000",
    "XDG_SESSION_CLASS": "user",
    "XDG_SESSION_DESKTOP": "ubuntu",
    "XDG_SESSION_TYPE": "wayland",
    "XMODIFIERS": "@im=ibus",
    "_": "/usr/bin/code",
    "all_proxy": "socks://127.0.0.1:7890/",
    "http_proxy": "http://127.0.0.1:7890/",
    "https_proxy": "http://127.0.0.1:7890/",
    "no_proxy": "localhost,127.0.0.1,::1",
    "ELECTRON_RUN_AS_NODE": "1",
    "PATH": "/home/htao_ubuntu/WizardsInCouch/dev/.env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin"
}
2024-02-16 15:00:20.855 [debug] Extension ms-python.vscode-pylance accessed onDidChangeActiveEnvironmentPath with args: undefined
2024-02-16 15:00:20.855 [debug] Extension ms-python.vscode-pylance accessed onDidEnvironmentVariablesChange with args: undefined
2024-02-16 15:00:20.862 [debug] Activation Commands received source /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/activate for shell /usr/bin/bash, resource /home/htao_ubuntu/WizardsInCouch/dev and interpreter /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.862 [debug] Activating Environment to capture Environment variables, . /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-16 15:00:20.862 [info] > . ./.env/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-16 15:00:20.862 [info] shell: bash
2024-02-16 15:00:20.874 [debug] Activated environment variables for /home/htao_ubuntu/WizardsInCouch/dev {
  SHELL: '/bin/bash',
  SESSION_MANAGER: 'local/htao-UB:@/tmp/.ICE-unix/2083,unix/htao-UB:/tmp/.ICE-unix/2083',
  QT_ACCESSIBILITY: '1',
  COLORTERM: 'truecolor',
  XDG_CONFIG_DIRS: '/etc/xdg/xdg-ubuntu:/etc/xdg',
  SSH_AGENT_LAUNCHER: 'gnome-keyring',
  PYTHONUNBUFFERED: '1',
  no_proxy: 'localhost,127.0.0.1,::1',
  XDG_MENU_PREFIX: 'gnome-',
  GNOME_DESKTOP_SESSION_ID: 'this-is-deprecated',
  LC_ADDRESS: 'zh_CN.UTF-8',
  GNOME_SHELL_SESSION_MODE: 'ubuntu',
  LC_NAME: 'zh_CN.UTF-8',
  SSH_AUTH_SOCK: '/run/user/1000/keyring/ssh',
  ELECTRON_RUN_AS_NODE: '1',
  XMODIFIERS: '@im=ibus',
  DESKTOP_SESSION: 'ubuntu',
  LC_MONETARY: 'zh_CN.UTF-8',
  VSCODE_AMD_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
  GTK_MODULES: 'gail:atk-bridge',
  PWD: '/home/htao_ubuntu/WizardsInCouch/dev',
  XDG_SESSION_DESKTOP: 'ubuntu',
  LOGNAME: 'htao_ubuntu',
  XDG_SESSION_TYPE: 'wayland',
  SYSTEMD_EXEC_PID: '2104',
  VSCODE_CODE_CACHE_PATH: '/home/htao_ubuntu/.config/Code/CachedData/31c37ee8f63491495ac49e43b8544550fbae4533',
  XAUTHORITY: '/run/user/1000/.mutter-Xwaylandauth.1UH1I2',
  HOME: '/home/htao_ubuntu',
  USERNAME: 'htao_ubuntu',
  IM_CONFIG_PHASE: '1',
  LC_PAPER: 'zh_CN.UTF-8',
  LANG: 'en_US.UTF-8',
  LS_COLORS: 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:',
  XDG_CURRENT_DESKTOP: 'Unity',
  VIRTUAL_ENV: '/home/htao_ubuntu/WizardsInCouch/dev/.env',
  VSCODE_IPC_HOOK: '/run/user/1000/vscode-b8888966-1.86-main.sock',
  VTE_VERSION: '6800',
  WAYLAND_DISPLAY: 'wayland-0',
  VSCODE_CLI: '1',
  GNOME_TERMINAL_SCREEN: '/org/gnome/Terminal/screen/2330f84c_cb98_42ac_b7b7_3944e67bffd4',
  https_proxy: 'http://127.0.0.1:7890/',
  UNIVPATH: ':/home/htao_ubuntu/WizardsInCouch/db/univ/',
  CHROME_DESKTOP: 'code-url-handler.desktop',
  GNOME_SETUP_DISPLAY: ':1',
  LESSCLOSE: '/usr/bin/lesspipe %s %s',
  XDG_SESSION_CLASS: 'user',
  TERM: 'xterm-256color',
  LC_IDENTIFICATION: 'zh_CN.UTF-8',
  LESSOPEN: '| /usr/bin/lesspipe %s',
  USER: 'htao_ubuntu',
  NO_PROXY: 'localhost,127.0.0.1,::1',
  PYTHONIOENCODING: 'utf-8',
  CALENDARPATH: ':/home/htao_ubuntu/WizardsInCouch/db/calendar/',
  GNOME_TERMINAL_SERVICE: ':1.148',
  DISPLAY: ':0',
  VSCODE_PID: '18655',
  SHLVL: '1',
  LC_TELEPHONE: 'zh_CN.UTF-8',
  HTTPS_PROXY: 'http://127.0.0.1:7890/',
  HTTP_PROXY: 'http://127.0.0.1:7890/',
  QT_IM_MODULE: 'ibus',
  LC_MEASUREMENT: 'zh_CN.UTF-8',
  VSCODE_CWD: '/home/htao_ubuntu/WizardsInCouch/dev',
  VIRTUAL_ENV_PROMPT: '(development) ',
  http_proxy: 'http://127.0.0.1:7890/',
  VSCODE_CRASH_REPORTER_PROCESS_TYPE: 'extensionHost',
  XDG_RUNTIME_DIR: '/run/user/1000',
  PS1: '(development) ',
  ALL_PROXY: 'socks://127.0.0.1:7890/',
  LC_TIME: 'zh_CN.UTF-8',
  ELECTRON_NO_ATTACH_CONSOLE: '1',
  XDG_DATA_DIRS: '/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop',
  GDK_BACKEND: 'x11',
  all_proxy: 'socks://127.0.0.1:7890/',
  PATH: '/home/htao_ubuntu/WizardsInCouch/dev/.env/bin:/home/htao_ubuntu/WizardsInCouch/dev/.env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin',
  GDMSESSION: 'ubuntu',
  ORIGINAL_XDG_CURRENT_DESKTOP: 'ubuntu:GNOME',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/1000/bus',
  VSCODE_NLS_CONFIG: '{"locale":"en-us","osLocale":"en-us","availableLanguages":{},"_languagePackSupport":true}',
  VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
  LC_NUMERIC: 'zh_CN.UTF-8',
  OLDPWD: '/home/htao_ubuntu/WizardsInCouch/db',
  _: '/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python'
}
2024-02-16 15:00:20.880 [info] > /bin/python3.11 ~/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariables.py
2024-02-16 15:00:20.880 [info] shell: bash
2024-02-16 15:00:20.891 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.891 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.891 [debug] Prepending environment variable PS1 in collection with (.env) 
2024-02-16 15:00:20.891 [debug] Prepending environment variable PATH in collection with /home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/deactivate/bash:/home/htao_ubuntu/WizardsInCouch/dev/.env/bin:
2024-02-16 15:00:20.891 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:20.892 [info] Send text to terminal: /bin/python3.11 /home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/printEnvVariablesToFile.py /home/htao_ubuntu/.vscode/extensions/ms-python.python-2024.0.1/pythonFiles/deactivate/bash/envVars.txt
2024-02-16 15:00:20.902 [debug] Time taken to get env vars using terminal is 10ms
2024-02-16 15:00:21.687 [info] Starting Pylance language server.
2024-02-16 15:00:21.687 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:21.690 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:21.690 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:21.691 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2024-02-16 15:00:21.692 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python","path":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python"}
2024-02-16 15:00:21.694 [debug] Extension ms-python.vscode-pylance accessed getEnvironmentVariables with args: undefined
2024-02-16 15:00:21.694 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2024-02-16 15:00:21.694 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python","path":"/home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python"}
2024-02-16 15:00:22.258 [debug] Clearing context for python dependencies not installed: /home/htao_ubuntu/WizardsInCouch/dev/mox-ruby/src/mox/ruby/const.py
2024-02-16 15:00:24.418 [debug] Clearing context for python dependencies not installed: /home/htao_ubuntu/WizardsInCouch/dev/mox-ruby/src/mox/ruby/const.py
2024-02-16 15:00:25.665 [debug] Clearing context for python dependencies not installed: extension-output-ms-vscode.makefile-tools-#1-Makefile tools
2024-02-16 15:00:25.665 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:25.665 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:26.580 [debug] Terminal shell path '/usr/bin/bash' identified as shell 'bash'
2024-02-16 15:00:26.580 [debug] Shell identified as bash 
2024-02-16 15:00:26.580 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:34.641 [debug] Clearing context for python dependencies not installed: /home/htao_ubuntu/WizardsInCouch/dev/mox-ruby/src/mox/ruby/const.py
2024-02-16 15:00:34.641 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python
2024-02-16 15:00:39.915 [debug] Clearing context for python dependencies not installed: /home/htao_ubuntu/WizardsInCouch/dev/mox-ruby/src/mox/ruby/const.py
2024-02-16 15:00:43.008 [debug] Clearing context for python dependencies not installed: /home/htao_ubuntu/WizardsInCouch/dev/mox-ruby/src/mox/ruby/const.py
2024-02-16 15:00:45.584 [debug] Clearing context for python dependencies not installed: /home/htao_ubuntu/WizardsInCouch/dev/mox-ruby/src/mox/ruby/const.py
2024-02-16 15:01:06.566 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2024-02-16 15:01:06.566 [debug] Found cached env for /home/htao_ubuntu/WizardsInCouch/dev/.env/bin/python

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Feb 16, 2024
@karrtikr
Copy link

When I startup or open a new terminal in vscode, it activate venv of folder with my chosen interpreter, but with prefix of floder name(.env) not my setting(development)

Could you clarify what you mean by "setting(development)", where is that setting set?

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Feb 28, 2024
@karrtikr
Copy link

This should likely be fixed by #22128

@WiC-htao
Copy link
Author

WiC-htao commented Mar 1, 2024

When I startup or open a new terminal in vscode, it activate venv of folder with my chosen interpreter, but with prefix of floder name(.env) not my setting(development)

Could you clarify what you mean by "setting(development)", where is that setting set?

the prefix I set for this virtual environment, which is "development".

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Mar 1, 2024
@karrtikr
Copy link

karrtikr commented Mar 1, 2024

where did you set it?

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Mar 1, 2024
@WiC-htao
Copy link
Author

WiC-htao commented Mar 1, 2024

where did you set it?

python -m venv .env --prompt development

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Mar 1, 2024
@karrtikr
Copy link

Thanks. This should be fixed with #23080, closing as duplicate of #22956.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
experimenting Feature is part of an experiment triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants