Closed khassar00 closed 2 weeks ago
Actively working on resolving this - aiming to update things soon.
@khassar00 - This should be resolved in the latest pre-release (0.4.0-pre.0)! https://crates.io/crates/dexterous_developer/0.4.0-alpha.0
Can you give it a try?
@khassar00 - This should be resolved in the latest pre-release (0.4.0-pre.0)! https://crates.io/crates/dexterous_developer/0.4.0-alpha.0
Can you give it a try?
The canonicalize_utf8 function still produces strange file paths.I completely removed it on my own branch. https://github.com/khassar00/dexterous_developer_fork https://github.com/khassar00/bevy_dexterous_developer_test Still can't find dll, but reduced to 2
2024-08-16T12:24:42.193383Z INFO ThreadId(02) build completed: 1
2024-08-16T12:24:42.193991Z TRACE tokio-runtime-worker Found launcher.1.dll at C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debug\launcher.1.dll
2024-08-16T12:24:42.194192Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debu
g\kernel32.dll, C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debug\deps\kernel32.dll or C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debug\examples\kernel32.dll
2024-08-16T12:24:42.194247Z TRACE ThreadId(02) Checking launcher.1.dll - launcher.1.dll at C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debug\launcher.1.dll
2024-08-16T12:24:42.194351Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debu
g\api-ms-win-crt-runtime-l1-1-0.dll, C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debug\deps\api-ms-win-crt-runtime-l1-1-0.dll or C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debug\examples\api-ms-win-crt-runtime-l1-1-0.dll
2024-08-16T12:24:42.194480Z TRACE ThreadId(02) Root launcher.1.dll at C:\SourceCode\rust\bevy_dexterous_developer_test\target\hot-reload\x86_64-pc-windows-msvc\x86_64-pc-windows-msvc\debug\launcher.1.dll
2024-08-16T12:24:42.194692Z TRACE ThreadId(02) all downloads completed
2024-08-16T12:24:42.194945Z INFO ThreadId(02) Triggering a Reload
2024-08-16T12:24:42.195038Z TRACE ThreadId(02) Sent Reload Trigger: Ok(())
2024-08-16T12:24:42.195125Z TRACE ThreadId(02) all downloads completed
2024-08-16T12:24:42.195200Z TRACE ThreadId(02) last completed is 1, started is 1 and triggered is 1 - not triggering a reload
2024-08-16T12:24:42.195272Z TRACE ThreadId(02) all downloads completed
2024-08-16T12:24:42.195341Z TRACE ThreadId(02) last completed is 1, started is 1 and triggered is 1 - not triggering a reload
2024-08-16T12:24:42.195049Z TRACE main Got Message While Looking For Root - LoadRootLib { build_id: 1, local_path: "C:\\SourceCode\\rust\\bevy_dexterous_developer_test\\target\\hot-reload\\x86_64-pc-windows-msvc\\x86_64-pc-windows-msvc\\debug\\launcher.1.dll", builder_type: Default }
2024-08-16T12:24:42.195525Z TRACE main Loading Initial Root
2024-08-16T12:24:42.195630Z TRACE main Loading "C:\\SourceCode\\rust\\bevy_dexterous_developer_test\\target\\hot-reload\\x86_64-pc-windows-msvc\\x86_64-pc-windows-msvc\\debug\\launcher.1.dll"
Using Original
Loading Library
Loaded library
2024-08-16T12:24:42.196746Z TRACE main Initial Root ID: Some(1)
2024-08-16T12:24:42.196872Z TRACE main Setting Info
2024-08-16T12:24:42.196984Z TRACE main Preparing to call dexterous_developer_instance_set_hot_reload_info
2024-08-16T12:24:42.197011Z TRACE ThreadId(30) Starting Secondary Update Loop
2024-08-16T12:24:42.197103Z ERROR main Library Holder Error Library Error GetProcAddress failed
Runner failed
After using the dll file I downloaded myself, the program still has the following error
Library Holder Error Library Error GetProcAddress failed
The strange paths you're seeing aren't invalid - and this particular failing to find kernel32.dll or other windows internal dlls isn't a the current context. It's tied to the "server" portion not being able to copy those dlls over to the running instance of your app, not to the actual loading.
The issue that concerns me more actively is the library error below - I'm looking into it and will update you shortly.
@khassar00 - here is a PR to your test that worked on all my machines (including the windows machine): https://github.com/khassar00/bevy_dexterous_developer_test/pull/1
Remember that you need to update the CLI as well!
@khassar00 - here is a PR to your test that worked on all my machines (including the windows machine): khassar00/bevy_dexterous_developer_test#1
Remember that you need to update the CLI as well!
Do you mean that these errors of not finding dll files do not need attention? Thank you very much for your work, now I have successfully run the example.
The following English text was generated by automatic translation.
Version
main
Operating system & version
Windows 10 LTSC 21H2 19044.4170 rustc 1.81.0-nightly (fcc325f1b 2024-07-17)
What you did
Run the dexterous developer cli to get it
ERROR main Couldn't find missing libraries
It took me some time to find out whydexterous_developer_types::cargo_path_utils::add_to_dylib_path
method returns a strange path:\\\\?\\C:\\SourceCode\\rust\\khassar_toolbox_test\\target\\hot-reload\\x86_64-pc-windows-msvc\\x86_64-pc-windows-msvc\\debug
I fixed it,but there's still a new problem. Here is the detailed output,Then the program does not run, and run the non-hot-reloadable version is successful