Fabric Dev help

Hey, does anyone ever get redacted\fabricproject\build\loom-cache\remapped_working\net_fabricmc_yarn_1_21_4_1_21_4_build_8_v2.net.fabricmc.fabric-api-fabric-api-0.114.2+1.21.4.jar: The process cannot access the file because it is being used by another process on gradle sync? I've tried everything. Invalidating caches. changing fabric mc ver and api ver and loom ver. The list goes on. Nothing in fabric modding discord helps.
21 Replies
Admincraft Meta
Admincraft Meta•3w ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by skullians#0
Skullians
SkulliansOP•3w ago
bump
Balerii
Balerii•3w ago
Try closing your IDE and delete build folder manually
Skullians
SkulliansOP•3w ago
been there, done that deleted .gradle (local and user wide), build folder different gradle version different java version too
Balerii
Balerii•3w ago
Weird, does it appear only on the latest version?
Skullians
SkulliansOP•3w ago
all mc versions I've tried everything. Invalidating caches. changing fabric mc ver and api ver and loom ver.
Balerii
Balerii•3w ago
damn, where did you get fabric development package?
Skullians
SkulliansOP•3w ago
I've tried both the MC Development plugin (IntelliJ) and the example mod repo and the online generator.
Balerii
Balerii•3w ago
Did you try investigate what is locking the file?
Skullians
SkulliansOP•3w ago
Yes, it looks like an idle java process I get the same issue when killing the java process and attempting sync it appears to be the idle gradle daemon
Balerii
Balerii•3w ago
And let me guess, you already tried to switch between gradles, am I right?
Skullians
SkulliansOP•3w ago
"different gradle version" yep
Balerii
Balerii•3w ago
Have you tried to build it without ide, like cli gradle commands? Also there is a last resort thing if you are really desperate. Try to build it in WSL. Linux doesn't have issues with "files being locked by some stupid process" at all. Intelij idea should have some kind of wsl support in it, like VS code does
Skullians
SkulliansOP•3w ago
tried both of them
Balerii
Balerii•3w ago
even this? It cannot be that the same "windows" error appear at linux Also there is a feature in gradle that crates different threads to handle your gradle setup, maybe try and switch off it
Skullians
SkulliansOP•3w ago
actually yeah it's fine in WSL org.gradle.parallel=false I've already tried this unsure if there's another setting
Balerii
Balerii•3w ago
well, at least it works somewhere. Kinda weird way to make mods, but if there is nothing to do else, then why not
Skullians
SkulliansOP•3w ago
😭 yeah
Balerii
Balerii•3w ago
really weird, I have never encountered such an issue for 3 years plugin/mod development on windows.
Skullians
SkulliansOP•3w ago
neither it has only started recently
Balerii
Balerii•3w ago
have you tried it on another windows machine or a virtual box? maybe there is some junk happened to be somewhere in your C driver and it messes it all up.

Did you find this page helpful?