Custom Code Overylay Failed to Compile

Status
Resolved
Type
Product/platform
MCreator/macOS
Priority
Normal
Issue description

As seen on title

workspace: https://mega.nz/file/ONwRRSRQ#SIekOK3ryZQpXOgOsm7lx01hV-jEdBAigl8u5FOgu…

Console Log

Executing 
    Gradle task: build

Build 
    info: MCreator 2020.3.20316 EAP (20316), forge-1.14.4, 64-bit, 16384 MB, 
    Mac OS X, JVM 1.8.0_252, JAVA_HOME: 
    /Applications/MCreator.app/Contents/MacOS/jdk/Contents/Home/jre

> 
    Configure project :

New 
    Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3

> 
    Task :compileJava FAILED

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PowerOverlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PowerOverlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class PowerOverlay extends SURVIVEElements.ModElement {

 
                                                    ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PowerOverlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PowerOverlay.java:22: 
    error: cannot find symbol 
 
      public PowerOverlay(SURVIVEElements instance) {

 
                          ^

 
     symbol:   class SURVIVEElements

 
     location: class PowerOverlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H2Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H2Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class H2Overlay extends SURVIVEElements.ModElement {

 
                                                 ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H2Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H2Overlay.java:22: 
    error: cannot find symbol 
 
      public H2Overlay(SURVIVEElements instance) {

 
                       ^

 
     symbol:   class SURVIVEElements

 
     location: class H2Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E1Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E1Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class E1Overlay extends SURVIVEElements.ModElement {

 
                                                 ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E1Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E1Overlay.java:22: 
    error: cannot find symbol 
 
      public E1Overlay(SURVIVEElements instance) {

 
                       ^

 
     symbol:   class SURVIVEElements

 
     location: class E1Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/TempretureOverlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/TempretureOverlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class TempretureOverlay extends SURVIVEElements.ModElement {

 
                                                         ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/TempretureOverlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/TempretureOverlay.java:22: 
    error: cannot find symbol 
 
      public TempretureOverlay(SURVIVEElements instance) {

 
                               ^

 
     symbol:   class SURVIVEElements

 
     location: class TempretureOverlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd2Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd2Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class Hyd2Overlay extends SURVIVEElements.ModElement {

 
                                                   ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd2Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd2Overlay.java:22: 
    error: cannot find symbol 
 
      public Hyd2Overlay(SURVIVEElements instance) {

 
                         ^

 
     symbol:   class SURVIVEElements

 
     location: class Hyd2Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd1Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd1Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class Hyd1Overlay extends SURVIVEElements.ModElement {

 
                                                   ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd1Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd1Overlay.java:22: 
    error: cannot find symbol 
 
      public Hyd1Overlay(SURVIVEElements instance) {

 
                         ^

 
     symbol:   class SURVIVEElements

 
     location: class Hyd1Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E2Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E2Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class E2Overlay extends SURVIVEElements.ModElement {

 
                                                 ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E2Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E2Overlay.java:22: 
    error: cannot find symbol 
 
      public E2Overlay(SURVIVEElements instance) {

 
                       ^

 
     symbol:   class SURVIVEElements

 
     location: class E2Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H1Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H1Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class H1Overlay extends SURVIVEElements.ModElement {

 
                                                 ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H1Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H1Overlay.java:22: 
    error: cannot find symbol 
 
      public H1Overlay(SURVIVEElements instance) {

 
                       ^

 
     symbol:   class SURVIVEElements

 
     location: class H1Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd3Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd3Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class Hyd3Overlay extends SURVIVEElements.ModElement {

 
                                                   ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd3Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/Hyd3Overlay.java:22: 
    error: cannot find symbol 
 
      public Hyd3Overlay(SURVIVEElements instance) {

 
                         ^

 
     symbol:   class SURVIVEElements

 
     location: class Hyd3Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H3Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H3Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class H3Overlay extends SURVIVEElements.ModElement {

 
                                                 ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H3Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/H3Overlay.java:22: 
    error: cannot find symbol 
 
      public H3Overlay(SURVIVEElements instance) {

 
                       ^

 
     symbol:   class SURVIVEElements

 
     location: class H3Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/HyperovlyOverlay.java:19: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/HyperovlyOverlay.java:26: 
    error: package SURVIVEElements does not exist 
public 
    class HyperovlyOverlay extends SURVIVEElements.ModElement {

 
                                                        ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/HyperovlyOverlay.java:25: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/HyperovlyOverlay.java:27: 
    error: cannot find symbol 
 
      public HyperovlyOverlay(SURVIVEElements instance) {

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: class HyperovlyOverlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E3Overlay.java:16: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E3Overlay.java:21: 
    error: package SURVIVEElements does not exist 
public 
    class E3Overlay extends SURVIVEElements.ModElement {

 
                                                 ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E3Overlay.java:20: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/E3Overlay.java:22: 
    error: cannot find symbol 
 
      public E3Overlay(SURVIVEElements instance) {

 
                       ^

 
     symbol:   class SURVIVEElements

 
     location: class E3Overlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PoweriiOverlay.java:19: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PoweriiOverlay.java:26: 
    error: package SURVIVEElements does not exist 
public 
    class PoweriiOverlay extends SURVIVEElements.ModElement {

 
                                                      ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PoweriiOverlay.java:25: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PoweriiOverlay.java:27: 
    error: cannot find symbol 
 
      public PoweriiOverlay(SURVIVEElements instance) {

 
                            ^

 
     symbol:   class SURVIVEElements

 
     location: class PoweriiOverlay

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PoweriiiOverlay.java:19: 
    error: cannot find symbol 
import 
    net.mcreator.survive.SURVIVEElements;

 
                              ^

 
     symbol:   class SURVIVEElements

 
     location: package net.mcreator.survive

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PoweriiiOverlay.java:26: 
    error: package SURVIVEElements does not exist 
public 
    class PoweriiiOverlay extends SURVIVEElements.ModElement {

 
                                                       ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PoweriiiOverlay.java:25: 
    error: package SURVIVEElements.ModElement does not exist 
@SURVIVEElements.ModElement.Tag

 
                              ^

/Users/WilliamZhang/McreatorWorkspaces/survive/src/main/java/net/mcreator/survive/gui/overlay/PoweriiiOverlay.java:27: 
    error: cannot find symbol 
 
      public PoweriiiOverlay(SURVIVEElements instance) {

 
                             ^

 
     symbol:   class SURVIVEElements

 
     location: class PoweriiiOverlay

56 
    errors

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 5.0.

Use 
    '--warning-mode all' to show the individual deprecation warnings.

See 
    https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD 
    FAILED in 1s

1 
    actionable task: 1 executed

BUILD 
    FAILED

Task 
    completed in 18727 milliseconds

 

Issue comments

You probably changed mod name in the process.

  • [Bugfix #60526] Changing mod display name could cause build errors

Regenerate code to fix this, proper fix coming in 2020.3.

You have overlays with locked code so MCreator can't update these.

Unlock them and let MCreator update them and then reapply changes OR keep them locked and manually fix this problem in the code.

MCreator can't touch locked files (as the term locked suggests)



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.