-
-
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
Files sometime not refreshing until restarting editor. #21494
Comments
Still periodically happening as of c320d93. At the moment I have to copy and paste my outside work into the script editor. The project has to be closed and re-opened, and the soft reload option in the script editor doesn't work. |
I am seeing this happening too. Difference is that I wasn't editing in an external editor. I made changes to a .gd script, committed and pushed them in git, worked on some other stuff, and then came back to the .gd script and it was the old version before I made the changes. I closed the file in the script editor and re-opened it and it was still the old version. I opened the file on disk in another program and it was the edited committed version. So Godot was showing something completely different from what was on disk, as if it was sticking to its cached version. Makes me scared I will accidentally lose work. |
And it happened a second time in a different file, where it hit a bug in my code, but the debugger stopped on the wrong line. After looking at it I realized that it was again the wrong version of the script file (it was different to the file on disk) which is why the debugger stopped on the wrong line ... the line with the bug wasn't in the version the editor was displaying. EDIT: it happened on a third file in the same session. Good thing I committed the changes before. Not sure if it is a problem when working with git or not. In any case I believe this issue should be re-opened. |
Sure thing, I'll reopen it. |
Is this still reproducible in the current master branch? |
Seems to update now. The only thing I get is an error in the console. Would this be something you want to reclassify? It might be a new issue, because I notice that this stops the syntax checking until you change something in the script and save it from inside the editor. After adding a space on the end and saving it. |
The saving loading and updating behaviour changed in recent builds, but not for the better. #24646 |
Seems like a duplicate of #20250 (at least the comment for which this issue was reopened, once the original one had been closed). |
I'm experiencing this same issue. I can make no new changes to my code. Restarting the editor and Visual Studio Code does nothing. I'm using Godot Engine v3.2.1.stable.mono.official. I am using only c# scripts. I'm not sure if this is the cause, but I also receive these errors every second or so while the game is running: |
Using a 64-bit Windows build of Godot 3.1 from a few hours ago.
So far this was a one off event. I'm not exactly sure how to reproduce this one yet. I'll post back if I have an success or re-encounter this.
Was testing out another issue, and saved some changes in an external editor. I removed the comment from line 2 as seen below.
When I returned to the editor the old code was persisting, even when closing and reopening the file.
I ran it as it was, and the ground truth was that is was actually edited, because this line was going to cause an error and did, because I used the same class name in another script.
I went back to the script after running it, and it was still commented out as if it were the old version.
It only resolved by a restart of the editor.
I was also getting some errors like these a little bit earlier, and am including them just in case they're related if there is something that can go amiss with the file reading/locking.
Note: The only png in this project is the default icon.png.
The text was updated successfully, but these errors were encountered: