-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
Hot reloading issues #608
Comments
Hello 🙂 Hot reloading is managed by the Godot engine for the most part -- we hook up some callbacks and tell Godot where the Do you use a recent engine version (at least 4.2)? You also need to set your extension as If the problem persists, I'd recommend opening an issue in Godot's own tracker (or asking on their forum/contributors chat). |
@Jacob-Steentoft Sounds like your on PC. But for what it's worth, hot reloading doesn't work at all on Mac as far as I can tell, even when the reloadable flag is set with the latest version of Godot and rust gdext. When I rebuild (app running or not), I can't see any changes until I fully quit and restart Godot. (At which point Godot crashes and I reopen and it works) Im experimenting with using rust in Godot so I can pull in a whole pile of existing rust code into my Godot apps, and it works, but continually restarting Godot every few minutes drives me insane. |
There are two open bugs related to hot reloading:
Can you check if this issue could be related to one of those? If not, could you report this upstream in the Godot issue tracker? Hot reloading being completely broken on macOS is definitely not something that should happen. |
Closing as I can't reproduce it on Windows and haven't gotten more info. Godot implemented a dedicated mechanism to move DLLs before hot reloading, and from what I can tell, it works. Regarding the macOS issues, we don't do anything different for that platform. If it still doesn't work, I'd recommend opening an issue on the Godot repo. But make sure to test with latest gdext |
I haven't tested on 4.3.x yet, but for informational purposes, on macOS, I can confirm the problem is not fixed 4.2.1, I am doing a "quit Godot, build, open Godot" build cycle at the moment. |
@scripturial are you sure it is this specific issue with hot reloading though -- with There are some other hot reloading problems we need to address, but this one is probably something that should be reported to Godot directly, as they're doing the DLL copy logic before reloading. |
Hi,
I stumbled over #434 and tried to replicate the steps from the original post to get hot reloading working. But when compiling changes while the game is running, I'm just getting an error
Access is denied. (os error 5)
since the dll file cannot be removed.Am I misunderstanding the hot reloading capabilities, or is something not working as intended? I'm unable to find any documentation for gdext on the hot reloading on either Godot's docs or the Godot rust book.
The text was updated successfully, but these errors were encountered: