-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Sporadic .tmp files are left in the project source (Windows) #82270
Comments
Those file names do look like Godot editor temp files on Windows. There have been a few tweaks to the Windows temp file handling in #81001, should be in Godot 4.2. Still, in case you have something like an aggressive anti-virus blocking file access while it's doing scanning, it might not be enough. Meanwhile, if the files get too annoying, you can disable this in Editor -> Editor Settings -> FileSystem -> Safe Save on Backup then Rename. |
Good to know, I'll keep an eye out for it after 4.2 stable. For now it doesn't bother me too much, so I've just added a line in my |
I cannot replicate this on 4.2, so does seem to be solved, if someone else can verify |
@AThousandShips This has been happening pretty sporadically for me in 4.2.rc1—specifically with GDExtensions. I originally opened an issue in the godot-jolt repo: godot-jolt/godot-jolt#690
Recording.2023-11-23.185006.mp4 |
You can just open two editors for one project that uses GDExtension. |
I’m getting this on windows with version 4.2.1-stable So is it safe to add the *.tmp to .gitignore? |
Hi, same here, I get this on 4.2.1-stable using C#. For me it seems to appear when I use FileAccess, even if I correctly close & dispose of the FileAccess object after using it. The pain point being that they are actively used by the editor and thus cannot be deleted. |
I've been able to consistently recreate this by clicking "run project" with a syntax error in a script, waiting for it to halt, and then updating and saving the script before stopping the game. Saving fails with the error "Unable to write to file [path], file in use, locked or lacking permissions." I'm guessing that a tmp file is created at this point and never removed when the save fails? |
I am seeing these files show up randomly as well, in v4.2.stable.official [46dc277]. There were a bunch that ended up in my friend's PR, which is where I first noticed it, and then I just recently saw them myself as well: I think I may have seen the same error as @goshdarnheck with the "Unable to write to file [...]" message. It's a bit annoying we have to add these to the .gitignore now. Though, I suppose it doesn't hurt to have them in there, even if this issue is fixed, in case some other issue occurs which cause these files to appear. |
These are temporary files Godot engine creates, which are supposed to be automatically removed, but there can be issues which prevent them from being removed. Although these not being removed is an issue with the engine which may be fixed in the future, I think it would still be a good idea to add them here, in case a different issue occurs that causes them to not be removed. Here is a current issue for this, but in searching I found that there have been other related issues in the past which caused .tmp files to show up. Thus, I think it's a good idea to just add them in here: godotengine/godot#82270
I reproduced it once when trying to save a script while the debugger was running. Windows 10, Godot 4.3.dev5. |
Same here. I can reproduce this issue by editing and attempting to save a script while the game is running. |
Used the following PowerShell script to remove existing Get-ChildItem -Recurse *.tmp | Remove-Item; "`n# Godot tmp files (https://github.com/godotengine/godot/issues/82270)`n*.tmp" >> .\.gitignore |
I also get How to reproduce:
Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 with Max-Q Design (NVIDIA; 32.0.15.6094) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads) |
I also have this problem with exact errors as gmikhail |
Noticed a temp file was added in a recent commit, and realised there was a few in the project. So for Clean-up removed them and added .tmp file type to the .gitignore to prevent them being added in future Seems to stem from a bug where the temp files are left: godotengine/godot#82270
Problem persists for me in v4.3.stable.official (Windows 11) |
<https://www.reddit.com/r/godot/comments/16zmfmk/is_it_ok_to_ignore_tmp_files_from_git/> <godotengine/godot#82270> These files are seemingly created due to a failure to save
Godot version
4.1.1.stable
System information
Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 31.0.15.2849) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)
Issue description
I noticed today a rogue
.tmp
file present in the source tree that I didn't recognize:It appears to be a backup / temp file for one of the .tscn files. From some quick searches, it seems a similar issue happened in the past for Windows (#956), and indeed I'm developing on Windows. Also, I noticed a reddit post about this issue not too long ago (https://www.reddit.com/r/godot/comments/16akyka/what_are_all_these_tmp_files_alongside_my_main/), so it seems likely that an issue has resurfaced.
I've never packaged my project, just normal usage and edit / play. At times when the GDScript type checking seems to get confused, I will reload the project from the Project menu.
Steps to reproduce
It seems pretty random/sporadic, so I haven't been able to reproduce it consistently (and in fact have only seen a single instance of such files). Just wanted to open a tracking bug since it seems others are running into it as well.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: