2shady4u / godot-sqlite

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

Parser Error: Could not find type "SQLite" in the current scope. #159

Closed shackra closed 7 months ago

shackra commented 7 months ago

Environment:

Issue description: Unable to start my project because of "Parser Error: Could not find type "SQLite" in the current scope."

Captura desde 2023-12-10 00-57-32

Steps to reproduce: Declare a variable with type SQLite

Minimal reproduction project:

Additional context this plugin worked fine when I had Godot 4.1 installed. Also, the plugin was installed from the Assets Store.

scotmcp commented 7 months ago

I have Godot-4.2 and I am not experiencing this same problem. Did you enable the plugin after installing it?

shackra commented 7 months ago

yes, I checked that before submitting the bug report and the plugin is enabled.

-- Jorge

El domingo, 10 de diciembre de 2023 a las 07:49, scotmcp @.***> escribió:

I have Godot-4.2 and I am not experiencing this same problem. Did you enable the plugin after installing it?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

shackra commented 7 months ago

I deactivated the plugin, restarted Godot 4.2, deleted the plugin, restared Godot again, installed the plugin from the asset store, restarted Godot, activated the plugin and restarted it again, the error persists:

  modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "SQLite" not found.
  modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "SQLite" not found.
  res://etc/database.gd:35 - Compile Error: Identifier not found: SQLite
  res://etc/decay_adder.gd:-1 - Compile Error: 
  modules/gdscript/gdscript.cpp:2775 - Failed to load script "res://etc/decay_adder.gd" with error "Compilation failed". (User)
  modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "SQLite" not found.
  modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "SQLite" not found.
  res://etc/database.gd:35 - Compile Error: Identifier not found: SQLite
  res://ui/decay_db_console.gd:-1 - Compile Error: 
  modules/gdscript/gdscript.cpp:2775 - Failed to load script "res://ui/decay_db_console.gd" with error "Compilation failed". (User)
jgestiot commented 7 months ago

I unsubscribed on GitHub and I still receive those messages

On Mon, Dec 11, 2023, 09:14 Jorge Araya Navarro @.***> wrote:

I deactivated the plugin, restarted Godot 4.2, deleted the plugin, restared Godot again, installed the plugin from the asset store, restarted Godot, activated the plugin and restarted it again, the error persists:

modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "SQLite" not found. modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "SQLite" not found. res://etc/database.gd:35 - Compile Error: Identifier not found: SQLite res://etc/decay_adder.gd:-1 - Compile Error: modules/gdscript/gdscript.cpp:2775 - Failed to load script "res://etc/decay_adder.gd" with error "Compilation failed". (User) modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "SQLite" not found. modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "SQLite" not found. res://etc/database.gd:35 - Compile Error: Identifier not found: SQLite res://ui/decay_db_console.gd:-1 - Compile Error: modules/gdscript/gdscript.cpp:2775 - Failed to load script "res://ui/decay_db_console.gd" with error "Compilation failed". (User)

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

shackra commented 7 months ago

Okay, the issue is that the assets from the asset store are incompatible with NixOS. The way to workaround this, as the user, is to build the add-on yourself on NixOS.