mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.48k stars 296 forks source link

Startup script fails and I can't use extension #1016

Closed Taimoor-Tariq closed 1 year ago

Taimoor-Tariq commented 1 year ago

Describe the bug Everytime I launch VS Code a terminal is created to run a script, but the script fails and I can't use any of the extension features.

To Reproduce Steps to reproduce the behavior:

  1. Launch VS Code
  2. Terminal opens and script fails

Expected behavior Terminal opens, runs the script and enable all features of the extension

Screenshots image image

Desktop:

gjsjohnmurray commented 1 year ago

1008 may contain some clues for you. To use the SQLite driver you need a local installation of NodeJS, and at the moment on Windows you also need PowerShell 7 rather than the version of PowerShell that is preinstalled on Windows.

Taimoor-Tariq commented 1 year ago

Yea fixed by changing useNodeRuntime

"sqltools.useNodeRuntime": "C:\\Program Files\\nodejs\\node.exe"

it was set to true for some reason