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

Cannot open a database

Open OMGerCoder opened this issue 1 year ago • 16 comments

Every time I try to open a database I get an error with the following message. [12:21:29 PM][vscode-sqlite][ERROR] Failed to open database '[REDACTED]\test.db': Parse error near line 4: no such column: table aster WHERE (type="table" OR type="view")
error here ---^

OMGerCoder avatar Dec 11 '23 01:12 OMGerCoder

Also having this issue. Using the latest Windows binary for SQLLite3.

grahamblandford avatar Dec 11 '23 16:12 grahamblandford

+1

PorcoRosso85 avatar Dec 19 '23 12:12 PorcoRosso85

Having the same issue as well.

[5:15:07 PM][vscode-sqlite][ERROR] Failed to open database 'c:\SQLite\Databases\sample_db.db': Parse error near line 4: no such column: table aster WHERE (type="table" OR type="view")
error here ---^

nicholasjamesrattigan avatar Jan 03 '24 15:01 nicholasjamesrattigan

The extension worked before I downloaded SQLite and added a Path environmental variable, and now it doesn't work. Getting the same issue as posted here.

rgugs avatar Feb 03 '24 03:02 rgugs

+1

philtreffer avatar Feb 03 '24 11:02 philtreffer

+1

Kh4N1 avatar Feb 04 '24 13:02 Kh4N1

Having the same issue as well.

[5:15:07 PM][vscode-sqlite][ERROR] Failed to open database 'c:\SQLite\Databases\sample_db.db': Parse error near line 4: no such column: table aster WHERE (type="table" OR type="view") error here ---^

How to resolve this issue?

Teja0309 avatar Feb 15 '24 05:02 Teja0309

I had SQLite installed and ran into this error. Removing the path environment variable fixed the issue for me, but this doesn't seems like a temp fix.

fjuren avatar Apr 17 '24 04:04 fjuren

Same issue ! Parse error near line 4: no such column: table aster WHERE (type="table" OR type="view")

Kirill777-web avatar Apr 21 '24 17:04 Kirill777-web

+1

Neither when using latest SQLite 3 distro binary (3.45..3-1) on Arch Linux, nor when using latest precompiled binary (sqlite-tools-linux-x64-3450300.zip) downloaded from sqlite.org

GBognar avatar Apr 23 '24 08:04 GBognar

Related pr is https://github.com/AlexCovizzi/vscode-sqlite/pull/241 Can be resolved temporarily by setting explicitly sqlite executable path to the bundled one. (set "sqlite.sqlite3": "bundled sqlite3 binary path" in settings.json (bin path is /usr/bin/sqlite3 on mac)

aimixsaka avatar May 22 '24 04:05 aimixsaka

Related pr is #241 Can be resolved temporarily by setting explicitly sqlite executable path to the bundled one. (set "sqlite.sqlite3": "bundled sqlite3 binary path" in settings.json (bin path is /usr/bin/sqlite3 on mac)

Helps me

MZshnik avatar May 28 '24 20:05 MZshnik

Related pr is #241 Can be resolved temporarily by setting explicitly sqlite executable path to the bundled one. (set "sqlite.sqlite3": "bundled sqlite3 binary path" in settings.json (bin path is /usr/bin/sqlite3 on mac)

For those on Windows, the path is:

%userprofile%\.vscode\extensions\alexcvzz.vscode-sqlite-<version>\bin\sqlite-v<version>-<architecture>.exe

Copy it to the clipboard in PowerShell:

gci "$env:userprofile\.vscode\extensions\alexcvzz.vscode-sqlite-*\bin\sqlite*.exe" | % FullName | scb

Edit: Autocompletion wasn't working either. I switched to the SQLTools extension, which has SQLite support.

eeskildsen avatar Jun 04 '24 17:06 eeskildsen

Same issue on :

  • Manjaro, Code OSS 1.89.1
  • PopOS 22.04, VS Code 1.90.2 flatpak

Setting the full path to the sqlite3 did not work.

sandrock avatar Jun 26 '24 12:06 sandrock

Same issue here as well

vinooganesh avatar Jul 23 '24 02:07 vinooganesh

Seeing this error on macOS as well. SQLite database files that opens fine with 'SQLite Viewer' extension fails to open with this extension.

donpark avatar Aug 19 '24 20:08 donpark

Same error on MacBook. Have to switch to a different plugin https://marketplace.visualstudio.com/items?itemName=yy0931.vscode-sqlite3-editor

bmaier avatar Jan 01 '25 15:01 bmaier

Solutions: https://www.reddit.com/r/vscode/comments/1duh76t/problem_opening_the_database_with_sqlite_in/?rdt=49355

altaufique avatar Jan 11 '25 07:01 altaufique

solution: https://github.com/AlexCovizzi/vscode-sqlite/issues/235#issue-1626088707

charlesAOC avatar Apr 16 '25 20:04 charlesAOC

just setting vscode here. I fill in with my absolute path of sqlite3 and it worked

Image

aaalvinnn avatar May 16 '25 07:05 aaalvinnn

just setting vscode here. I fill in with my absolute path of sqlite3 and it worked

Image

this guy know things, this solution took me away a lot of headaches

erojas150604 avatar Jun 09 '25 05:06 erojas150604

Same error on MacBook. Have to switch to a different plugin https://marketplace.visualstudio.com/items?itemName=yy0931.vscode-sqlite3-editor

thank you this help me

abdull6771 avatar Jul 30 '25 22:07 abdull6771