Skip to content

Restoring externally modified script paths in the editor will result in errors #112164

@Rindbee

Description

@Rindbee

Tested versions

System information

Godot v4.5.stable - Linux Mint 22.2 (Zara) on X11 - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - AMD Radeon Graphics (radeonsi, phoenix, LLVM 20.1.2, DRM 3.61, 6.14.0-33-generic) - AMD Ryzen 7 8745H w/ Radeon 780M Graphics (16 threads) - 25.22 GiB memory

Issue description

Even if the script is not used or opened, restoring the externally modified script path by moving to the previous directory location in the editor will produce an error message similar to the following:

ERROR: Another resource is loaded from path 'res://1.gd' (possible cyclic resource inclusion).
   at: set_path (core/io/resource.cpp:95)

Steps to reproduce

  1. Create an empty project;
  2. Create a script named 1.gd (res://1.gd);
  3. Create a directory named a (res://a);
  4. Outside the editor, move 1.gd (or/and its ".uid" file) to directory a (res://1.gd => res://a/1.gd);
  5. Inside the editor, move 1.gd to the root directory res:// (res://a/1.gd => res://1.gd). You will receive an error message.

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions