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

tres files failing to open #49929

Closed
wrac4242 opened this issue Jun 26, 2021 · 3 comments
Closed

tres files failing to open #49929

wrac4242 opened this issue Jun 26, 2021 · 3 comments

Comments

@wrac4242
Copy link

wrac4242 commented Jun 26, 2021

Godot version

v3.3.2.stable

System information

Fedora 33

Issue description

Error opening .tres file which was created in the editor

On a double click of the file with the .tres ending it fails to open and has the below error

scene/resources/resource_format_text.cpp:1195 - res://plan.tres:1 - Parse Error: Expected '['
 scene/resources/resource_format_text.cpp:848 - res://plan.tres:1 - Parse Error: Expected '['
 Failed to load resource 'res://plan.tres'.
 Failed loading resource: res://plan.tres. Make sure resources have been imported by opening the project in the editor at least once.
 editor/editor_node.cpp:947 - Condition "!res.is_valid()" is true. Returned: ERR_CANT_OPEN

Steps to reproduce

Take the below file and try to open the plan.tres file inside godot with a double click
The file will not open and the console will have the error listed above

method 2:
create a new resource of type TextFile
save it in the project
close the tab in the editor
try to reopen it

Minimal reproduction project

bug_minimal.zip

edits

added another method for reproduction

@Calinou
Copy link
Member

Calinou commented Jun 26, 2021

test.tres contains just "test case". How did you save the file in question? The script editor's TextFile functionality shouldn't be used to edit .tres files directly.

@wrac4242
Copy link
Author

the tres file was created inside godot itself by making a new resource, then selecting TextFile as the type, and then opening it up in the editor. On this it successfully opens and allows me to edit it. but after closing the file it has issues reopening it

the reason why I am editing a tres file is because its stated as a TextFile in the New Resource menu and it does not allow me to open txt files inside the editor itself

@Calinou
Copy link
Member

Calinou commented Jun 26, 2021

Duplicate of #21787 (same cause).

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

No branches or pull requests

2 participants