VarListmodname compile error

Published by GalaxyNuke on
Status
Works as designed
Issue description

C:\Pylo\MCreator178\forge\build\sources\main\java\mod\mcreator\mcreator_VarListmodname.java:5: error: <identifier> expected
    public static int  = 1;
                     ^
1 error

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.
 

Issue comments

You have added a variable with an empty name. Remove this variable from the list and it will work. We will improve the validation of empty names in the future so this won't be even possible to do.

Executing gradle command: clean runClient
Microsoft Windows [Version 10.0.16299.371]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Pylo\MCreator179>cd forge
C:\Pylo\MCreator179\forge>SET "JAVA_HOME=C:\Pylo\MCreator179\jdk\"
C:\Pylo\MCreator179\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\MCreator179\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\MCreator179\forge>SET "GRADLE_USER_HOME=C:\Users\sungo\.mcreator\gradle"
C:\Pylo\MCreator179\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms512m -Xmx1500m" clean runClient 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-4a7d623        
  https://github.com/MinecraftForge/ForgeGradle &nbsp;
#################################################
                 Powered by MCP                  
             http://modcoderpack.com            &nbsp;
     by: Searge, ProfMobius, R4wk, ZeuX          
     Fesh0r, IngisKahn, bspkrs, LexManos         
#################################################
:clean
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
C:\Pylo\MCreator179\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:140: error: cannot find symbol
   mcreator_rubyRecipe mcreator_105 = new mcreator_rubyRecipe();
   ^
  symbol:   class mcreator_rubyRecipe
  location: class TestEnvironmentMod
1 error
: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.
BUILD FAILED
Total time: 45.988 secs
C:\Pylo\MCreator179\forge>
Task completed with return code 0 in 47672 milliseconds