(SOLVED) Failed to compile java - not a regular file

Started by gorgin on

Topic category: Troubleshooting, bugs, and solutions

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(SOLVED) Failed to compile java - not a regular file
Tue, 06/18/2024 - 21:22 (edited)

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

Edited by gorgin on Tue, 06/18/2024 - 21:22
Reboot PC and then delete C:…
Tue, 06/18/2024 - 19:39

Reboot PC and then delete

C:\Users\ebsom\OneDrive\Documents\MCreator + Blockbench\mcreator_workspaces\geafm\build

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I had the same problem, but…
Wed, 09/18/2024 - 20:45

I had the same problem, but I had to export my mod, and then import that file to replace my mod, which worked