2shady4u / godot-sqlite

GDExtension wrapper for SQLite (Godot 4.x+)
MIT License
850 stars 76 forks source link

Could not find type "SQLite" in the current scope. #174

Open danieldantedev opened 3 months ago

danieldantedev commented 3 months ago

Environment:

Issue description: when you put the plugin on Godot, create a node, put a script and simply put-> var db : SQLite, it says that "Could not find type "SQLite" in the current scope." i thought that i was doing something wrong, but when i open up the demo from this github, it happens the exact same, so i thought, oh i must have forgotten to click the plugin switch to "on", so i did that, and it changes nothing, i dont know what is going on, can someone help?

Steps to reproduce: put the plugin on Godot, create a node, put a script and simply put-> var db : SQLite, or var db : SQLite = null or something else similar, you can also just open the demo with a new version of Godot4.2 (gdscript)

thanks

2shady4u commented 3 months ago

Hello, @danieldantedev,

What OS are you using? Are you using the normal version of Godot or the mono C# version?

danieldantedev commented 3 months ago

Windows 10, i'm using the normal version, i even thought that maybe my Godot was a little bit outdated and did the download again, but it wasn't, i literally open the demo project and i wasnt working just like my project, very very weird.

jgestiot commented 3 months ago

Why can't I unsubscribe from this?

Cheers,

JG

On Fri, 12 Apr 2024 at 06:53, danieldantedev @.***> wrote:

Windows 10, i'm using the normal version, i even thought that maybe my Godot was a little bit outdated and did the download again, but it wasn't, i literally open the demo project and i wasnt working just like my project, very very weird.

— Reply to this email directly, view it on GitHub https://github.com/2shady4u/godot-sqlite/issues/174#issuecomment-2050520961, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOHKZDA45U6VMQ2GYZK3A3Y43Z4HAVCNFSM6AAAAABGBRQAF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJQGUZDAOJWGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

danieldantedev commented 3 months ago

Don't know if this gonna help but here it is some screenshots of the error using the demo.

BC-Laboratories commented 3 months ago

@danieldantedev Experienced same thing for a bit:

Turns out godot-sqlite <4.3> requires Godot 4.2.1, not 4.2, I was using 4.2

Maybe this is the issue for you as well.

image

Although this should fix it, this is probably due to the way the AssetLib is pulling plugin versions, as it let me pull in an unsupported version into Godot.

danieldantedev commented 3 months ago

unfortunately i'm using 4.2.1 stable, tested with other computer and it works fine, its something to do with my pc i think....

thefenriswolf commented 2 weeks ago

I have the same issue, reinstalling made no difference. Edit: After reinstalling Godot it suddenly works 🤷‍♂️

Iscalej commented 2 weeks ago

I had that error when exporting to android, but I disabled armeabi-v7a and x86 as mentioned here and it worked for me with Godot 4.2.2.