lee-orr / dexterous_developer

A hot reload system for the Bevy game engine
Apache License 2.0
167 stars 2 forks source link

a lot of Failed to find dll file errors #64

Closed khassar00 closed 2 weeks ago

khassar00 commented 1 month ago

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 why dexterous_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,

pub fn add_to_dylib_path(path: &[&Utf8Path]) -> Result<(&'static str, ffi::OsString), Error> {
    let mut cannonical = path
        .iter()
        .map(|path| {
            if !path.exists() {
                std::fs::create_dir_all(path)?;
            }
           //fix
            Ok(path.into())
          //  path.canonicalize_utf8().map_err(|e| e.into())
        })
        .collect::<Result<Vec<_>, Error>>()?;
    let mut dylibs = dylib_path();
    dylibs.append(&mut cannonical);
    let value = env::join_paths(&dylibs)?;
    let env_var = dylib_path_envvar();
    env::set_var(env_var, &value);
    Ok((env_var, value))
}

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

dexterous_developer_cli
2024-07-18T05:54:36.437382Z TRACE main Setting up builders for DefaulPackage
2024-07-18T05:54:36.437590Z TRACE main Setting up Manager
2024-07-18T05:54:36.437792Z  INFO main Watching Directories: ["src"]
2024-07-18T05:54:36.437888Z TRACE main Checking "src"
2024-07-18T05:54:36.437981Z TRACE main Got Subscribers
2024-07-18T05:54:36.438051Z TRACE main Inserting a new subscriber
2024-07-18T05:54:36.438113Z TRACE main Adding watcher entry
2024-07-18T05:54:36.438210Z TRACE main Getting Code Subscribers
2024-07-18T05:54:36.438324Z TRACE main Watching Directory
2024-07-18T05:54:36.438950Z TRACE main Returning Watcher
2024-07-18T05:54:36.439017Z  INFO main Watching Asset Directories: ["assets"]
2024-07-18T05:54:36.439082Z TRACE main Checking assets at "assets"
2024-07-18T05:54:36.439153Z TRACE main Got asset Subscribers
2024-07-18T05:54:36.439514Z TRACE main Publishing Current Directory Content []
2024-07-18T05:54:36.439618Z TRACE main Inserting a new asset subscriber
2024-07-18T05:54:36.439767Z TRACE main Adding watcher entry
2024-07-18T05:54:36.439889Z TRACE main Getting asset Subscribers
2024-07-18T05:54:36.440005Z TRACE main Watching Directory
2024-07-18T05:54:36.440606Z TRACE main Returning Watcher
2024-07-18T05:54:36.440689Z  INFO main Starting Server
2024-07-18T05:54:36.446272Z  INFO tokio-runtime-worker Listening on http://127.0.0.1:1234
2024-07-18T05:54:37.016169Z  INFO main Setting up connection to http://localhost:1234/ in C:\SourceCode\rust\khassar_toolbox_test with libraries in C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug
2024-07-18T05:54:37.016583Z  INFO main library_path "C:\\SourceCode\\rust\\khassar_toolbox_test\\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug"
2024-07-18T05:54:37.016968Z  WARN main Couldn't find library path - adding it to the environment variables and restarting
2024-07-18T05:54:37.017487Z  INFO main command"C:\\Users\\Khassar\\.cargo\\bin\\dexterous_developer_runner.exe" "--working-directory" "C:\\SourceCode\\rust\\khassar_toolbox_test" "--libra
ry-path" "C:\\SourceCode\\rust\\khassar_toolbox_test\\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug" "--server" "http://localhost:1234/" "--env-vars-preset" "--in-workspace"
2024-07-18T05:54:37.017602Z  INFO main env_var, env_val("PATH", "C:\\Users\\Khassar\\.cargo\\bin;c:\\windows\\system32;c:\\windows;c:\\windows\\system32\\wbem;c:\\windows\\system32\\windo
wspowershell\\v1.0\\;c:\\windows\\system32\\openssh\\;c:\\program files (x86)\\aomei\\aomei backupper\\6.9.1;c:\\program files\\git\\cmd;c:\\program files\\docker\\docker\\resources\\bin;
c:\\program files\\wasmtime\\bin;c:\\users\\khassar\\.cargo\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files (x86)\\NetSarang\\Xftp 7\\
;C:\\Program Files (x86)\\NetSarang\\Xshell 7\\;C:\\Program Files\\Sniffnet\\;C:\\Program Files (x86)\\ZeroTier\\One\\;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\NVIDIA Corporat
ion\\PhysX\\Common;C:\\Program Files (x86)\\pcsuite\\;C:\\Program Files (x86)\\EasyShare\\x86\\;C:\\Program Files (x86)\\EasyShare\\x64\\;C:\\SourceCode\\vcpkg\\installed\\x64-windows\\bi
n;C:\\SourceCode\\vcpkg;C:\\Program Files\\CMake\\bin;C:\\Users\\Khassar\\.cargo\\bin;C:\\Users\\Khassar\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Wasmtime\\bin;C:\\Progr
am Files\\LLVM\\bin;C:\\Users\\Khassar\\.dotnet\\tools;C:\\SourceCode\\rust\\khassar_toolbox_test\\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug;C:\\SourceCode\\
rust\\khassar_toolbox_test\\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\\deps;C:\\SourceCode\\rust\\khassar_toolbox_test\\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\\examples")
2024-07-18T05:54:37.054580Z  INFO main Setting up connection to http://localhost:1234/ in C:\SourceCode\rust\khassar_toolbox_test with libraries in C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug
2024-07-18T05:54:37.055018Z  INFO main library_path "C:\\SourceCode\\rust\\khassar_toolbox_test\\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug"
2024-07-18T05:54:37.055442Z TRACE main Setting Up Route http://localhost:1234/target/
2024-07-18T05:54:37.055597Z TRACE main Getting Initial Root
2024-07-18T05:54:37.056746Z  INFO ThreadId(02) Connecting To ws://localhost:1234/target/x86_64-pc-windows-msvc
2024-07-18T05:54:39.116422Z TRACE tokio-runtime-worker Client d5a51ea7-2f29-42b9-8952-ecee67b30891 Connecting to Target: Path("x86_64-pc-windows-msvc")
2024-07-18T05:54:39.116651Z  INFO tokio-runtime-worker Build 1 Started
2024-07-18T05:54:39.116738Z  INFO tokio-runtime-worker Client d5a51ea7-2f29-42b9-8952-ecee67b30891 Connected
2024-07-18T05:54:39.116673Z TRACE tokio-runtime-worker Started building for Windows
2024-07-18T05:54:39.117077Z TRACE ThreadId(02) Received Hot Reload Message: InitialState { id: d5a51ea7-2f29-42b9-8952-ecee67b30891, root_lib: None, libraries: [], assets: [], most_recent_started_build: 0, most_recent_completed_build: 0 }
2024-07-18T05:54:39.117192Z TRACE ThreadId(02) Got Initial State:
                                root library: None
                                most recent started build: 0
                                most_recent_completed_build: 0
2024-07-18T05:54:39.117329Z TRACE ThreadId(02) Received Hot Reload Message: BuildStarted(1)
2024-07-18T05:54:39.117406Z  INFO ThreadId(02) build started: 1
//Omit much of the compiled output
2024-07-18T05:59:06.404589Z  INFO tokio-runtime-worker Build 1 Completed
2024-07-18T05:59:06.405858Z TRACE ThreadId(02) Received Hot Reload Message: BuildCompleted { id: 1, libraries: [("gdi32.dll", [60, 242, 255, 104, 131, 55, 141, 94, 142, 18, 102, 79, 126, 
251, 42, 114, 197, 27, 97, 99, 255, 103, 17, 53, 41, 153, 131, 134, 28, 43, 197, 193], []), ("uxtheme.dll", [216, 218, 104, 233, 232, 233, 156, 139, 236, 245, 9, 167, 144, 140, 155, 61, 9
9, 159, 170, 44, 65, 4, 140, 151, 201, 233, 174, 229, 169, 22, 26, 5], []), ("propsys.dll", [3, 132, 162, 246, 151, 103, 198, 19, 228, 24, 118, 156, 216, 29, 234, 113, 162, 121, 180, 64, 
88, 36, 122, 5, 149, 217, 197, 23, 142, 188, 115, 160], []), ("ntdll.dll", [62, 149, 145, 235, 252, 191, 133, 85, 242, 21, 141, 48, 202, 56, 81, 58, 46, 108, 15, 86, 235, 133, 113, 36, 68
, 57, 225, 27, 140, 76, 30, 67], []), ("ole32.dll", [166, 248, 194, 178, 140, 77, 24, 10, 60, 170, 109, 88, 151, 2, 45, 194, 243, 121, 10, 22, 47, 62, 108, 26, 222, 131, 105, 225, 84, 27,
 234, 241], []), ("bcrypt.dll", [17, 243, 176, 186, 242, 209, 169, 106, 52, 215, 123, 214, 46, 92, 74, 67, 218, 28, 20, 206, 65, 85, 176, 46, 56, 117, 17, 253, 251, 24, 118, 56], []), ("k
ernel32.dll", [47, 208, 109, 132, 207, 142, 20, 70, 41, 185, 75, 216, 85, 148, 7, 167, 163, 251, 55, 104, 254, 118, 96, 166, 200, 135, 78, 16, 111, 64, 230, 254], []), ("api-ms-win-crt-he
ap-l1-1-0.dll", [174, 207, 46, 90, 90, 186, 225, 219, 172, 27, 11, 15, 227, 127, 6, 31, 156, 218, 210, 63, 172, 233, 120, 215, 23, 68, 98, 197, 206, 62, 49, 198], []), ("shell32.dll", [0,
 14, 53, 147, 234, 152, 174, 28, 55, 243, 142, 125, 2, 163, 32, 147, 60, 149, 240, 245, 137, 212, 144, 41, 25, 59, 179, 187, 176, 72, 9, 135], []), ("api-ms-win-crt-math-l1-1-0.dll", [147
, 5, 190, 154, 191, 63, 197, 149, 137, 132, 148, 162, 58, 159, 233, 154, 204, 147, 7, 141, 199, 76, 194, 10, 9, 152, 2, 223, 94, 5, 124, 181], []), ("powrprof.dll", [198, 128, 23, 207, 4,
 254, 107, 52, 148, 180, 76, 142, 1, 90, 126, 197, 50, 191, 108, 32, 205, 64, 115, 249, 20, 7, 204, 34, 165, 181, 111, 180], []), ("advapi32.dll", [215, 78, 13, 37, 114, 246, 62, 253, 230
, 219, 93, 216, 39, 247, 172, 161, 6, 45, 158, 188, 138, 65, 32, 87, 141, 241, 24, 108, 54, 36, 14, 235], []), ("oleaut32.dll", [32, 176, 240, 44, 253, 36, 1, 116, 51, 136, 42, 143, 175, 
99, 244, 55, 181, 219, 106, 239, 168, 151, 239, 186, 71, 8, 158, 51, 7, 241, 113, 166], []), ("imm32.dll", [79, 148, 95, 205, 36, 103, 138, 133, 29, 161, 175, 129, 252, 181, 182, 230, 186
, 73, 135, 120, 90, 213, 114, 147, 177, 119, 241, 192, 39, 56, 222, 193], []), ("bevy_dexterous_developer_dynamic.dll", [151, 85, 85, 30, 51, 143, 221, 206, 253, 92, 75, 165, 131, 99, 254
, 0, 238, 225, 15, 177, 193, 164, 90, 47, 181, 167, 187, 10, 1, 166, 146, 178], ["shell32.dll", "bcrypt.dll", "kernel32.dll", "gdi32.dll", "uxtheme.dll", "propsys.dll", "d3dcompiler_47.dl
l", "api-ms-win-crt-runtime-l1-1-0.dll", "api-ms-win-crt-string-l1-1-0.dll", "api-ms-win-crt-math-l1-1-0.dll", "ntdll.dll", "uiautomationcore.dll", "advapi32.dll", "ole32.dll", "pdh.dll",
 "psapi.dll", "api-ms-win-core-synch-l1-2-0.dll", "VCRUNTIME140.dll", "api-ms-win-core-winrt-l1-1-0.dll", "std-cef76c2685dfb4ca.dll", "oleaut32.dll", "api-ms-win-crt-heap-l1-1-0.dll", "us
er32.dll", "powrprof.dll", "bcryptprimitives.dll", "dwmapi.dll", "imm32.dll", "iphlpapi.dll", "api-ms-win-core-winrt-error-l1-1-0.dll", "netapi32.dll", "opengl32.dll", "secur32.dll"]), ("
psapi.dll", [254, 45, 243, 74, 181, 71, 18, 184, 11, 187, 81, 142, 153, 65, 47, 42, 96, 91, 59, 22, 86, 127, 23, 165, 77, 107, 137, 186, 115, 190, 17, 53], []), ("api-ms-win-crt-runtime-l
1-1-0.dll", [156, 176, 169, 99, 103, 58, 92, 203, 159, 130, 222, 206, 98, 153, 161, 153, 57, 58, 104, 13, 147, 172, 107, 36, 227, 46, 52, 40, 88, 37, 60, 127], []), ("api-ms-win-core-sync
h-l1-2-0.dll", [222, 177, 171, 139, 225, 162, 129, 244, 132, 12, 77, 53, 136, 210, 192, 210, 249, 81, 250, 4, 158, 194, 13, 46, 238, 157, 124, 143, 211, 159, 128, 255], []), ("user32.dll"
, [118, 58, 107, 158, 163, 30, 149, 65, 82, 106, 231, 135, 186, 195, 203, 174, 89, 79, 235, 11, 196, 212, 198, 228, 93, 178, 184, 10, 135, 217, 213, 83], []), ("bcryptprimitives.dll", [19
1, 124, 24, 131, 233, 184, 195, 68, 139, 132, 234, 101, 52, 109, 162, 237, 53, 206, 162, 246, 112, 94, 134, 132, 203, 71, 244, 92, 107, 54, 194, 196], []), ("api-ms-win-crt-string-l1-1-0.
dll", [200, 144, 57, 64, 93, 73, 204, 158, 113, 239, 23, 23, 184, 223, 95, 212, 10, 215, 67, 109, 221, 191, 217, 241, 170, 253, 93, 0, 171, 141, 194, 159], []), ("d3dcompiler_47.dll", [16
0, 160, 50, 221, 195, 80, 76, 240, 71, 197, 252, 16, 38, 215, 134, 178, 146, 179, 97, 29, 207, 242, 175, 97, 104, 104, 191, 182, 63, 44, 11, 200], []), ("dwmapi.dll", [208, 87, 91, 133, 1
61, 157, 85, 176, 1, 155, 151, 113, 9, 12, 130, 152, 196, 7, 79, 161, 154, 162, 102, 245, 127, 238, 96, 94, 247, 114, 62, 221], []), ("opengl32.dll", [249, 140, 45, 116, 183, 44, 50, 28, 
14, 243, 123, 176, 241, 141, 98, 26, 151, 108, 114, 214, 167, 238, 118, 121, 158, 193, 108, 111, 87, 230, 138, 102], []), ("pdh.dll", [82, 251, 246, 78, 29, 170, 20, 211, 58, 71, 1, 228, 
119, 24, 207, 27, 251, 79, 220, 80, 124, 70, 72, 225, 16, 184, 176, 86, 136, 90, 109, 10], []), ("netapi32.dll", [244, 8, 72, 223, 196, 33, 11, 40, 20, 72, 35, 204, 73, 76, 46, 97, 92, 18
5, 229, 236, 97, 138, 93, 214, 33, 106, 60, 200, 35, 93, 156, 252], []), ("secur32.dll", [136, 224, 251, 148, 55, 188, 134, 65, 218, 169, 182, 32, 240, 245, 179, 169, 50, 78, 13, 9, 184, 
223, 126, 84, 108, 16, 62, 169, 180, 64, 255, 18], []), ("khassar_toolbox_test.dll", [200, 249, 34, 255, 62, 236, 23, 251, 184, 241, 58, 226, 190, 237, 78, 181, 164, 120, 86, 157, 78, 162
, 141, 156, 131, 247, 166, 160, 164, 101, 68, 249], ["bevy_dexterous_developer_dynamic.dll", "std-cef76c2685dfb4ca.dll", "VCRUNTIME140.dll", "api-ms-win-crt-runtime-l1-1-0.dll", "kernel32.dll", "api-ms-win-core-synch-l1-2-0.dll"])], root_library: "khassar_toolbox_test.dll" }
2024-07-18T05:59:06.406404Z  INFO ThreadId(02) build completed: 1
2024-07-18T05:59:06.408554Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\netap
i32.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\netapi32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\netapi32.dll
2024-07-18T05:59:06.408629Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\psapi
.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\psapi.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\psapi.dll
2024-07-18T05:59:06.408654Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\ole32
.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\ole32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\ole32.dll
2024-07-18T05:59:06.408743Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\gdi32
.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\gdi32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\gdi32.dll
2024-07-18T05:59:06.408785Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\bcryp
t.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\bcrypt.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\bcrypt.dll
2024-07-18T05:59:06.408796Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\uxthe
me.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\uxtheme.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\uxtheme.dll
2024-07-18T05:59:06.409225Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\shell
32.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\shell32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\shell32.dll
2024-07-18T05:59:06.409305Z TRACE tokio-runtime-worker Found bevy_dexterous_developer_dynamic.dll at C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\bevy_dexterous_developer_dynamic.dll
2024-07-18T05:59:06.409374Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\api-m
s-win-crt-math-l1-1-0.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\api-ms-win-crt-math-l1-1-0.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\api-ms-win-crt-math-l1-1-0.dll
2024-07-18T05:59:06.409487Z TRACE ThreadId(02) Checking khassar_toolbox_test.dll - bevy_dexterous_developer_dynamic.dll at C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\bevy_dexterous_developer_dynamic.dll
2024-07-18T05:59:06.409614Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\powrp
rof.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\powrprof.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\powrprof.dll
2024-07-18T05:59:06.409769Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\kerne
l32.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\kernel32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\kernel32.dll
2024-07-18T05:59:06.409817Z TRACE tokio-runtime-worker Found khassar_toolbox_test.dll at C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\khassar_toolbox_test.dll
2024-07-18T05:59:06.409980Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\imm32
.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\imm32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\imm32.dll
2024-07-18T05:59:06.410061Z TRACE ThreadId(02) Checking khassar_toolbox_test.dll - khassar_toolbox_test.dll at C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\khassar_toolbox_test.dll
2024-07-18T05:59:06.410260Z TRACE ThreadId(02) Root khassar_toolbox_test.dll at C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\khassar_toolbox_test.dll
2024-07-18T05:59:06.410411Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\advap
i32.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\advapi32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\advapi32.dll
2024-07-18T05:59:06.410654Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\user3
2.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\user32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\user32.dll
2024-07-18T05:59:06.410791Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\api-m
s-win-core-synch-l1-2-0.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\api-ms-win-core-synch-l1-2-0.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\api-ms-win-core-synch-l1-2-0.dll
2024-07-18T05:59:06.410978Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\api-m
s-win-crt-runtime-l1-1-0.dll, C:\SourceCode\rust\khassar_toolbox_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\khassar_toolbox_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-07-18T05:59:06.411026Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\api-m
s-win-crt-string-l1-1-0.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\api-ms-win-crt-string-l1-1-0.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\api-ms-win-crt-string-l1-1-0.dll
2024-07-18T05:59:06.411305Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\d3dco
mpiler_47.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\d3dcompiler_47.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\d3dcompiler_47.dll
2024-07-18T05:59:06.411388Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\dwmap
i.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\dwmapi.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\dwmapi.dll
2024-07-18T05:59:06.411572Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\props
ys.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\propsys.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\propsys.dll
2024-07-18T05:59:06.411738Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\openg
l32.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\opengl32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\opengl32.dll
2024-07-18T05:59:06.411853Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\ntdll
.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\ntdll.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\ntdll.dll
2024-07-18T05:59:06.411809Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\api-m
s-win-crt-heap-l1-1-0.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\api-ms-win-crt-heap-l1-1-0.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\api-ms-win-crt-heap-l1-1-0.dll
2024-07-18T05:59:06.411835Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\oleau
t32.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\oleaut32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\oleaut32.dll
2024-07-18T05:59:06.411747Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\secur
32.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\secur32.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\secur32.dll
2024-07-18T05:59:06.411865Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\bcryp
tprimitives.dll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\bcryptprimitives.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\bcryptprimitives.dll
2024-07-18T05:59:06.411877Z ERROR tokio-runtime-worker Failed to find C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\pdh.d
ll, C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\deps\pdh.dll or C:\SourceCode\rust\khassar_toolbox_test\./target/hot-reload/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc/debug\examples\pdh.dll
2024-07-18T05:59:11.411829Z TRACE ThreadId(02) Received Hot Reload Message: KeepAlive
2024-07-18T05:59:16.413894Z TRACE ThreadId(02) Received Hot Reload Message: KeepAlive
lee-orr commented 1 month ago

Actively working on resolving this - aiming to update things soon.

lee-orr commented 3 weeks ago

@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 commented 3 weeks ago

@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

lee-orr commented 2 weeks ago

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.

lee-orr commented 2 weeks ago

@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 commented 2 weeks ago

@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.