AlexCovizzi / vscode-sqlite

VSCode extension to explore and query SQLite databases.
Apache License 2.0
196 stars 22 forks source link

Cannot open a database #247

Open OMGerCoder opened 8 months ago

OMGerCoder commented 8 months ago

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 ---^

grahamblandford commented 8 months ago

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

PorcoRosso85 commented 8 months ago

+1

nicholasjamesrattigan commented 7 months ago

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 ---^

rgugs commented 6 months ago

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.

philtreffer commented 6 months ago

+1

Kh4N1 commented 6 months ago

+1

Teja0309 commented 6 months ago

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?

fjuren commented 4 months ago

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.

Kirill777-web commented 4 months ago

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

GBognar commented 4 months ago

+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

aimixsaka commented 3 months ago

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)

MZshnik commented 3 months ago

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

eeskildsen commented 2 months ago

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.

sandrock commented 2 months ago

Same issue on :

Setting the full path to the sqlite3 did not work.

vinooganesh commented 1 month ago

Same issue here as well

donpark commented 1 week ago

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