Help, cannot find symbol

Started by Rautville on Thu, 07/12/2018 - 23:39

Topic category: Bugs and solutions

Last seen on 00:46, 18. Jul 2018
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help, cannot find symbol
Wed, 07/18/2018 - 12:58 (edited)

Already 3 day I struggle with a problem (cannot find symbol) help, what to do in this situation, by the way it's a sword

 

code error:

C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\testenvironmentmod.java:47: error: cannot find symbol
    mcreator_swordLich mcreator_3 = new mcreator_swordLich();
    ^
  symbol:   class mcreator_swordLich
  location: class testenvironmentmod
C:\Pylo\MCreator173\forge\build\sources\java\mod\mcreator\testenvironmentmod.java:47: error: cannot find symbol
    mcreator_swordLich mcreator_3 = new mcreator_swordLich();
                                        ^
  symbol:   class mcreator_swordLich
  location: class testenvironmentmod
2 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.
 

Edited by Rautville on Wed, 07/18/2018 - 12:58
Last seen on 16:31, 21. Nov 2020
Joined Feb 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
A way to fix this problem of…
Sun, 07/15/2018 - 14:31

A way to fix this problem of yours is to factory reset your MCreator and recreate all you made up till now or to import back in an mcr file of your mod before this error happened. This happens frequently to me as well, so I believe I know how to deal with this problem.

Last seen on 00:46, 18. Jul 2018
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
and if the mod is global,…
Wed, 07/18/2018 - 00:20

and if the mod is global, and there's a lot of things to be remade?
 

Last seen on 09:06, 24. Nov 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can switch to another…
Wed, 07/18/2018 - 12:58

You can switch to another workspace and back to the first one. This will fix the problem too.

Last seen on 15:16, 7. May 2019
Joined Dec 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For me worked to delete all…
Thu, 07/26/2018 - 23:44

For me worked to delete all listed mod elements and recreate them. You have only one and I had 24. According to your error code you should delete (and probably recreate) mod element "swordLich".