Topic category: Troubleshooting, bugs, and solutions
Solution:
Reboot PC and then delete
EDIT:
I've deleted the folder containing the block entity class files, then ctr + z to bring them back. For some reason it seemed to have worked but I'm still looking for a fix that will make it never happen again.
It happened again at a different file, so I need a permanent solution still
I kept doing it and it worked, I'll edit this again if it stops happening
I've tried
Restarting MCreator
Reloading Gradle project
Regenerating code and build
Re-installing MCreator
Putting the files in exclusion for Virus and Threat Protection
This keeps happening and it sometimes goes away for a couple hours, but it keeps coming back. This time it won't go away, and I'm looking for a permanent fix.
There shouldn't be anything wrong with the block, I didn't change anything and it just stopped working
Full Error:
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Cannot access output property 'destinationDirectory' of task ':compileJava'. Accessing unreadable inputs or outputs is not supported. Declare the task as untracked by using Task.doNotTrackState(). For more information, please refer to https://docs.gradle.org/8.7/userguide/incremental_build.html#sec:disabl… in the Gradle documentation.
> java.io.IOException: Cannot snapshot C:\Users\ebsom\OneDrive\Documents\MCreator + Blockbench\mcreator_workspaces\geafm\build\classes\java\main\net\mcreator\geafm\block\entity\Battery1BlockEntity$1.class: not a regular file
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 2s
27 actionable tasks: 1 executed, 26 up-to-date
BUILD FAILED
Task completed in 2 seconds
Reboot PC and then delete
I had the same problem, but I had to export my mod, and then import that file to replace my mod, which worked