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

[Linux] [ERROR] Failed to open database SQLite process failed to start: The argument 'file' cannot be empty. Received ''

Open OnkelTem opened this issue 3 years ago • 3 comments

I installed the extension without reading the documentation first and was unable to open database getting this message:

[ERROR] Failed to open database <path> SQLite process failed to start: The argument 'file' cannot be empty. Received '' 

In my case I had to install sqlite3 to fix the problem:

$ sudo apt-get install sqlite3

That message was really confusing as <path> from above is not empty. Also I can view that database it sqlitebrowser.

Maybe there is a way to make some check?

OnkelTem avatar Feb 08 '22 16:02 OnkelTem

Yes, I too faced this issue. Attaching screenshots.

Screenshot from 2022-05-18 15-08-55 Screenshot from 2022-05-18 15-09-09 Screenshot from 2022-05-18 15-09-29

jaiakash avatar May 18 '22 09:05 jaiakash

Hi, edit vscode configuration in json mode and add the path to sqlite3 binary. Example for Ubuntu "sqlite.sqlite3":"/usr/bin/sqlite3", And the explorer appear: image

Xarkam avatar Aug 25 '22 11:08 Xarkam

/usr/bin/sqlite3

It does not work for us.

SalahAdDin avatar Nov 29 '22 16:11 SalahAdDin