You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a sidecar located in binaries/ that is not loaded correctly when called from javascript. It fails every time (as in the proc = await cmd.spawn(); line throws an error) and the resulting error (which is only a string) is the very helpful message: "The system cannot find the file specified. (os error 2)". I have been able to debug the frontend (which hasn't been very helpful, I can just see that it's failing when calling the rust), but have not been able to successfully debug the backend.
Several iterations ago I had this running with an absolute path calling the program using cmd.spawn() and it seemed to work but that was many iterations ago and I didn't record the results or code for posterity. I want to use the sidecar so that I can fully contain the launched process within the application and I don't need to manage child processes or anything.
I also have the executable with the appropriate triplet appended in the src-tauri/binaries folder. The name of the executable is RLL.Utility.DataOrchestrator-x86_64-pc-windows-msvc.exe and the program builds and I see the resulting exe in the target/debug directory.
Reproduction
Use the configuration I specified above.
Click the button on the frontend that executes the appropriate javascript.
Inspect the frontend devtools for the logged error.
Expected behavior
The command.spawn() line to not throw an error and peacefully start the specified process.
Describe the bug
I have a sidecar located in binaries/ that is not loaded correctly when called from javascript. It fails every time (as in the
proc = await cmd.spawn();
line throws an error) and the resulting error (which is only a string) is the very helpful message:"The system cannot find the file specified. (os error 2)"
. I have been able to debug the frontend (which hasn't been very helpful, I can just see that it's failing when calling the rust), but have not been able to successfully debug the backend.Several iterations ago I had this running with an absolute path calling the program using cmd.spawn() and it seemed to work but that was many iterations ago and I didn't record the results or code for posterity. I want to use the sidecar so that I can fully contain the launched process within the application and I don't need to manage child processes or anything.
My tauri.conf.json:
My capabilities/default.json:
My svelte code for spawning the sidecar:
I also have the executable with the appropriate triplet appended in the src-tauri/binaries folder. The name of the executable is
RLL.Utility.DataOrchestrator-x86_64-pc-windows-msvc.exe
and the program builds and I see the resulting exe in the target/debug directory.Reproduction
Expected behavior
The
command.spawn()
line to not throw an error and peacefully start the specified process.Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: