Error: Cannot find symbol

Published by Giantfart on Fri, 03/20/2020 - 14:35
Status
Fixed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

Executing gradle task: build
Build info: MCreator 2020.1.05419, 1.14.4, 64-bit, 16175 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.1.117_mapped_snapshot_20190719-1.14.3
> Task :compileJava FAILED
C:\Users\LENOVO\MCreatorWorkspaces\amethyst_ore\src\main\java\net\mcreator\amethyst_ore\MCreatorAmethystore.java:55: error: cannot find symbol
               .harvestTool(ToolType.P�CKAXE));
                                    ^
  symbol:   variable P�CKAXE
  location: class ToolType
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. 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:c…
BU�LD FAILED in 7s

 

Except this is what's written on the code

 

public static class CustomBlock extends Block {
        public CustomBlock() {
            super(Block.Properties.create(Material.ROCK).sound(SoundType.STONE).hardnessAndResistance(3.5f, 15f).lightValue(0).harvestLevel(1)
                    .harvestTool(ToolType.PICKAXE));
            setRegistryName("amethystore");

 

It uses a normal "I". The console is seeing things that aren't there.

Issue comments

I would like to also point out that the auto-correct is the one that is writing that line so I couldn't have accidently written a very weird symbol that looks like "I"



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.