Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming a .gd file deletes the previously linked .tscn #86174

Closed
EibrielInv opened this issue Dec 14, 2023 · 0 comments · Fixed by #86177
Closed

Renaming a .gd file deletes the previously linked .tscn #86174

EibrielInv opened this issue Dec 14, 2023 · 0 comments · Fixed by #86177

Comments

@EibrielInv
Copy link

EibrielInv commented Dec 14, 2023

Tested versions

  • Reproducible in 4.2.stable, 4.2.1.stable
  • Not reproducible in 4.1.stable

System information

Godot v4.2.1.stable - Ubuntu 22.04.3 LTS 22.04 - X11 - GLES3 (Compatibility) - NVIDIA GeForce GTX 1080 Ti (nvidia; 535.129.03) - 12th Gen Intel(R) Core(TM) i3-12100F (8 Threads)

Issue description

Godot deletes the .tscn file when renaming a previously linked .gd file. The deleted file can't be recovered.

Steps to reproduce

  1. Create a new project.
  2. Create a new scene of type Control, and save it
  3. Right click the root node "Control", and select "Attach Script..."
  4. Right click the root node "Control", and select "Detach Script..."
  5. On the FileSystem tab right click "control.gd", and select "Rename..."
  6. Move the cursor just before the dot and write "_old", the new name should be "control_old.gd"
  7. Press enter

Minimal reproduction project (MRP)

Test Project for Godot 4.2.1
You can start from step 4.
RenamingBugTest.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants