Skip to content

Extension syntax error #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ThomasKFitzgerald opened this issue Sep 10, 2024 · 6 comments
Open

Extension syntax error #251

ThomasKFitzgerald opened this issue Sep 10, 2024 · 6 comments

Comments

@ThomasKFitzgerald
Copy link

Terminal window:

PS C:\DevOps\Python\Learning\Databases> sqlite3
SQLite version 3.46.1 2024-08-13 09:16:08 (UTF-16 console I/O)
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .open test.db
sqlite> CREATE TABLE investments (coin_id TEXT, currency TEXT, anount REAL);
sqlite> .tables
investments
sqlite> .headers on
sqlite> .mode column
sqlite> pragma table_info('investments');
cid name type notnull dflt_value pk


0 coin_id TEXT 0 0
1 currency TEXT 0 0
2 anount REAL 0 0
sqlite> INSERT INTO investments VALUES ('bitcoin', 1.0, 'usd');
sqlite> SELECT * FROM investments;
coin_id currency anount


bitcoin 1.0 usd
sqlite> .exit
PS C:\DevOps\Python\Learning\Databases>

This is a new DB.

image

When clicking open database this is the error:
"
[9:58:20 AM][vscode-sqlite][INFO] Activating extension vscode-sqlite v0.14.1...
[9:58:20 AM][vscode-sqlite][INFO] Extension activated.
[10:03:05 AM][vscode-sqlite][ERROR] Failed to open database 'c:\DevOps\Python\Learning\Databases\test.db': Parse error near line 4: no such column: "table" - should this be a string literal in single-quotes?
aster WHERE (type="table" OR type="view")
error here ---^
"

@Chisrra
Copy link

Chisrra commented Sep 11, 2024

I have the same issue

@sergio-urbina
Copy link

Currently having the same issue, I'm on Mac (Silicon) and can't open any .sqlite file despite being able to open them in other apps or extensions. I get the exact error about parson in line 4

@TeacupTerrapin
Copy link

Same issue - VSCode version is:
Version: 1.93.1
Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
Date: 2024-09-11T17:20:05.685Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.93.1 Chrome/124.0.6367.243 Electron/30.4.0 Safari/537.36

@readandwrite864
Copy link

readandwrite864 commented Oct 11, 2024

same here

possible duplicate of this

@wem1c
Copy link

wem1c commented Dec 6, 2024

Same here on Arch Linux. Tried changing the sqlite3 executable path to the one returned by

where sqlite3

(which was: /usr/bin/sqlite3),

but it didn't fix the issue.

@Goose66
Copy link

Goose66 commented Jan 13, 2025

Same error. Has to do with double-quoted literal strings. These are supposed to be single-quoted (I think v3.4 and newer). See here for a fix: #241

As an aside, does anybody have a recommendation for a similar extension that is being currently maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants