vscode-sqlite: Can't open database
- version: 0.8.0
- os: Debian 10
When I try to open sqlite file I get
Unable to find a valid SQLite command. Fallback binary is not valid.
and
[2:37:39 AM][vscode-sqlite][ERROR] Unable to find a valid SQLite command. Fallback binary is not valid.
I saw a very similar closed issue that occurred in CentOS. It’s said that it is fixed by some ad-hoc solution specific for CentOS. I suspect the same reason and it can be fixed in the same way but this time for Debian 10?
The issue is referenced below.
Should be fixed in version 0.7.1 There were a couple of problems: It failed to recognize if the SQLite binaries were not supported (it’s needed at least version 3.9), and on CentOS the binaries provided throw an error when started, but work fine after that. I fixed the first problem and added a workaround for the second. If there are other errors feel free to reopen this issue.
_Originally posted by @AlexCovizzi in https://github.com/AlexCovizzi/vscode-sqlite/issues/71#issuecomment-504095860_
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 29 (4 by maintainers)
It exited right away. After I read the error message I tried installing
sqlite3
usingapt
and it worked. I’m happy with the solution so I would close the issue.@ingun37 @vaMuchenje @guilhermebellotti @AlexCovizzi @W3ND31 @SrAmaral @matias2018 @ricardovasconcelos @joao-gabriel-gois
I decided by doing:
sudo apt-get install sqlite3 libsqlite3-dev
Then, in settings.json sets the path to the sqlite3 binary:
"sqlite.sqlite3": "/usr/bin/sqlite3"
Parece besteira, mas além de instalar o pacote via apt
sudo apt install sqlite3
, reiniciei o VSCode e tentei abrir novamente o arquivo, mas deu o mesmo erroUnable to find a valid SQLite command. Fallback binary is not valid.
Então,selecionei o arquivo na mão
, ao invés de usar a sugestão que estava aparecendo e funcionou hahaha. 🚀Guys, u don’t need this. If u enabled “sqlite.logLevel”:“DEBUG” on VsCode JSON Settings, look for the file like “/home/wendel/.vscode/extensions/alexcvzz.vscode-sqlite-0.8.2/bin/sqlite-v3.26.0-linux-x64”
Go to terminal and type “chmod +x /home/wendel/.vscode/extensions/alexcvzz.vscode-sqlite-0.8.2/bin/sqlite-v3.26.0-linux-x64”
And the issue is resolved without installing anything else.
I think that this will happen only on unix SO’s.
Hi, I just had the same issue. I’m using Ubuntu 18.04.4 LTS.
Just to add, this solution that @ingun37 mentioned also worked for me:
But differently from others, my output could not identifies
sqlite3
in my/bin/sh
, and tried to run inside.vscode/extensions
respective extension bin directory, found it but got permission denied. Even when it finds the binary, in cases like mine, it wasn’t running. Hope this info helps, in case if wasn’t expected.In case of someone gets the same output I had, installing through
apt
works.Output logs:
Vlw @joao-gabriel-gois salvou minha NextLevelWeek
@W3ND31 You’re right, totally make sense.
I had no issues or limitation to install
sqilite3
, but yes, I think in order to isolate as a solution only for the vscode extension to work, your solution is better.chmod +x <extension-binary-path>
PS: pros BR, também to na next level, avuaaaa! 🚀 🚀 🚀
Same problem here on WSLv2 using an Ubuntu20.04 image.
In a terminal I then
Looking at the libs on my Ubuntu system:
It seems I have libtinfo.so.6 but not libtinfo.so.5.
Solved my problem, as I just needed to install sqlite3 with sudo apt … thanks
I got the same error, I solved installing apt-get install sqlite3 and apt-get install libsqlite3-dev and it worked as well
Salvou minha NextLevelWeek também Saved my NLW too tks a lot
Add permissions didn’t work for me. I had SQLite installed previously too. I’m using Ubuntu 18.04. The file is being used and working, but I can’t (humanly) read it on VSCode.
Any suggestions, please?