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

Failed to open database

Open awsl1414 opened this issue 2 years ago • 3 comments

2023-04-07_12-51 This is the problem I had, I've seen similar issues and that didn't solve my problem. SQLite is installed system:archlinux visual-studio-code version: 1.77.1-1 SQLite version:0.14.1

awsl1414 avatar Apr 07 '23 06:04 awsl1414

I have the exact sane problem on Manjaro (archlinux based), the same versions of vscode and SQLite!!

gelie avatar Apr 20 '23 16:04 gelie

Getting the same error (Windows 11), but only if SQLite is installed and on the path / detected. I installed SQLite through Chocolatey, and when I uninstalled it the extension worked again.

It seems the built-in SQLite client works, but the regular one does not.

Have the same problem when trying to open a database which works within sqlite3.

Can work within the VS Code editor and use >sqlite:run query to get an sqlite output.

When trying to open the test.db file with right click selecting open Database, the error shows as shown below:

[2:44:41 PM][vscode-sqlite][ERROR] Failed to open database 'c:\Users\HR\Documents\sqlite\test.db': Parse error near line 4: no such column: table aster WHERE (type="table" OR type="view")
error here ---^

Windows 10 and latest Version of VS Code Version: 1.83.1 (system setup) Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc Date: 2023-10-10T23:48:05.904Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19045

HeinzRuetschi avatar Oct 12 '23 12:10 HeinzRuetschi