-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Unable to connect to SQLite database #921
Comments
See also #858 |
I have the same problem on Ubuntu. |
Not sure which additional information to provide. As I said, there's prompt to install "[email protected]". When proceeding, a terminal opens for a brief moment that attempts to install the driver. The npm command appears to be successful from what I can see (it closes pretty quickly). Then when trying to connect again, it still requires to install "[email protected]". The only relevant thing I can find in the logs is the SQLTools output:
If you have any specific information you need, let me know and I'll look it up. |
@danielvy please download the ZIP from the link it #953 (comment) then unzip it and install it into VS Code. One way to install is to drag/drop it onto the Extensions view. Then let us know if you can connect. |
Still can't connect. Now I get a prompt to upgrade to "[email protected]", after selecting "upgrade now" it installs sqlite but next time I try to connect I still get the prompt. One thing I noticed is that the |
@danielvy what exactly is the string that you represented above as Through reading source code and testing on Linux I would expect it to be |
My bad, I feel silly. I named my test project "vscode-sqltools" so I just assumed it's where the install path is taken from. The path is indeed I deleted all relevant directories and reinstalled the extensions. Now there's an error when [email protected] is compiled from source, but it doesn't seem to be directly caused by the extension. Looks like there's a known issue with node-gyp that fails when the directory contains spaces ("Application Support").
See nodejs/node-gyp#65, nodejs/node-gyp#2556 and nodejs/node-gyp#1038. It's 10 years old, the bug marked as completed but apparently it's still an issue. |
@danielvy thanks for the extra information. Does your workstation contain Apple silicon (e.g. M1, M2) or is it an Intel one? |
Yes, it's a Macbook Pro with M1 chip. |
Even though the installation error is not caused directly by the extension, Also, the node-gyp bug may or may not be fixed anytime soon. Is there any reasonable workaround? Manually installing |
Try backslash-space or quotes? |
@danielvy please try the dev VSIX in the attached zip. It won't solve the problem of sqlite3 failing to build an M1 binary on a path containing spaces, but it should keep the build window open so you can see the command that was run. Then I suggest you run that command (omit the @cclaus thanks for your suggestion, but it's not clear to me that we're going to be able to fool the sqlite3 package into passing a quoted or escaped path into node-gyp when it needs to build the M1 binary. Perhaps a better hope is that the https://github.com/TryGhost/node-sqlite3/tree/arm64-test branch might get merged soon and produce a sqlite3 release that contains the M1 binary. @daniellockyer do you have a timescale for this? |
Guys, I’m about to help with the SQLite over the weekend. I was able to install it on my m1 here outside of the extension, I haven’t detected though the difference between the extension and the terminal I was using. possibly workaround would be install somewhere and move, but I’ll try to get a better steps on how to do this. |
@mtxr glad to hear you've got an m1 to work on. When you installed the sqlite3 package from a terminal was there a space in your path? |
I copied the entire folder from SQLTools is now able to connect to the database. Will have to do this each time I update node or a new sqlite3 version is required but I can work with this for now. |
@gjsjohnmurray Hey! 👋🏻
I'd love to merge and release M1 binaries but I'm hitting a blocker that is preventing that. If anyone here has any ideas, I'd be glad to hear them 🙂 |
Today's 0.4.0 release of the SQLTools SQLite driver uses a new release of the sqlite3 package (5.1.1) which should be able to download binaries suitable for macOS on ARM64 hardware. I'm closing this but will reopen if told that it doesn't work. |
|
Since updating to Node 18.6 SQLTools extension stopped working with SQLite.
When trying to connect to the sqlite database, I get the error 'You need to install "[email protected]" to connect'. Trying to install the driver by clicking "install" reports a successful installation but the problem persists. There doesn't seem to be any errors in the logs from the installation.
Also tried uninstalling SQLTools and SQLite extensions, clearing the caches and reinstalling.
To Reproduce
Expected behavior
SQLTools should connect to sqlite database
Screenshots
Desktop
The text was updated successfully, but these errors were encountered: