Open albinaask opened 2 years ago
Click create new resource of type "Text File" in file editor
Are you referring to the script editor or the FileSystem dock?
I'm referring to the file system dock. ;)
This one seemed like a weird one to reproduce, so I've gone ahead and made a recording to show exactly how to reproduce it.
I am able to reproduce a different(?) issue where the new TextFile resource is not correctly saved the first time, but saves fine afterwards. To reproduce this issue, valid resource text must be put into the TextFile. Honestly, I'm not sure how to "correctly" use the TextFile resource, but this seems like inconsistent saving behaviour, anyway:
I hope that's helpful in debugging/describing the issue.
The TextFile (.tres) resource has been removed in Godot 4, so I can't reproduce it on the alpha 12 development release. This issue is specific to Godot 3.
Godot version
3.4.4
System information
Windows 10, intel CPU
Issue description
When you save a text resource file and then reopen the editor and try to open it up again in the editor I get the following error message:
scene/resources/resource_format_text.cpp:804 - res://new_textfile.tres:1 - Parse Error: Expected '[' Failed to load resource 'res://new_textfile.tres'. Failed loading resource: res://new_textfile.tres. Make sure resources have been imported by opening the project in the editor at least once. scene/resources/resource_format_text.cpp:1143 - res://new_textfile.tres:1 - Parse Error: Expected '['
Steps to reproduce
Minimal reproduction project
N/A