AlexCovizzi / vscode-sqlite

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

Can't open database anymore on any project #71

Closed vanny96 closed 5 years ago

vanny96 commented 5 years ago

It always stops me with an error saying: "Failed to open database: Database failed to open: SQLite process failed to start. The argument 'file' cannot be empty. Received."

When I go to see the VSCode "output" window it says "Unable to find a valid SQLite command. Fallback binary is not valid."

It worked fine before, what happened?

Ivanshamir commented 2 years ago

I'm using Ubuntu 20.04 LTS and I have the same probleme, but in my case the extension never worked, so the first time I installed and tried to open my database file Vs Code showed me a pop-up saying: "Failed to open database: Database failed to open: SQLite process failed to start. The argument 'file' cannot be empty. Received.", however I'm sure that my database file has no problem, so probably the issue is in the extension in some linux distros.

Man, try this command in terminal sudo apt install sqlite, it solved the same problem for me

Thank you, this fixes my issue. Also if you are in vscode please restart this.

samialfattani commented 1 year ago

I'm using Ubuntu 20.04 LTS and I have the same probleme, but in my case the extension never worked, so the first time I installed and tried to open my database file Vs Code showed me a pop-up saying: "Failed to open database: Database failed to open: SQLite process failed to start. The argument 'file' cannot be empty. Received.", however I'm sure that my database file has no problem, so probably the issue is in the extension in some linux distros.

I'm using Ubuntu 22.04.1 LTS that worked for me to THANK YOU!!

bahhtee7 commented 1 year ago

Can you do this:

  1. In the settings set: "sqlite.logLevel": "DEBUG"
  2. Open command palette > SQLite: Open Database > show table
  3. Open command palette > SQLite: Show output
  4. Copy and paste the output here.

This really solved my problem. Guys if other solutions don't work try this one first. Thank you so much!

C0L2 commented 1 year ago

In my case, I'm using Linux Fedora 64 I tried installing sudo dnf install sqlite3 but it didn't worked. i changed my extension settings and thi hellped me

Open Settings in VS Code, Search for SQLITE. Change Sqlite Log Level to DEBUG. and try it worked. "sqlite.logLevel":"DEBUG" on VsCode JSON Settings

kevinforrestconnors commented 11 months ago

I'm using Ubuntu 20.04 LTS and I have the same probleme, but in my case the extension never worked, so the first time I installed and tried to open my database file Vs Code showed me a pop-up saying: "Failed to open database: Database failed to open: SQLite process failed to start. The argument 'file' cannot be empty. Received.", however I'm sure that my database file has no problem, so probably the issue is in the extension in some linux distros.

Man, try this command in terminal sudo apt install sqlite, it solved the same problem for me

Had the same problem on PopOS - this fixed it for me. Thank you. Maybe it should be added to documentation that some linux distros need to do this.

hesamshayegan commented 9 months ago

I'm using Ubuntu on Windows 10 and "sudo apt install sqlite" worked for me. Thanks!

isaiahthedev commented 8 months ago

I'm using Ubuntu and what worked for me was "sudo apt install sqlite" and then I had to command pallet (for me: ctr + shift + p) and then I had to search "sqlite" and click "SQLite: Change Workspace Trust"