rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.80.1 (3f5fd8dd4 2024-08-06)`
win11
command
pnpm tauri dev
desc
error: failed to run custom build command for windows_x86_64_msvc v0.48.5
Caused by:
could not execute process D:\workspaces\rust\app-1\src-tauri\target\debug\build\windows_x86_64_msvc-73c75ea0da9a783c\build-script-build (never executed)
Caused by:
拒绝访问。 (os error 5)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for serde_json v1.0.127
Caused by:
could not execute process D:\workspaces\rust\app-1\src-tauri\target\debug\build\serde_json-684725161e9bb153\build-script-build (never executed)
Caused by:
拒绝访问。 (os error 5)
Reproduction
No response
Expected behavior
No response
Full tauri info output
> app-1@0.1.0 tauri D:\workspaces\rust\app-1
> tauri "dev"
Running BeforeDevCommand (`pnpm dev`)
> app-1@0.1.0 dev D:\workspaces\rust\app-1
> vite
VITE v5.4.2 ready in 552 ms
➜ Local: http://localhost:1420/
Info Watching D:\workspaces\rust\app-1\src-tauri for changes...
Compiling serde_derive v1.0.209
Compiling zerocopy-derive v0.7.35
Compiling thiserror-impl v1.0.63
Compiling cssparser v0.27.2
Compiling derive_more v0.99.18
Compiling cssparser-macros v0.6.1
Compiling html5ever v0.26.0
Compiling darling_core v0.20.10
Compiling windows_x86_64_msvc v0.48.5
Compiling regex-automata v0.4.7
Compiling serde_json v1.0.127
Compiling serde_derive_internals v0.29.1
Compiling brotli v6.0.0
Compiling ctor v0.2.8
Compiling glob v0.3.1
Compiling libc v0.2.158
error: failed to run custom build command for `windows_x86_64_msvc v0.48.5`
Caused by:
could not execute process `D:\workspaces\rust\app-1\src-tauri\target\debug\build\windows_x86_64_msvc-73c75ea0da9a783c\build-script-build` (never executed)
Caused by:
拒绝访问。 (os error 5)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `serde_json v1.0.127`
Caused by:
could not execute process `D:\workspaces\rust\app-1\src-tauri\target\debug\build\serde_json-684725161e9bb153\build-script-build` (never executed)
Caused by:
拒绝访问。 (os error 5)
Hmm, could this be some anti virus software blocking the build scripts? That's the only thing that comes to mind, so maybe try whitelisting the build folder 🤔 (should also speed up the build times)
Describe the bug
version
command
desc
error: failed to run custom build command for
windows_x86_64_msvc v0.48.5
Caused by: could not execute process
D:\workspaces\rust\app-1\src-tauri\target\debug\build\windows_x86_64_msvc-73c75ea0da9a783c\build-script-build
(never executed)Caused by: 拒绝访问。 (os error 5) warning: build failed, waiting for other jobs to finish... error: failed to run custom build command for
serde_json v1.0.127
Caused by: could not execute process
D:\workspaces\rust\app-1\src-tauri\target\debug\build\serde_json-684725161e9bb153\build-script-build
(never executed)Caused by: 拒绝访问。 (os error 5)
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response