cweijan / vscode-database-client

Database Client For Visual Studio Code
https://database-client.com
MIT License
2.39k stars 264 forks source link

[BUG] TypeError getChildren #1195

Closed LeonISKopp closed 4 days ago

LeonISKopp commented 5 days ago

Everytime when i write some SQL an error appears when type a dot "."

It is always the same Error message:

[ERROR] TypeError: d.getChildren0 is not a function at NS.getLcp (c:\Users\l.vscode\extensions\cweijan.vscode-mysql-client2-7.5.1\out\extension.js:166904:29) at async NS.findNodes (c:\Users\l.vscode\extensions\cweijan.vscode-mysql-client2-7.5.1\out\extension.js:166855:36) at async mk.findNodes (c:\Users\l.vscode\extensions\cweijan.vscode-mysql-client2-7.5.1\out\extension.js:166956:13) at async mk.getCompletion (c:\Users\l.vscode\extensions\cweijan.vscode-mysql-client2-7.5.1\out\extension.js:167713:17)

cweijan commented 5 days ago

Thanks for the feedback, I will fix it in the next version. You can check if you are binding an invalid connection.

image

LeonISKopp commented 5 days ago

I checked my connection and it seems that everything is fine. The error message appears when i write a dot after an alias name. But also in the same time i get all the columns from a table as recommendation, just like it should be i guess. image It's only the message that pops up everytime. I hope it helps, i don't really see what's causing the issue.

cweijan commented 4 days ago

Fixed in verison 7.5.2.