-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
" failed to rename compilation results " Zig build fails to compile while zig build run
is active.
#21168
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
Comments
I'd assume that a If I'm not wrong about this being the issue, then I'm not sure whether the build system integration can/should do much to work around such a system-level limitation. |
I unload the I believe the access denied is related to the hash generated by the compiler in .zig-cache when compiling the This also only happens when using |
I'm not sure where you're adding this newline. Do you see effects of the hot swapping within the running program? Your original post says
however the build system caches every step based on the inputs.
I'm not sure whether the run step runs the .exe from the location it is installed. |
Figured out that due to some odd caching, the build script was recompiling itself. Deleting the cache and rebuilding fixed it |
I know this is closed, but I had a similar error message on MacOS and it turns out that iCloud sync running on the directory also causes a similar error message. |
I've seen that issue but I am fully on Windows so I think with no iTunes or any cloud tooling actually |
@rohlem So this issuse is not fixed on mac. right?
|
Additional info, this project dir is on my truenas smb volume |
@KarryCharon This issue's original post is someone experiencing AccessDenied on Windows, and I'm not sure what they did to fix it. Also I don't think you ever stating what version of zig you're using (the output of |
Ok thanks, and my zig version is 0.13.0. And I'll create a issuse then.
|
Regarding my issue, it was the build.zig Recompiling at every run. Deleting the cash folder fixed the issue but I am unsure what caused the behaviour in the first place. |
Not the same with me...Caz even create a new project bug also |
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
I have a hot reload plugin system added to my project on windows. While the main project is running attempting to recompile the shared library results in the zig.build compilation to fail and throw this error.
Modifying the zig.build by adding a comment line results in the library compiling with 0 issues.
Here is the repo used for this test: Repo
Expected Behavior
zig build -Dplug_only=true
To compile normally.The text was updated successfully, but these errors were encountered: