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

Failed import on the first start of the project with csv translations, but after restart everything imports fine #92262

Open
Dracks opened this issue May 22, 2024 · 5 comments

Comments

@Dracks
Copy link

Dracks commented May 22, 2024

Tested versions

reproducible in 4.2.1, 4.2.2

System information

Linux Fedora, Mac os X latest

Issue description

I'm collaborating on an opensource project, and we have a problem in this project anytime you open it with godot for the first time (or after removing the folder .godot) fails importing the resources, but once it run once, you close the project and reopen everything is imported well

Steps to reproduce

  1. Clone https://github.com/Codename-Recon/Codename-Recon/
  2. open it with godot, it complains about missing dependencies
  3. Close the project
  4. reopen it, and everything is fine.

(If you run the game, on the first open, it will corrupt some files, but once you restart the project, everything works fine)

Minimal reproduction project (MRP)

For the moment this is the project, I will try to get a minimum reproduction project soon, but since I don't know where this issue comes from, I expect will take a good amount of time to get something small that reproduces it:
https://github.com/Codename-Recon/Codename-Recon/

@fire
Copy link
Member

fire commented May 22, 2024

There's been discussion about an automatic restart feature but I don't know the shape of that to solve import issues.

@HunterNN
Copy link

Hi, I'm another contributor of this game project. After further investigation, it seems that the root cause of the problem is related to translation files. Specifically, I suspect that the process of generating *.translation files from a .cvs file while caching is occurring (when starting a fresh project -> .godot folder gets created) might be the culprit.

Removing the translations completely resolves the issue.

@akien-mga akien-mga changed the title Failed import on the first start of the project, but after restart everything imports fine Failed import on the first start of the project with csv translations, but after restart everything imports fine May 23, 2024
@akien-mga
Copy link
Member

Sounds related to #83200. Haven't tested yet to confirm if it's a duplicate.

@Dracks
Copy link
Author

Dracks commented May 23, 2024

Sounds related to #83200. Haven't tested yet to confirm if it's a duplicate.

for what I read in the other feels the same, I don't expect have time until the weekend, but I will try that.

@Dracks
Copy link
Author

Dracks commented May 24, 2024

Hello, I tried what they comment to remove the .import of the csv, and seems better, at least the editor seems to start fine, but when I run the project, it crashed and some asset was corrupted.

If after start godot, I simply close it and reopen again, there is no corruption and everything works fine.

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

4 participants