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

can't use vscode-sqltools #1243

Open
zcmarkyoung opened this issue Nov 8, 2023 · 5 comments
Open

can't use vscode-sqltools #1243

zcmarkyoung opened this issue Nov 8, 2023 · 5 comments
Labels
sqlite SQLite driver

Comments

@zcmarkyoung
Copy link

zcmarkyoung commented Nov 8, 2023

hi guys,I want use sqltools in vscode(in windows10) to connect sqlite,for this I install extension sqlite driver in markplace then add new connection the vscode tips I should "SQLTools: Installing "sqlite3@5.1.1". Please wait until it finishes. Check the opened terminal for more info."
but it seems not work correctly. I install sqlite3 manually. first I install nodejs then I install sqlite3. It can't build correctly.So I download "napi-v6-win32-unknown-x64.tar.gz"(5.1.1) from
`npm install napi-v6-win32-unknown-x64.tar.gz

npm ERR! code ENOENT

npm ERR! syscall open

npm ERR! path C:\Users\Administrator\AppData\Local\npm-cache_cacache\tmp\HZRTwy/package.json

npm ERR! errno -4058

npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Administrator\AppData\Local\npm-cache_cacache\tmp\HZRTwy\package.json'

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent`

so what's the problem?

@gjsjohnmurray gjsjohnmurray added the sqlite SQLite driver label Nov 8, 2023
@gjsjohnmurray
Copy link
Collaborator

Did you use the information and advice at https://vscode-sqltools.mteixeira.dev/en/drivers/sq-lite?

@RandomFractals
Copy link
Contributor

@zcmarkyoung I use SQLite on Windows 10 too for testing and it works. Make sure you have this setting in your user or project workspace vscode settings:

{
  "sqltools.useNodeRuntime": true
}

@SchoolyB
Copy link

SchoolyB commented Nov 17, 2023

@zcmarkyoung What helped me was updating the extension to 5.1.1. Also double checking my settings.json file for the accurate useNodeRuntime value

@zcmarkyoung
Copy link
Author

I set useNodeRuntime value ,but it still install sqlite3@5.1.1 also I can't install correctly

@gjsjohnmurray
Copy link
Collaborator

@zcmarkyoung It shouldn't have been necessary to install nodejs and sqlite3 manually, and I guess it's possible those steps have left your system in an unusual state.

What does your Terminal profiles list look like?

image

When you pick Select Default Profile what does the top-centre quickpick look like?

image

Screenshots can be pasted direct into a GH comment at the website.

Assuming you have a PowerShell option (not to be confused with Windows PowerShell), please pick that as your default. Then I suggest you uninstall the SQLTools SQLite driver extension, restart VS Code a couple of times, then install that driver again from Marketplace.

I noticed that your path mentions "Administrator". Is your VS Code installation a System Setup or a User Setup? Does the suffiix "[Administrator]" appear in your VS Code window title?

Please also go to the About option of VS Code's Help menu, click the Copy button on the dialog, then paste the info into your response on GH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqlite SQLite driver
Projects
None yet
Development

No branches or pull requests

4 participants