Workspace Setup Fail

Published by KXIIIS on Fri, 04/24/2020 - 20:42
Status
Can not reproduce
Type
Product/platform
MCreator/macOS
Priority
Normal
Issue description

I get a "workspace setup failed" error message even though I've tried everything on the support pages. 

 

Executing 
    Gradle task: eclipse

Build 
    info: MCreator 2020.3.16610 EAP (16610), 1.15.2, 64-bit, 8192 MB, Mac OS 
    X, JVM 1.8.0_252, JAVA_HOME: 
    /private/var/folders/1_/_3scmj4x36vfhdxn3dh9zgbh0000gn/T/AppTranslocation/7951CD55-3353-49C3-999F-8752057E5816/d/MCreator.app/Contents/MacOS/jdk/Contents/Home/jre

org.gradle.tooling.GradleConnectionException: 
    Could not create an instance of Tooling API implementation using the 
    specified Gradle distribution 
    'https://services.gradle.org/distributions/gradle-4.10.3-bin.zip'.

 
      at 
    org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:99 
      at 
    org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:99)

 
      at 
    org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:45 
      at 
    org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:45)

 
      at 
    org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44 
      at 
    org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:104 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:104)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:86 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:86)

 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)

 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61)

 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)

 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:55 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:55)

 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)

 
      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48 
      at 
    org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)

 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149 
      at 
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624 
      at 
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

 
      at java.lang.Thread.run(Thread.java:748 
      at java.lang.Thread.run(Thread.java:748)

Caused 
    by: java.lang.RuntimeException: Could not create an implementation of 
    service 'org.gradle.tooling.internal.protocol.ConnectionVersion4'.

 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.newInstance(DefaultServiceLocator.java:195 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.newInstance(DefaultServiceLocator.java:195)

 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.create(DefaultServiceLocator.java:188 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.create(DefaultServiceLocator.java:188)

 
      at 
    org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:80 
      at 
    org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:80)

 
      ... 14 more

Caused 
    by: org.gradle.api.reflect.ObjectInstantiationException: Could not create 
    an instance of type org.gradle.tooling.internal.provider.DefaultConnection.

 
      at org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:66 
      at 
    org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:66)

 
      at org.gradle.internal.reflect.DirectInstantiator.instantiate(DirectInstantiator.java:45 
      at 
    org.gradle.internal.reflect.DirectInstantiator.instantiate(DirectInstantiator.java:45)

 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.newInstance(DefaultServiceLocator.java:193 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.newInstance(DefaultServiceLocator.java:193)

 
      ... 16 more

Caused 
    by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

 
      at org.gradle.tooling.internal.provider.DefaultConnection.<clinit>(DefaultConnection.java:77 
      at 
    org.gradle.tooling.internal.provider.DefaultConnection.<clinit>(DefaultConnection.java:77)

 
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62 
      at 
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

 
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45 
      at 
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423 
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

 
      at org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:62 
      at 
    org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:62)

 
      ... 18 more

Caused 
    by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory

 
      at java.net.URLClassLoader.findClass(URLClassLoader.java:382 
      at java.net.URLClassLoader.findClass(URLClassLoader.java:382)

 
      at java.lang.ClassLoader.loadClass(ClassLoader.java:418 
      at java.lang.ClassLoader.loadClass(ClassLoader.java:418)

 
      at java.lang.ClassLoader.loadClass(ClassLoader.java:351 
      at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

 
      ... 24 more

TASK 
    EXECUTION FAILED

Task 
    completed in 230 milliseconds

Issue comments

Did you do this?

In some cases, Gradle caches that make sure the build process does not take too long can get corrupted. In such a case, go to:

<your user home folder>/.mcreator/gradle

In this folder, there is a folder called caches. Delete this folder and open MCreator again. Next build will take a bit longer as caches need to be rebuilt.

If this is not enough to make things work, delete the entire gradle folder, not just caches and try again.

Executing 
    Gradle task: eclipse

Build 
    info: MCreator 2020.3.16610 EAP (16610), 1.15.2, 64-bit, 8192 MB, Mac OS 
    X, JVM 1.8.0_252, JAVA_HOME: 
    /Applications/MCreator.app/Contents/MacOS/jdk/Contents/Home/jre

org.gradle.tooling.GradleConnectionException: 
    Could not create an instance of Tooling API implementation using the 
    specified Gradle distribution 
    'https://services.gradle.org/distributions/gradle-4.10.3-bin.zip'.

 
      at 
    org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:99 
      at 
    org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:99)

 
      at 
    org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:45 
      at 
    org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:45)

 
      at 
    org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44 
      at 
    org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:104 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:104)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:86 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:86)

 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)

 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61)

 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)

 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:55 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:55)

 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)

 
      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48 
      at 
    org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)

 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149 
      at 
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624 
      at 
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

 
      at java.lang.Thread.run(Thread.java:748 
      at java.lang.Thread.run(Thread.java:748)

Caused 
    by: java.lang.RuntimeException: Could not create an implementation of 
    service 'org.gradle.tooling.internal.protocol.ConnectionVersion4'.

 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.newInstance(DefaultServiceLocator.java:195 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.newInstance(DefaultServiceLocator.java:195)

 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.create(DefaultServiceLocator.java:188 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.create(DefaultServiceLocator.java:188)

 
      at 
    org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:80 
      at 
    org.gradle.tooling.internal.consumer.loader.DefaultToolingImplementationLoader.create(DefaultToolingImplementationLoader.java:80)

 
      ... 14 more

Caused 
    by: org.gradle.api.reflect.ObjectInstantiationException: Could not create 
    an instance of type org.gradle.tooling.internal.provider.DefaultConnection.

 
      at org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:66 
      at 
    org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:66)

 
      at org.gradle.internal.reflect.DirectInstantiator.instantiate(DirectInstantiator.java:45 
      at 
    org.gradle.internal.reflect.DirectInstantiator.instantiate(DirectInstantiator.java:45)

 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.newInstance(DefaultServiceLocator.java:193 
      at 
    org.gradle.internal.service.DefaultServiceLocator$ServiceFactory.newInstance(DefaultServiceLocator.java:193)

 
      ... 16 more

Caused 
    by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

 
      at org.gradle.tooling.internal.provider.DefaultConnection.<clinit>(DefaultConnection.java:77 
      at 
    org.gradle.tooling.internal.provider.DefaultConnection.<clinit>(DefaultConnection.java:77)

 
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62 
      at 
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

 
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45 
      at 
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423 
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

 
      at org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:62 
      at 
    org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:62)

 
      ... 18 more

Caused 
    by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory

 
      at java.net.URLClassLoader.findClass(URLClassLoader.java:382 
      at java.net.URLClassLoader.findClass(URLClassLoader.java:382)

 
      at java.lang.ClassLoader.loadClass(ClassLoader.java:418 
      at java.lang.ClassLoader.loadClass(ClassLoader.java:418)

 
      at java.lang.ClassLoader.loadClass(ClassLoader.java:351 
      at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

 
      ... 24 more

TASK 
    EXECUTION FAILED

Task 
    completed in 193 milliseconds

First, I checked the knowledge base to see if the solutions there would help my issue before I opened a ticket, then I tried what you suggested above. However, nothing seems to fix the issue. Also, I can't even find the MCreator folder, I can only find the MCreator Workspaces folder.

Also, I can't even find the MCreator folder, I can only find the MCreator Workspaces folder.

So you did not do what I asked. Find MCreator folder (.mcreator) in your user home and delete caches.

You did NOT do what I asked.

Sorry, I can't do what you asked because the folder didn't even generate, like it's not on my computer. Computer Search for MCreator Folder

Oh my goodness, I am so sorry. I did not know this. I apologize for my stupidity and appreciate your patience. I had to delete the entire grade folder but now it works. Thank you so much, and again I'm sorry for my incompetence. 

i tried following the steps, but they dont seem to work :(

i still get this error:

Executing 
    Gradle task: eclipse

Build 
    info: MCreator 2020.3.22116, forge-1.14.4, 64-bit, 3956 MB, Windows 7, JVM 
    1.8.0_252, JAVA_HOME: C:\Users\crafter's user\Desktop\MCreator20203\jdk

org.gradle.tooling.GradleConnectionException: 
    Could not install Gradle distribution from 
    'https://services.gradle.org/distributions/gradle-4.9-bin.zip'.

 
      at 
    org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:139)

 
      at 
    org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:41)

 
      at 
    org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:104)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:86)

 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)

 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61)

 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)

 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:55)

 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)

 
      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)

 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

 
      at java.lang.Thread.run(Thread.java:748)

Caused 
    by: java.lang.RuntimeException: Timeout of 120000 reached waiting for 
    exclusive access to file: C:\Users\crafter's 
    user\.mcreator\gradle\wrapper\dists\gradle-4.9-bin\e9cinqnqvph59rr7g70qubb4t\gradle-4.9-bin.zip

 
      at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)

 
      at org.gradle.wrapper.Install.createDist(Install.java:48)

 
      at org.gradle.tooling.internal.consumer.DistributionInstaller.install(DistributionInstaller.java:72)

 
      at 
    org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:133)

 
      ... 14 more

TASK 
    EXECUTION FAILED

Task 
    completed in 120344 milliseconds

i tried all the steps but it is not making a spigot workspace

 

Executing
    Gradle task: buildLatestSpigot

Build
    info: MCreator 2021.1.18117, spigot-1.16.5, 32-bit, 1978 MB, Windows 7,
    JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk

Download
    https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar

>
    Task :buildLatestSpigot

BuildTools
    requires at least 512M of memory to run (1024M recommended), but has only
    detected 247M.

This
    can often occur if you are running a 32-bit system, or one with low RAM.

Please
    re-run BuildTools with manually specified memory, e.g: java -Xmx1024M -jar
    BuildTools.jar --rev 1.16.5

>
    Task :buildLatestSpigot FAILED

FAILURE:
    Build failed with an exception.

*
    Where:

Build
    file 'C:\Users\aadi\MCreatorWorkspaces\mkdc\build.gradle' line: 38

*
    What went wrong:

Execution
    failed for task ':buildLatestSpigot'.

>
    Process 'command 'C:\Program Files\Pylo\MCreator\jdk\bin\java.exe''
    finished with non-zero exit value 1

*
    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 15s

1
    actionable task: 1 executed

BUILD
    FAILED

Task
    completed in 15 seconds



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.