You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
akien-mga
changed the title
project manager unable to resolve icon referenced by uid before import
Project manager unable to resolve icon referenced by uid before import
Feb 10, 2025
I can reproduce it too on Linux in the latest master branch (261e7d3), including after the related #102513 was merged.
I'm afraid this can't really be solved if we save icons as UIDs, because UIDs aren't known outside the project, so the Project Manager can't resolve them.
Well actually I see @KoBeWi added some loading of the UID cache from the PM in #100717. That might have been a bit of a bazooka solution in hindsight... but we see its shortcoming here.
Another option would be to simply enforce that the icon is always saved as a path and not UID, so it can be parsed by external tools like the PM. We could even consider having that restriction for other resources in project.godot like the main scene.
The issue only happens when project is not imported yet, so it won't affect majority of the projects. Usually when you have a project in your project list it was already imported; unless you just batch added multiple projects, which I think does not happen that often.
We could silence the error if cache does not exist yet, because it's not useful.
Tested versions
4.4-beta1
System information
(Native)
Godot v4.4.beta1 - Windows 10 (build 19045) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4070 (NVIDIA; 32.0.15.6636) - AMD Ryzen 9 3950X 16-Core Processor (32 threads)
(WSL2 on above system)
Godot v4.4.beta1 - Ubuntu 24.04.1 LTS 24.04 - X11 display driver, Multi-window, 2 monitors - OpenGL 3 (Compatibility) - D3D12 (NVIDIA GeForce RTX 4070) - AMD Ryzen 9 3950X 16-Core Processor (32 threads)
Issue description
The project manager is unable to resolve an icon referenced by uid before first import:
Steps to reproduce
open project manager
import MRP without "Edit Now"
-> no icon, errors in console
Minimal reproduction project (MRP)
icontest44b1.zip
The text was updated successfully, but these errors were encountered: