Compile Error With Dimensions When Edited

Status
Invalid
Issue description

The Dimension would work just fine until I edited it, don't know what happened.

 

Executing gradle task: build
Build info: MCreator 2020.1.05419, 1.12.2, 64-bit, 3767 MB, Windows 7, JVM 1.8.0_232, JAVA_HOME: C:\Users\Owner\MCreatorWorkspaces\MCreator20201\MCreator20201\jdk
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:applyBinaryPatches SKIPPED
:deobfProvidedDummyTask
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:deobfMcMCP SKIPPED
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:276: error: illegal start of type
}
^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:276: error: ';' expected
}
 ^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:277: error: reached end of file while parsing
}
 ^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:279: error: reached end of file while parsing
4 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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 21s
7 actionable tasks: 5 executed, 2 up-to-date
BUILD FAILED
Task completed in 30363 milliseconds

Issue comments

Edited the code?

If so, you are on your own as if you want to code, you need to learn how to code and read compiler errors.

Then follow the rules:

When possible, include your MCreator workspace (or even better a minimal example workspace required to reproduce the bug), game crash logs (full logs, do not crop them, in text format, not screenshots of logs) from the Console tab or terminal and steps to reproduce the bug in your workspace. Please specify which mod elements to check in your workspace too, if applicable.

Sorry I don't know how else to give you a .zip file so I just made a mod post.

 

Here is the console too:

 

:deobfCompileDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:applyBinaryPatches SKIPPED
:deobfProvidedDummyTask
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:deobfMcMCP SKIPPED
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:115: error: illegal start of type
}public static class BlockCustomPortal extends BlockPortal {
^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:115: error: ';' expected
}public static class BlockCustomPortal extends BlockPortal {
 ^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:192: error: '{' expected
   public static class Size /* failed to load code for net.minecraft.block.BlockPortal */
                           ^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:486: error: illegal start of type
}
^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:486: error: ';' expected
}
 ^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:487: error: reached end of file while parsing
}
 ^
C:\Users\Owner\MCreatorWorkspaces\minecraft_delta_mod\build\sources\main\java\net\mcreator\minecraft_delta_mod\MCreatorLiftDimension.java:489: error: reached end of file while parsing
7 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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 10s
7 actionable tasks: 4 executed, 3 up-to-date
BUILD FAILED
Task completed in 361156 milliseconds

 

Try to do this again:

Go to the Build & run menu and click the following two options in the given order

  1. Reload Gradle project
  2. Regenerate code and build

I am out of other ideas what could cause this. Try disabling AV and do this again, or try exporting the workspace to shareable ZIP and importing it back into MCreator.

Another note: "minecraft_delta_mod - Copy.mcreator" you can't just copy the file like this, do not mess with workspace files, this will cause all sorts of problems. The name should be <modid>.mcreator

Based on these strange names, you might have corrupted workspace beyond repair.

ive been geting this error everytime i try to make a dimension

Executing Gradle task: runClient
Build info: MCreator 2021.2.36710, forge-1.16.5, 64-bit, 3927 MB, Windows 10, JVM 11.0.11, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Task :compileJava
C:\Users\goodk\MCreatorWorkspaces\leepaverse\src\main\java\net\mcreator\leepaverse\world\dimension\CandyDimensionDimension.java:205: error: '{' expected public static class CustomPortalSize /* failed to load code for net.minecraft.block.CustomPortalSize */
^
C:\Users\goodk\MCreatorWorkspaces\leepaverse\src\main\java\net\mcreator\leepaverse\world\dimension\CandyDimensionDimension.java:294: error: reached end of file while parsing }
^
2 errors
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 3s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 8 seconds