microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.62k stars 29.42k forks source link

Bash shellIntegration: error messages when running with `set -u` #233845

Open AndrewDDavis opened 1 week ago

AndrewDDavis commented 1 week ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Add set -u to ~/.bashrc
  2. Launch a new Bash terminal in VS-Code
  3. Observe error messages produced by the shellIntegration code, e.g. "bash: VSCODE_INJECTION: unbound variable".
vs-code-engineering[bot] commented 1 week ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!