vscode-sqltools icon indicating copy to clipboard operation
vscode-sqltools copied to clipboard

Node runtime detection fails when `oh-my-zsh` update is available

Open robertrossmann opened this issue 1 year ago • 0 comments

Describe the bug Node runtime detection seems to spawn an interactive shell, and if that shell asks a question the detection may fail.

To Reproduce Steps to reproduce the behavior:

  1. Start VS Code with sqltools installed
  2. Have the shell ask you a question (for me, it's the oh-my-zsh update confirmation)
  3. Notice that the first character of the node version detection is consumed by the question and the command that is actually executed is therefore incorrect (see screenshot)
  4. Node version detection fails

Expected behavior The node detection is executed from a non-interactive shell so that other programs running in it know not to ask questions.

Screenshots

Screenshot 2023-07-17 at 9 46 17

Desktop (please complete the following information):

  • SQLTools Version [e.g. v0.17.x]: v0.28.0
  • VS Code Version: [e.g 1.x.y]: 1.80.1
  • OS: [e.g. Windows, Linux, Mac]: Mac x86
  • Driver:
    • [ ] PostgreSQL/Redshift
    • [ ] MySQL/MariaDB
    • [ ] MSSQL/Azure
    • [ ] SQLite
    • [ ] Other? Which...
  • Database version: [e.g. MySQL v5.6, PostgreSQL vX...]

Additional context

None.

robertrossmann avatar Jul 17 '23 07:07 robertrossmann