Skip to content

Custom importers do not work with singletons #115618

@GammaGames

Description

@GammaGames

Tested versions

  • 4.5.1, 4.6

But I also wonder if it's related to abarichello/godot-ci#150, which was present in 4.1

System information

Godot v4.6.stable - Windows 10 (build 19045) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (Advanced Micro Devices, Inc.; 32.0.21013.1000) - AMD Ryzen 5 3600 6-Core Processor (12 threads) - 31.93 GiB memory

Issue description

I'm getting an error initially importing resources that have a custom importer in a singleton. I have some csv files set to load with the csv data importer addon:

Image

I opened the .import file to make sure the importer was enabled and noticed a path in the .godot folder:

[remap]
importer="com.timothyqiu.godot-csv-importer"
type="Resource"
uid="uid://bd32ynsmpqx33"
path="res://.godot/imported/singleton_data.csv-1db633ec39e81e98ec83fe69f840e486.res"

[deps]
source_file="res://scene_data.csv"
dest_files=["res://.godot/imported/singleton_data.csv-1db633ec39e81e98ec83fe69f840e486.res"]

[params]
delimiter=0
headers=true
detect_numbers=true
force_float=false

Deleting res://.godot/imported/singleton_data.csv-1db633ec39e81e98ec83fe69f840e486.res (and .ctex file) causes the file to revert to translation on editor restart. Resources preloaded in a regular scene-level script do not have this issue, but this has been a complete blocker in setting up ci builds for my project.

Steps to reproduce

  1. Set a resource to use a custom importer
  2. Add a global script that preloads the file
  3. Delete the related files from .godot/imported
  4. Chaos
2026-01-29.23-11-57.-.Trim.1.mp4

Minimal reproduction project (MRP)

mrp.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions