Jump to content

[1.14.4] DistExecutor.runForDist causing errors in Eclipse.


Recommended Posts

I have created a mod and have set up a proxy using this line:

public static IProxy proxy = new DistExecutor.runForDist(() -> () -> () -> new ClientProxy(), () -> () -> () -> new ServerProxy());

When I have this line uncommented in Eclipse, it red underlines 'DistExecutor.runForDist' and says:

DistExecutor.runForDist cannot be resolved to a type.

However, when I click the run button, Eclipse loads up Minecraft as if there are no errors at all but my mod does not show up. And looking through the logs shows no sign of it even getting to the setup stage of my mod.

When I comment out the line, Eclipse runs Minecraft, but like before my mod does not show up (there are no errors anywhere else).


Because of this, I decided to start up my game using Terminal. When the line is commented out, the mod compiles and shows up in the game. When the line is uncommented, it does not compile. It shows this error in the terminal:1855895468_ScreenShot2019-08-24at14_10_17.thumb.png.2e971f1ae9d47857e8fe063c4e887495.png

It seems to me that DistExecutor.runForDist is an actual error and not one of the Eclipse 'ghost errors'. Just to make sure I wasn't going crazy, I looked at the source code for forge and indeed, 'runForDist' is a valid function.


What is causing Eclipse to think this is an error?





https://pastebin.com/zqpT0Rzt - main code

https://pastebin.com/FbcRv6ah - latest.log (debug.log was too large) - this is the log when the mod did compile. There is no log produced when it doesn't compile.


Edited by DreamingSanity
Link to comment
Share on other sites

9 minutes ago, Animefan8888 said:

Why is that "new" there?

That's my mistake - I thought I saw the video write new. Maybe I am crazy!


A fresh pair of eyes is always good.

Thank you, that has fixed it! (along with removing some brackets - I had one to many on both sides)



EDIT: Unfortunately, even with no errors, when running Minecraft from Eclipse, my mod isn't being loaded.

Edited by DreamingSanity
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.