MCreator build error

does anyone know how to fix this error in MCreator?

Executing Gradle task: build 
Build info: MCreator 2024.2.32117, neoforge-1.20.6, 64-bit, 7581 MB, Windows 11, JVM 21.0.3, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2024-09-02-18:31:23 
 
FAILURE: Build failed with an exception. 
* What went wrong: 
Gradle could not start your build. 
> Cannot create service of type TaskExecuter using method ProjectExecutionServices.createTaskExecuter() as there is a problem with parameter #9 of type ReservedFileSystemLocationRegistry. 
   > Cannot create service of type ReservedFileSystemLocationRegistry using method ProjectExecutionServices.createReservedFileLocationRegistry() as there is a problem with parameter #1 of type List<ReservedFileSystemLocation>. 
      > Could not create service of type ExecutionHistoryStore using ExecutionGradleServices.createExecutionHistoryStore(). 
         > Cannot lock execution history cache (C:\Users\matty\MCreatorWorkspaces\haydenc\.gradle\8.8\executionHistory) as it has already been locked by this process. 
* 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 1s 
 
BUILD FAILED 
Task completed in 1 second

Seems to be a follow-up error if it similar to Gradle crashes when trying to serialize nested extension object on task · Issue #24405 · gradle/gradle · GitHub.
There some other error happened which left over that lock that cannot be retrieved.
So to temporary fix it you need to do ./gradlew --stop and then if the actual error pops up that causes it, report that.