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

[Remote] Automatic Virtual Env does not work with fish shell (automatic shell integration not working) #23110

Closed
LegendTheo opened this issue Mar 22, 2024 · 7 comments
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@LegendTheo
Copy link

LegendTheo commented Mar 22, 2024

Type: Bug

My virtual environment is not automatically activated when the fish terminal is launched.

Expected

My virtual environment is automatically activated when fish shell is opened.
vs. Actual
Terminal provided notification that VENV has been activated but it has not.

XXX

Steps to reproduce:

  1. Open a new fish terminal with vscode and a python project using the expected virtual environment selected.

image

image

Here is the environment changes it claims occurred:

# Terminal Environment Changes

## Extension: vscode.git

Enables the following features: git auth provider

- `GIT_ASKPASS=/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/extensions/git/dist/askpass.sh`
- `VSCODE_GIT_ASKPASS_NODE=/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node`
- `VSCODE_GIT_ASKPASS_EXTRA_ARGS=`
- `VSCODE_GIT_ASKPASS_MAIN=/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/extensions/git/dist/askpass-main.js`
- `VSCODE_GIT_IPC_HANDLE=/run/user/1000/vscode-git-864517a47c.sock`

## Extension: ms-python.python

Activated environment for `~/.conda/envs/Gate-Code/bin/python`

- `CONDA_ROOT=/home/legendtheo/miniforge3`
- `CONDA_PREFIX=/home/legendtheo/.conda/envs/Gate-Code`
- `STARSHIP_SESSION_KEY=5195101971305490`
- `CONDA_SHLVL=2`
- `CONDA_DEFAULT_ENV=Gate-Code`
- `PATH=/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/remote-cli:/home/legendtheo/.conda/envs/Gate-Code/bin:/home/legendtheo/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:${env:PATH}`
- `CONDA_PREFIX_1=/home/legendtheo/miniforge3`

here's an example of proving it's not activated:
image

Pip list also shows that the correct python modules are not loaded.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.9.18
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Pylance

<details>

<summary>Output for <code>Python</code> in the <code>Output</code> panel (<code>View</code>→<code>Output</code>, change the drop-down the upper-right of the <code>Output</code> panel to <code>Python</code>)
</summary>

<p>

XXX


</p>
</details>

<details>

<summary>User Settings</summary>

<p>

languageServer: "Pylance"


</p>
</details>


Extension version: 2024.2.1
VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Connection to 'wsl+Manjaro' could not be established
Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2
Remote OS version: Linux arm64 6.1.21-v8+
Remote OS version: Linux arm64 6.1.21-v8+
Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|31.92GB (6.16GB free)|
|Process Argv|--crash-reporter-id f04d5d76-b411-47fe-b54e-4a21ac110954|
|Screen Reader|no|
|VM|0%|

Connection to 'wsl+Manjaro' could not be established

|Item|Value|
|---|---|
|Remote|WSL: Manjaro|
|OS|Linux x64 5.15.133.1-microsoft-standard-WSL2|
|CPUs|Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)|
|Memory (System)|15.58GB (11.67GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: homeserver.legendtheo.com|
|OS|Linux arm64 6.1.21-v8+|
|CPUs|Cortex-A72 (4 x 600)|
|Memory (System)|7.63GB (6.62GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: 192.168.1.49|
|OS|Linux arm64 6.1.21-v8+|
|CPUs|Cortex-A72 (4 x 1800)|
|Memory (System)|7.63GB (6.64GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Manjaro|
|OS|Linux x64 5.15.133.1-microsoft-standard-WSL2|
|CPUs|Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)|
|Memory (System)|15.58GB (11.67GB free)|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>

vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
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
2e7ec940:30992800
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
pydisww2:30991134
cppperfcontrol:30979541
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30993541
dsvsc020:30976470
pythonait:30992953
gee8j676:30988843


</details>

<!-- generated by issue reporter -->
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 22, 2024
@karrtikr
Copy link

You might be running into: https://code.visualstudio.com/docs/terminal/shell-integration#_automatic-script-injection, due to which automatic shell integration might not be working for you:

image

First of all, can you 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

Once that is done, try Manual installation, which I expect should solve the problem.

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

Oddly it does work for bash.

manual installation worked, if I turn off the automatic integration. It's not clear to me why automatic won't work though, since I'm using the VsCode remote extension and it works fine for bash.

Here is the requested Debug information:

2024-03-22 12:33:43.562 [info] Experiment 'pythonaacf' is active
2024-03-22 12:33:43.562 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-03-22 12:33:43.562 [info] Experiment 'pythonREPLSmartSend' is active
2024-03-22 12:33:43.562 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-03-22 12:33:43.562 [info] Experiment 'pythonTestAdapter' is active
2024-03-22 12:33:43.562 [debug] Getting roots
2024-03-22 12:33:43.562 [debug] Getting roots
2024-03-22 12:33:43.562 [debug] Found roots
2024-03-22 12:33:43.562 [debug] Start watching file for changes /home/legendtheo/.conda/environments.txt
2024-03-22 12:33:43.562 [debug] Start watching: /home/legendtheo/.conda with pattern environments.txt using VSCode API
2024-03-22 12:33:43.562 [debug] Found roots
2024-03-22 12:33:43.562 [debug] Start watching root /home/legendtheo/Gate_Project for globs ["python","*/python","*/bin/python"]
2024-03-22 12:33:43.562 [debug] Start watching: /home/legendtheo/Gate_Project with pattern python using VSCode API
2024-03-22 12:33:43.562 [debug] Start watching: /home/legendtheo/Gate_Project with pattern */python using VSCode API
2024-03-22 12:33:43.562 [debug] Start watching: /home/legendtheo/Gate_Project with pattern */bin/python using VSCode API
2024-03-22 12:33:43.562 [info] Default formatter is set to null for workspace /home/legendtheo/Gate_Project
2024-03-22 12:33:43.562 [debug] Waiting for test server to start...
2024-03-22 12:33:43.562 [debug] No cached env found for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:43.562 [info] Test server listening.
2024-03-22 12:33:43.562 [debug] Test server started.
2024-03-22 12:33:43.562 [debug] Testing: Setting up watcher for /home/legendtheo/Gate_Project
2024-03-22 12:33:43.576 [debug] Searching for conda.
2024-03-22 12:33:43.580 [debug] Probing conda binary: conda
2024-03-22 12:33:43.585 [debug] Dump environment variables {
    "USER": "legendtheo",
    "SSH_CLIENT": "192.168.1.110 20585 22",
    "XDG_SESSION_TYPE": "tty",
    "SHLVL": "0",
    "MOTD_SHOWN": "pam",
    "HOME": "/home/legendtheo",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
    "LOGNAME": "legendtheo",
    "_": "/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node",
    "XDG_SESSION_CLASS": "user",
    "XDG_SESSION_ID": "2045",
    "VSCODE_AGENT_FOLDER": "/home/legendtheo/.vscode-server",
    "XDG_RUNTIME_DIR": "/run/user/1000",
    "LANG": "en_GB.UTF-8",
    "SHELL": "/bin/bash",
    "PWD": "/home/legendtheo",
    "SSH_CONNECTION": "192.168.1.110 20585 192.168.1.49 22",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "CONDA_EXE": "/home/legendtheo/miniforge3/bin/conda",
    "_CE_M": "",
    "NO_AT_BRIDGE": "1",
    "XML_CATALOG_FILES": "file:///home/legendtheo/miniforge3/etc/xml/catalog file:///etc/xml/catalog",
    "CONDA_PREFIX": "/home/legendtheo/miniforge3",
    "STARSHIP_SHELL": "bash",
    "STARSHIP_CONFIG": "/home/legendtheo/.config/starship/starship.toml",
    "CONDA_PROMPT_MODIFIER": "",
    "STARSHIP_SESSION_KEY": "2406893401123622",
    "_CE_CONDA": "",
    "CONDA_SHLVL": "1",
    "CONDA_PYTHON_EXE": "/home/legendtheo/miniforge3/bin/python",
    "CONDA_DEFAULT_ENV": "base",
    "PAMAC_CLI_AUTH": "1",
    "BROWSER": "/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/helpers/browser.sh",
    "TEXTDOMAIN": "Linux-PAM",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "VSCODE_CWD": "/home/legendtheo",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/1000/vscode-ipc-c713d706-8493-4723-8bfc-dcbf13ea4f23.sock",
    "VSCODE_L10N_BUNDLE_LOCATION": "",
    "PATH": "/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/remote-cli:/home/legendtheo/miniforge3/bin:/home/legendtheo/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"
}
2024-03-22 12:33:43.616 [info] > conda info --json
2024-03-22 12:33:43.822 [debug] No cached env found for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:44.889 [debug] Did we determine shell integration to be working for fish ? false
2024-03-22 12:33:44.895 [warning] Shell integration may not be active, environment activated may be overridden by the shell.
2024-03-22 12:33:44.896 [debug] No cached env found for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:45.056 [debug] Welcome to fish, the friendly interactive shell
Type �[32mhelp�(B�[m for instructions on how to use fish

2024-03-22 12:33:45.065 [debug] �[?2004h�]633;P;Cwd=/home/legendtheo/Gate_Project��]633;D�
2024-03-22 12:33:45.366 [debug] �]0;~/Gate_Project��[30m�(B�[m
�[J�[K
…�[38;2;254;245;237m�[48;2;254;245;237;38;2;0;0;0m  �[0m�[7;38;2;254;245;237m�[0m�[38;2;254;245;237m�[48;2;254;245;237;38;2;0;0;0m base�[0m�[7;38;2;254;245;237m�[0m�[38;2;81;107;235m�[48;2;81;107;235;38;2;255;255;255m CPU: 0.12% | MEM: 597/7812MB  �[0m�[7;38;2;81;107;235m�[0m�[38;2;87;86;86m�[48;2;87;86;86;38;2;214;222;235m0ms�[0m�[38;2;87;86;86m�[1;30m �[0m�[38;2;23;215;160m�[48;2;23;215;160;38;2;1;22;39m   main !? ⇣ ↑104 ↓33 �[0m�[38;2;23;215;160m�[1;32m �[0m�[K
╭─�[1;38;2;81;107;235m  �[0m �[38;2;255;255;255m12:33�[0m �[2;38;2;255;255;255m/�[0m�[1;3;4;38;2;255;255;255mGate_Project�[0m�[38;2;255;255;255m�[0m �[K
╰─ �[1;34mas 🧙 �[0m�[K
�[9C
2024-03-22 12:33:46.720 [debug] conda info --json: {
  "GID": 1000,
  "UID": 1000,
  "active_prefix": "/home/legendtheo/miniforge3",
  "active_prefix_name": "base",
  "av_data_dir": "/home/legendtheo/miniforge3/etc/conda",
  "av_metadata_url_base": null,
  "channels": [
    "https://conda.anaconda.org/conda-forge/linux-aarch64",
    "https://conda.anaconda.org/conda-forge/noarch"
  ],
  "conda_build_version": "not installed",
  "conda_env_version": "23.11.0",
  "conda_location": "/home/legendtheo/miniforge3/lib/python3.10/site-packages/conda",
  "conda_prefix": "/home/legendtheo/miniforge3",
  "conda_shlvl": 1,
  "conda_version": "23.11.0",
  "config_files": [
    "/home/legendtheo/miniforge3/.condarc",
    "/home/legendtheo/.condarc"
  ],
  "default_prefix": "/home/legendtheo/miniforge3",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_DEFAULT_ENV": "base",
    "CONDA_EXE": "/home/legendtheo/miniforge3/bin/conda",
    "CONDA_PREFIX": "/home/legendtheo/miniforge3",
    "CONDA_PROMPT_MODIFIER": "",
    "CONDA_PYTHON_EXE": "/home/legendtheo/miniforge3/bin/python",
    "CONDA_ROOT": "/home/legendtheo/miniforge3",
    "CONDA_SHLVL": "1",
    "CURL_CA_BUNDLE": "<not set>",
    "LD_PRELOAD": "<not set>",
    "PATH": "/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/remote-cli:/home/legendtheo/miniforge3/bin:/home/legendtheo/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games",
    "PYTHONIOENCODING": "utf-8",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "SSL_CERT_FILE": "<not set>"
  },
  "envs": [
    "/home/legendtheo/.conda/envs/Gate-Code",
    "/home/legendtheo/miniforge3"
  ],
  "envs_dirs": [
    "/home/legendtheo/.conda/envs",
    "/home/legendtheo/miniforge3/envs"
  ],
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "/home/legendtheo/miniforge3/pkgs",
    "/home/legendtheo/.conda/pkgs"
  ],
  "platform": "linux-aarch64",
  "python_version": "3.10.13.final.0",
  "rc_path": "/home/legendtheo/.condarc",
  "requests_version": "2.31.0",
  "root_prefix": "/home/legendtheo/miniforge3",
  "root_writable": false,
  "site_dirs": [],
  "solver": {
    "default": true,
    "name": "libmamba",
    "user_agent": "solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.5"
  },
  "sys.executable": "/home/legendtheo/miniforge3/bin/python",
  "sys.prefix": "/home/legendtheo/miniforge3",
  "sys.version": "3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 17:57:40) [GCC 12.3.0]",
  "sys_rc_path": "/home/legendtheo/miniforge3/.condarc",
  "user_agent": "conda/23.11.0 requests/2.31.0 CPython/3.10.13 Linux/6.1.21-v8+ debian/11.8 glibc/2.31 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.5",
  "user_rc_path": "/home/legendtheo/.condarc",
  "virtual_pkgs": [
    [
      "__archspec",
      "1",
      "aarch64"
    ],
    [
      "__conda",
      "23.11.0",
      "0"
    ],
    [
      "__glibc",
      "2.31",
      "0"
    ],
    [
      "__linux",
      "6.1.21",
      "0"
    ],
    [
      "__unix",
      "0",
      "0"
    ]
  ]
}

2024-03-22 12:33:46.720 [debug] Found conda via filesystem probing: conda
2024-03-22 12:33:46.770 [info] > ~/.conda/envs/Gate-Code/bin/python -I ~/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/interpreterInfo.py
2024-03-22 12:33:46.885 [debug] Found interpreter for >> /home/legendtheo/.conda/envs/Gate-Code/bin/python -I /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/get_output_via_markers.py /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/interpreterInfo.py <<: {"versionInfo":[3,9,18,"final",0],"sysPrefix":"/home/legendtheo/.conda/envs/Gate-Code","sysVersion":"3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 17:20:25) \n[GCC 12.3.0]","is64Bit":true}
2024-03-22 12:33:46.890 [debug] Environment resolver resolved /home/legendtheo/.conda/envs/Gate-Code/bin/python for {"name":"Gate-Code","location":"/home/legendtheo/.conda/envs/Gate-Code","kind":"virt-conda","executable":{"filename":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","sysPrefix":"","ctime":1705990534512,"mtime":1705990534512},"display":"Python 3.9.18 ('Gate-Code')","version":{"major":3,"minor":9,"micro":18},"arch":1,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","detailedDisplayName":"Python 3.9.18 ('Gate-Code': conda)"} to {"arch":3,"executable":{"filename":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","sysPrefix":"/home/legendtheo/.conda/envs/Gate-Code","mtime":-1,"ctime":-1},"version":{"major":3,"minor":9,"micro":18,"release":{"level":"final","serial":0},"sysVersion":"3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 17:20:25) \n[GCC 12.3.0]"}}
2024-03-22 12:33:46.890 [debug] Environment resolver resolved /home/legendtheo/.conda/envs/Gate-Code/bin/python for {"name":"Gate-Code","location":"/home/legendtheo/.conda/envs/Gate-Code","kind":"virt-conda","executable":{"filename":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","sysPrefix":"","ctime":1705990534512,"mtime":1705990534512},"display":"Python 3.9.18 ('Gate-Code')","version":{"major":3,"minor":9,"micro":18},"arch":1,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","detailedDisplayName":"Python 3.9.18 ('Gate-Code': conda)"} to {"arch":3,"executable":{"filename":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","sysPrefix":"/home/legendtheo/.conda/envs/Gate-Code","mtime":-1,"ctime":-1},"version":{"major":3,"minor":9,"micro":18,"release":{"level":"final","serial":0},"sysVersion":"3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 17:20:25) \n[GCC 12.3.0]"}}
2024-03-22 12:33:46.890 [debug] Environment resolver resolved /home/legendtheo/.conda/envs/Gate-Code/bin/python for {"name":"Gate-Code","location":"/home/legendtheo/.conda/envs/Gate-Code","kind":"virt-conda","executable":{"filename":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","sysPrefix":"","ctime":1705990534512,"mtime":1705990534512},"display":"Python 3.9.18 ('Gate-Code')","version":{"major":3,"minor":9,"micro":18},"arch":1,"distro":{"org":"Anaconda, Inc."},"source":[],"type":"Conda","id":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","detailedDisplayName":"Python 3.9.18 ('Gate-Code': conda)"} to {"arch":3,"executable":{"filename":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","sysPrefix":"/home/legendtheo/.conda/envs/Gate-Code","mtime":-1,"ctime":-1},"version":{"major":3,"minor":9,"micro":18,"release":{"level":"final","serial":0},"sysVersion":"3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 17:20:25) \n[GCC 12.3.0]"}}
2024-03-22 12:33:46.896 [debug] Resolved /home/legendtheo/.conda/envs/Gate-Code/bin/python using downstream locator
2024-03-22 12:33:46.896 [debug] Python API env change detected /home/legendtheo/.conda/envs/Gate-Code/bin/python add
2024-03-22 12:33:46.896 [debug] Flushing env to cache /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:46.896 [debug] Resolved /home/legendtheo/.conda/envs/Gate-Code/bin/python using downstream locator
2024-03-22 12:33:46.896 [debug] Flushing env to cache /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:46.897 [debug] Resolved /home/legendtheo/.conda/envs/Gate-Code/bin/python using downstream locator
2024-03-22 12:33:46.897 [debug] Flushing env to cache /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:46.911 [info] Python interpreter path: ~/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:46.933 [debug] Found cached env for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:47.004 [debug] Dump environment variables {
    "USER": "legendtheo",
    "SSH_CLIENT": "192.168.1.110 20585 22",
    "XDG_SESSION_TYPE": "tty",
    "SHLVL": "0",
    "MOTD_SHOWN": "pam",
    "HOME": "/home/legendtheo",
    "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
    "LOGNAME": "legendtheo",
    "_": "/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/node",
    "XDG_SESSION_CLASS": "user",
    "XDG_SESSION_ID": "2045",
    "VSCODE_AGENT_FOLDER": "/home/legendtheo/.vscode-server",
    "XDG_RUNTIME_DIR": "/run/user/1000",
    "LANG": "en_GB.UTF-8",
    "SHELL": "/bin/bash",
    "PWD": "/home/legendtheo",
    "SSH_CONNECTION": "192.168.1.110 20585 192.168.1.49 22",
    "VSCODE_HANDLES_SIGPIPE": "true",
    "CONDA_EXE": "/home/legendtheo/miniforge3/bin/conda",
    "_CE_M": "",
    "NO_AT_BRIDGE": "1",
    "XML_CATALOG_FILES": "file:///home/legendtheo/miniforge3/etc/xml/catalog file:///etc/xml/catalog",
    "CONDA_PREFIX": "/home/legendtheo/miniforge3",
    "STARSHIP_SHELL": "bash",
    "STARSHIP_CONFIG": "/home/legendtheo/.config/starship/starship.toml",
    "CONDA_PROMPT_MODIFIER": "",
    "STARSHIP_SESSION_KEY": "2406893401123622",
    "_CE_CONDA": "",
    "CONDA_SHLVL": "1",
    "CONDA_PYTHON_EXE": "/home/legendtheo/miniforge3/bin/python",
    "CONDA_DEFAULT_ENV": "base",
    "PAMAC_CLI_AUTH": "1",
    "BROWSER": "/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/helpers/browser.sh",
    "TEXTDOMAIN": "Linux-PAM",
    "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
    "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
    "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
    "VSCODE_CWD": "/home/legendtheo",
    "ELECTRON_RUN_AS_NODE": "1",
    "VSCODE_IPC_HOOK_CLI": "/run/user/1000/vscode-ipc-c713d706-8493-4723-8bfc-dcbf13ea4f23.sock",
    "VSCODE_L10N_BUNDLE_LOCATION": "",
    "PATH": "/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/remote-cli:/home/legendtheo/miniforge3/bin:/home/legendtheo/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"
}
2024-03-22 12:33:47.006 [debug] Searching for conda.
2024-03-22 12:33:47.006 [debug] Probing conda binary: conda
2024-03-22 12:33:47.030 [info] > conda info --json
2024-03-22 12:33:47.030 [info] shell: fish
2024-03-22 12:33:47.084 [debug] Extension ms-python.vscode-pylance accessed onDidChangeActiveEnvironmentPath with args: undefined
2024-03-22 12:33:47.089 [debug] Extension ms-python.vscode-pylance accessed onDidEnvironmentVariablesChange with args: undefined
2024-03-22 12:33:49.446 [debug] Clearing context for python dependencies not installed: /home/legendtheo/Gate_Project/Code/Python/Django/Gate_Video/Video_Server/generate_video_stream.py
2024-03-22 12:33:49.695 [info] Starting Pylance language server.
2024-03-22 12:33:49.718 [debug] Found cached env for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:49.741 [debug] Terminal shell path '/usr/local/bin/fish' identified as shell 'fish'
2024-03-22 12:33:49.742 [debug] Shell identified as fish 
2024-03-22 12:33:49.747 [debug] Found cached env for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:49.812 [debug] Found cached env for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:49.833 [debug] Found cached env for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:33:49.947 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2024-03-22 12:33:49.952 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","path":"/home/legendtheo/.conda/envs/Gate-Code/bin/python"}
2024-03-22 12:33:49.958 [debug] Extension ms-python.vscode-pylance accessed getEnvironmentVariables with args: undefined
2024-03-22 12:33:49.964 [debug] Extension ms-python.vscode-pylance accessed getActiveEnvironmentPath with args: undefined
2024-03-22 12:33:49.969 [debug] Extension ms-python.vscode-pylance accessed resolveEnvironment with args: {"id":"/home/legendtheo/.conda/envs/Gate-Code/bin/python","path":"/home/legendtheo/.conda/envs/Gate-Code/bin/python"}
2024-03-22 12:33:52.509 [debug] conda info --json: {
  "GID": 1000,
  "UID": 1000,
  "active_prefix": "/home/legendtheo/miniforge3",
  "active_prefix_name": "base",
  "av_data_dir": "/home/legendtheo/miniforge3/etc/conda",
  "av_metadata_url_base": null,
  "channels": [
    "https://conda.anaconda.org/conda-forge/linux-aarch64",
    "https://conda.anaconda.org/conda-forge/noarch"
  ],
  "conda_build_version": "not installed",
  "conda_env_version": "23.11.0",
  "conda_location": "/home/legendtheo/miniforge3/lib/python3.10/site-packages/conda",
  "conda_prefix": "/home/legendtheo/miniforge3",
  "conda_shlvl": 1,
  "conda_version": "23.11.0",
  "config_files": [
    "/home/legendtheo/miniforge3/.condarc",
    "/home/legendtheo/.condarc"
  ],
  "default_prefix": "/home/legendtheo/miniforge3",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_DEFAULT_ENV": "base",
    "CONDA_PREFIX": "/home/legendtheo/miniforge3",
    "CONDA_PROMPT_MODIFIER": "",
    "CONDA_PYTHON_EXE": "/home/legendtheo/miniforge3/bin/python",
    "CONDA_ROOT": "/home/legendtheo/miniforge3",
    "CONDA_SHLVL": "1",
    "CURL_CA_BUNDLE": "<not set>",
    "LD_PRELOAD": "<not set>",
    "PATH": "/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/remote-cli:/home/legendtheo/miniforge3/bin:/home/legendtheo/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games",
    "PYTHONIOENCODING": "utf-8",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "SSL_CERT_FILE": "<not set>"
  },
  "envs": [
    "/home/legendtheo/.conda/envs/Gate-Code",
    "/home/legendtheo/miniforge3"
  ],
  "envs_dirs": [
    "/home/legendtheo/.conda/envs",
    "/home/legendtheo/miniforge3/envs"
  ],
  "netrc_file": null,
  "offline": false,
  "pkgs_dirs": [
    "/home/legendtheo/miniforge3/pkgs",
    "/home/legendtheo/.conda/pkgs"
  ],
  "platform": "linux-aarch64",
  "python_version": "3.10.13.final.0",
  "rc_path": "/home/legendtheo/.condarc",
  "requests_version": "2.31.0",
  "root_prefix": "/home/legendtheo/miniforge3",
  "root_writable": false,
  "site_dirs": [],
  "solver": {
    "default": true,
    "name": "libmamba",
    "user_agent": "solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.5"
  },
  "sys.executable": "/home/legendtheo/miniforge3/bin/python",
  "sys.prefix": "/home/legendtheo/miniforge3",
  "sys.version": "3.10.13 | packaged by conda-forge | (main, Oct 26 2023, 17:57:40) [GCC 12.3.0]",
  "sys_rc_path": "/home/legendtheo/miniforge3/.condarc",
  "user_agent": "conda/23.11.0 requests/2.31.0 CPython/3.10.13 Linux/6.1.21-v8+ debian/11.8 glibc/2.31 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.5",
  "user_rc_path": "/home/legendtheo/.condarc",
  "virtual_pkgs": [
    [
      "__archspec",
      "1",
      "aarch64"
    ],
    [
      "__conda",
      "23.11.0",
      "0"
    ],
    [
      "__glibc",
      "2.31",
      "0"
    ],
    [
      "__linux",
      "6.1.21",
      "0"
    ],
    [
      "__unix",
      "0",
      "0"
    ]
  ]
}

2024-03-22 12:33:52.510 [debug] Found conda via filesystem probing: conda
2024-03-22 12:33:52.596 [debug] Activating Environment to capture Environment variables, conda run -n Gate-Code --no-capture-output python /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/get_output_via_markers.py /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/printEnvVariables.py
2024-03-22 12:33:52.597 [info] > conda run -n Gate-Code --no-capture-output python ~/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/printEnvVariables.py
2024-03-22 12:33:52.597 [info] shell: fish
2024-03-22 12:33:57.750 [debug] Clearing context for python dependencies not installed: /home/legendtheo/Gate_Project/Code/Python/Django/Gate_Video/Video_Server/generate_video_stream.py
2024-03-22 12:34:00.520 [debug] Activated environment variables for /home/legendtheo/Gate_Project {
  SHELL: '/bin/bash',
  PYTHONUNBUFFERED: '1',
  CONDA_EXE: '/home/legendtheo/miniforge3/bin/conda',
  _CE_M: '',
  DJANGO_SECRET_KEY: 'jnzdo_p&jx@b(h9m(+m_ue3nbtwz53y8fg^e(epk8hr=%r*h*j',
  ELECTRON_RUN_AS_NODE: '1',
  NO_AT_BRIDGE: '1',
  VSCODE_AMD_ENTRYPOINT: 'vs/workbench/api/node/extensionHostProcess',
  EDITOR: 'code --wait',
  PWD: '/home/legendtheo',
  LOGNAME: 'legendtheo',
  CONDA_ROOT: '/home/legendtheo/miniforge3',
  XDG_SESSION_TYPE: 'tty',
  CONDA_PREFIX: '/home/legendtheo/.conda/envs/Gate-Code',
  MOTD_SHOWN: 'pam',
  HOME: '/home/legendtheo',
  LANG: 'en_GB.UTF-8',
  STARSHIP_SHELL: 'fish',
  STARSHIP_CONFIG: '/home/legendtheo/.config/starship/starship.toml',
  CONDA_PROMPT_MODIFIER: '',
  VSCODE_AGENT_FOLDER: '/home/legendtheo/.vscode-server',
  VSCODE_L10N_BUNDLE_LOCATION: '',
  SSH_CONNECTION: '192.168.1.110 20585 192.168.1.49 22',
  STARSHIP_SESSION_KEY: '1362226682120352',
  XDG_SESSION_CLASS: 'user',
  VSCODE_HANDLES_SIGPIPE: 'true',
  _CE_CONDA: '',
  USER: 'legendtheo',
  DJANGO_DEBUG: 'True',
  PYTHONIOENCODING: 'utf-8',
  CONDA_SHLVL: '2',
  DJANGO_DB_DEBUG: 'True',
  SHLVL: '1',
  VSCODE_CWD: '/home/legendtheo',
  XDG_SESSION_ID: '2045',
  CONDA_PYTHON_EXE: '/home/legendtheo/miniforge3/bin/python',
  XDG_RUNTIME_DIR: '/run/user/1000',
  SSH_CLIENT: '192.168.1.110 20585 22',
  CONDA_DEFAULT_ENV: 'Gate-Code',
  PAMAC_CLI_AUTH: '1',
  BROWSER: '/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/helpers/browser.sh',
  PATH: '/home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/remote-cli:/home/legendtheo/.conda/envs/Gate-Code/bin:/home/legendtheo/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games',
  DBUS_SESSION_BUS_ADDRESS: 'unix:path=/run/user/1000/bus',
  VSCODE_NLS_CONFIG: '{"locale":"en","osLocale":"en","availableLanguages":{}}',
  CONDA_PREFIX_1: '/home/legendtheo/miniforge3',
  VSCODE_HANDLES_UNCAUGHT_ERRORS: 'true',
  TEXTDOMAIN: 'Linux-PAM',
  VSCODE_IPC_HOOK_CLI: '/run/user/1000/vscode-ipc-c713d706-8493-4723-8bfc-dcbf13ea4f23.sock',
  _: '/home/legendtheo/.conda/envs/Gate-Code/bin/python'
}
2024-03-22 12:34:00.553 [info] > /bin/python ~/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/printEnvVariables.py
2024-03-22 12:34:00.554 [info] shell: fish
2024-03-22 12:34:02.904 [debug] Did we determine shell integration to be working for fish ? false
2024-03-22 12:34:02.907 [debug] Found cached env for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:34:02.914 [debug] Setting environment variable CONDA_ROOT in collection to /home/legendtheo/miniforge3 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-22 12:34:02.915 [debug] Setting environment variable CONDA_PREFIX in collection to /home/legendtheo/.conda/envs/Gate-Code {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-22 12:34:02.915 [debug] Setting environment variable STARSHIP_SESSION_KEY in collection to 1362226682120352 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-22 12:34:02.915 [debug] Setting environment variable CONDA_SHLVL in collection to 2 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-22 12:34:02.915 [debug] Setting environment variable CONDA_DEFAULT_ENV in collection to Gate-Code {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-22 12:34:02.915 [debug] Prepending environment variable PATH in collection to /home/legendtheo/.vscode-server/bin/863d2581ecda6849923a2118d93a088b0745d9d6/bin/remote-cli:/home/legendtheo/.conda/envs/Gate-Code/bin:/home/legendtheo/miniforge3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-22 12:34:02.915 [debug] Setting environment variable CONDA_PREFIX_1 in collection to /home/legendtheo/miniforge3 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-03-22 12:34:02.918 [info] Send text to terminal: /bin/python /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/printEnvVariablesToFile.py /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/deactivate/fish/envVars.txt
2024-03-22 12:34:02.930 [debug] Time taken to get env vars using terminal is 13ms
2024-03-22 12:34:03.126 [debug] /bin/python /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/printEn
2024-03-22 12:34:03.134 [debug] vVariablesToFile.py /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles
2024-03-22 12:34:03.151 [debug] /deactivate/fish/envVars.txt

2024-03-22 12:34:04.281 [debug] Welcome to fish, the friendly interactive shell
Type �[32mhelp�(B�[m for instructions on how to use fish

2024-03-22 12:34:04.291 [debug] �[?2004h�]633;P;Cwd=/home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/deactivate/fish��]633;D�
2024-03-22 12:34:04.488 [debug] �]0;~/.v/e/m/p/d/fish��[30m�(B�[m
�[J�[K
…�[38;2;254;245;237m�[48;2;254;245;237;38;2;0;0;0mgendtheo  GateTester on 🌀  �[0m�[7;38;2;254;245;237m�[0m�[38;2;254;245;237m�[48;2;254;245;237;38;2;0;0;0m base�[0m�[7;38;2;254;245;237m�[0m�[38;2;81;107;235m�[48;2;81;107;235;38;2;255;255;255m CPU: 0.12% | MEM: 870/7812MB  �[0m�[7;38;2;81;107;235m�[0m�[38;2;87;86;86m�[48;2;87;86;86;38;2;214;222;235m0ms�[0m�[38;2;87;86;86m�[1;30m �[0m�[K
╭─�[1;38;2;81;107;235m  �[0m �[38;2;255;255;255m12:34�[0m �[38;2;255;255;255m| /.vsc/ext/ms-/pythonFiles/deactivate/fish�[0m �[K
╰─ �[1;34mas 🧙 �[0m�[K
�[9C/bin/python 
�[21C/home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/printEnvVariablesToFile.py �[A

�[49C
2024-03-22 12:34:04.494 [debug] /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/deactivate/fish/envVars.txt�[A�[A


�[77C�[A�[A�[68D�[34m/bin/python�[30m�(B�[m �[36m/home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/printEnvVariablesToFile.py�[30m�(B�[m �[36m/home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/deactivate/fish/envVars.txt�[A�[A


�[77C�[30m�(B�[m
�[30m�(B�[m�]633;C��]633;E;/bin/python /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/printEnvVariablesToFile.py /home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/deactivate/fish/envVars.txt��[?2004l�]0;/bin/python /home/le ~/.v/e/m/p/d/fish��[30m�(B�[m
2024-03-22 12:34:04.589 [debug] �]633;D;0��[2m⏎�(B�[m                                                                               
⏎ 
�[K�]633;P;Cwd=/home/legendtheo/.vscode-server/extensions/ms-python.python-2024.2.1/pythonFiles/deactivate/fish��[?2004h
2024-03-22 12:34:04.771 [debug] �]0;~/.v/e/m/p/d/fish��[30m�(B�[m�[J�[K
…�[38;2;254;245;237m�[48;2;254;245;237;38;2;0;0;0mendtheo  GateTester on 🌀  �[0m�[7;38;2;254;245;237m�[0m�[38;2;254;245;237m�[48;2;254;245;237;38;2;0;0;0m base�[0m�[7;38;2;254;245;237m�[0m�[38;2;81;107;235m�[48;2;81;107;235;38;2;255;255;255m CPU: 0.12% | MEM: 868/7812MB  �[0m�[7;38;2;81;107;235m�[0m�[38;2;87;86;86m�[48;2;87;86;86;38;2;214;222;235m91ms�[0m�[38;2;87;86;86m�[1;30m �[0m�[K
╭─�[1;38;2;81;107;235m  �[0m �[38;2;255;255;255m12:34�[0m �[38;2;255;255;255m| /.vsc/ext/ms-/pythonFiles/deactivate/fish�[0m �[K
╰─ �[1;34mas 🧙 �[0m�[K
�[9C
2024-03-22 12:34:50.578 [debug] Clearing context for python dependencies not installed: ms-python.python.Python
2024-03-22 12:34:50.581 [debug] Found cached env for /home/legendtheo/.conda/envs/Gate-Code/bin/python
2024-03-22 12:34:50.583 [debug] Found cached env for /home/legendtheo/.conda/envs/Gate-Code/bin/python

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

Thanks, as you can notice Python extension does apply the variables to terminal correctly using automatic shell integration:

Setting environment variable CONDA_DEFAULT_ENV in collection to Gate-Code {"applyAtShellIntegration":true,"applyAtProcessCreation":true}

but for some reason VS Code's automatic shell integration is failing to apply it. Fish shell may have a complex shell setup preventing them from doing so.

Closing in favor of #22879, where we can suggest users to use manual shell integration if automatic shell integration fails for them.

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Mar 22, 2024
@karrtikr karrtikr changed the title Automatic Virtual Env does not work with fish shell [Remote] Automatic Virtual Env does not work with fish shell (automatic shell integration not working) Mar 22, 2024
@LegendTheo
Copy link
Author

So I've been doing more digging to try and find the culprit. It appears that I'm running into the same issue. It seems to be starship that's causing the issue in fish.

Unfortunately I prefer to use fish, so I'm going to have to dig into this elsewhere. Appreciate the help!

@karrtikr
Copy link

I see thanks for letting us know about this. If even manual shell integration isn't working for you I strongly recommend to please file it on VS Code: https://github.com/Microsoft/vscode and they'll have a solution for you, make sure to @ me and I can help out.

I highly suspect you might be running into a very similar issue: microsoft/vscode#205133 (comment), which was recently fixed in the latest VS Code insiders: microsoft/vscode#206994. So you might want to try that.

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

The insiders build did not fix the issue, but there is an issue on the Starship github now regarding the problem, that may fix it. In the meantime in case anyone stumbles on this, the manual install appears to work if you turn off Terminal › Integrated › Shell Integration: Enabled

This may not be desirable, however the following seems to work even with that turned on:
Add to your fish config

if string match -q "$TERM_PROGRAM" "vscode"
    set -e VSCODE_SHELL_INTEGRATION
    . (code --locate-shell-integration-path fish)
end 

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

The issue should be fixed with microsoft/vscode#208465. Thanks for letting us know that unsetting VSCODE_SHELL_INTEGRATION fixes the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants