Skip to content

Add type support #38

@Xinart

Description

@Xinart

Describe the bug
When the addon is downloaded it crashes when using Godot with GDScript strict typing mode.

To Reproduce

  1. Active GDScript strict typing mode on Godot with the following settings setted
Image Image
  1. Download the Godot addon from the AssetLib
Image

Expected behavior
The Output show this :
ERROR: res://addons/locker/scripts/storage_accessor/storage_accessor.gd:151 - Parse Error: Identifier "LokGlobalStorageManager" not declared in the current scope.
ERROR: res://addons/locker/scripts/storage_accessor/accessor_group.gd:0 - Compile Error: Failed to compile depended scripts.
ERROR: modules/gdscript/gdscript.cpp:3041 - Failed to load script "res://addons/locker/scripts/storage_accessor/accessor_group.gd" with error "Parse error".
ERROR: res://addons/locker/scripts/storage_accessor/storage_accessor.gd:151 - Parse Error: Identifier "LokGlobalStorageManager" not declared in the current scope.
ERROR: modules/gdscript/gdscript.cpp:3041 - Failed to load script "res://addons/locker/scripts/storage_accessor/storage_accessor.gd" with error "Parse error".
ERROR: res://addons/locker/scripts/storage_accessor/storage_accessor.gd:151 - Parse Error: Identifier "LokGlobalStorageManager" not declared in the current scope.
ERROR: res://addons/locker/scripts/storage_manager/storage_manager.gd:0 - Compile Error: Failed to compile depended scripts.
ERROR: res://addons/locker/scripts/storage_accessor/storage_accessor.gd:151 - Parse Error: Identifier "LokGlobalStorageManager" not declared in the current scope.
ERROR: res://addons/locker/scripts/storage_manager/global_storage_manager.gd:0 - Compile Error: Failed to compile depended scripts.
ERROR: modules/gdscript/gdscript.cpp:3041 - Failed to load script "res://addons/locker/scripts/storage_manager/global_storage_manager.gd" with error "Parse error".
ERROR: res://addons/locker/scripts/storage_manager/scene_storage_manager.gd:21 - Parse Error: Identifier "LokGlobalStorageManager" not declared in the current scope.
ERROR: modules/gdscript/gdscript.cpp:3041 - Failed to load script "res://addons/locker/scripts/storage_manager/scene_storage_manager.gd" with error "Parse error".
ERROR: res://addons/locker/scripts/storage_accessor/storage_accessor.gd:151 - Parse Error: Identifier "LokGlobalStorageManager" not declared in the current scope.
ERROR: res://addons/locker/scripts/storage_manager/storage_manager.gd:0 - Compile Error: Failed to compile depended scripts.
ERROR: modules/gdscript/gdscript.cpp:3041 - Failed to load script "res://addons/locker/scripts/storage_manager/storage_manager.gd" with error "Parse error".
ERROR: res://addons/locker/scripts/storage_accessor/storage_accessor.gd:151 - Parse Error: Identifier "LokGlobalStorageManager" not declared in the current scope.
ERROR: res://addons/locker/scripts/storage_manager/storage_manager.gd:0 - Compile Error: Failed to compile depended scripts.

Desktop (please complete the following information):

  • OS: Windows 11
  • Godot Version 4.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions