Orama-Interactive / Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!
https://orama-interactive.itch.io/pixelorama
MIT License
6.9k stars 378 forks source link

build error on v1.0: `Parse Error: Could not find type "ValueSlider" in the current scope` #1053

Closed felschr closed 1 month ago

felschr commented 1 month ago

Pixelorama version: 1.0

OS/device including version: NixOS (Linux) unstable

Issue description:

I'm trying to update the package for Nixpkgs to 1.0 and I'm currently running into a build error (https://github.com/NixOS/nixpkgs/pull/330914#issuecomment-2256649686):

Fontconfig error: Cannot load default config file: No such file: (null)
Godot Engine v4.2.2.stable.nixpkgs.15073afe3 - https://godotengine.org

�[1;33mWARNING:�[0;93m Custom cursor shape not supported by this display server.
�[0;90m     at: cursor_set_custom_image (servers/display_server.cpp:505)�[0m
Fontconfig error: Cannot load default config file: No such file: (null)
�[1;35mSCRIPT ERROR:�[0;95m Parse Error: Could not find type "ValueSlider" in the current scope.
�[0;90m          at: GDScript::reload (res://src/UI/Nodes/ValueSliderV2.gd:98)�[0m
�[1;31mERROR:�[0;91m Failed to load script "res://src/UI/Nodes/ValueSliderV2.gd" with error "Parse error".
�[0;90m   at: load (modules/gdscript/gdscript.cpp:2726)�[0m
�[1;31mERROR:�[0;91m Unable to open file: res://.godot/imported/lock_aspect_2.png-463878b082f40e094e4a379076b066c6.ctex.
�[0;90m   at: _load_data (scene/resources/compressed_texture.cpp:41)�[0m
�[1;31mERROR:�[0;91m Failed loading resource: res://.godot/imported/lock_aspect_2.png-463878b082f40e094e4a379076b066c6.ctex. Make sure resources have been imported by opening the project in the editor at least once.
�[0;90m   at: _load (core/io/resource_loader.cpp:274)�[0m
�[1;31mERROR:�[0;91m Failed loading resource: res://assets/graphics/misc/lock_aspect_2.png. Make sure resources have been imported by opening the project in the editor at least once.
�[0;90m   at: _load (core/io/resource_loader.cpp:274)�[0m
�[1;31mERROR:�[0;91m Unable to open file: res://.godot/imported/lock_aspect_guides.png-928321195f27dd29d4b591772db9fba0.ctex.
�[0;90m   at: _load_data (scene/resources/compressed_texture.cpp:41)�[0m
�[1;31mERROR:�[0;91m Failed loading resource: res://.godot/imported/lock_aspect_guides.png-928321195f27dd29d4b591772db9fba0.ctex. Make sure resources have been imported by opening the project in the editor at least once.

I'm not a Godot user myself, but it sounds like the Godot project doesn't reference all resources correctly: Make sure resources have been imported by opening the project in the editor at least once..

Steps to reproduce:

With nix: nix build "github:felschr/nixpkgs/pixelorama-1.0#pixelorama"

The nix package essentially boils down to:

mkdir build
godot4 --headless --export-release "Linux/X11 64-bit" ./build/pixelorama
OverloadedOrama commented 1 month ago

Try adding godot4--headless --import before godot4 --headless --export-release "Linux/X11 64-bit" ./build/pixelorama, so the resources can be imported first, before attempting to export.

felschr commented 1 month ago

I get the same error when running godot4 --headless --import.

felschr commented 1 month ago

Problem is gone with 1.0.1!