How do I fix the "cannot find symbol" error? (Fabric)

Started by offplay_ on

Topic category: Help with MCreator software

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I fix the "cannot find symbol" error? (Fabric)

I made some changes to my creative inventory order and now i'm getting loads of "cannot find symbol" errors for blocks that I didn't move. how do I fix this or help the mod relocate these. what caused this?

Secondly, when clicking on the passthrough link to show where the error is in "OffplayModBlocks.java", the code thats "missing" seems to be exactly on the line it says its not.

Lastly, I decided to delete the original blocks that were effected and recreate them hoping the would re-insert themselves back into the Blocks.java correctly, (which they did) but it then proceeded to give the error to the next block in the line making it an endless cycle.


Executing Gradle task: build
Build info: MCreator 2023.2.24119, fabric-1.20.1, 64-bit, 16299 MB, Windows 10, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-09-01-09:25:36

> Configure project :
Fabric Loom: 1.2.7
> Task :compileJava
C:\Users\NEXGEN\MCreatorWorkspaces\offplay\src\main\java\net\offplay\init\OffplayModBlocks.java:1623: error: cannot find symbol COBBLED_DRIPSTONE_STAIRS = Registry.register(BuiltInRegistries.BLOCK, new ResourceLocation(OffplayMod.MODID, "cobbled_dripstone_stairs"), new CobbledDripstoneStairsBlock());
^
(etc..)
symbol: class BlueStainedDarkOakStairsBlock
location: class OffplayModBlocks
100 errors
only showing the first 100 errors, of 366 total; use -Xmaxerrs if you would like to see more
> 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
BUILD FAILED in 9s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 13 seconds