Jump to content

Recommended Posts

Posted

HowdyAll

 

I'm finding that many of the vanilla sources seem to be missing from my mcp gradle-generated workspace and I'm not sure why.  

 

Am I doing something wrong?

 

Example my screenshot below-

The source for TNTMinecartEntity isn't present in \forge-1.15.2-31.1.18_mapped_snapshot_20200225-1.15.1-sources.jar, even though the source for SpawnerMinecraftEntity is present.

Strangely enough, the private member variable is deobfuscated, even though the various method parameters aren't.

 

I'm using IntelliJ 2019.3, with 

minecraft 'net.minecraftforge:forge:1.15.2-31.1.18'

mappings channel: 'snapshot', version: '20200225-1.15.1'

 

Any ideas?

 

Cheers 

  TGG

SourceCodeMissing.png

Posted

Have you tried reimporting?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

Hi Umbra

 

Yes, I tried reimporting but it made no difference.

 

I even tried:

1) Create a new user account on my PC

2) Install IntelliJ IDEA fresh

3) Download forge-1.15.2-31.1.18-mdk.zip
4) Extract contents to Documents\test
5) IntelliJ IDEA 2019.3 open build.gradle (open as project)

6) wait....

 

It linked the library fine:

forge-1.15.31.1.18_mapped_snapshot_20200225-1.15.1.jar 

but TNTMinecraftEntity is still obfuscated.  

 

When I browse through the sources jar:

forge-1.15.2-31.1.18_mapped_snapshot_20200225-1.15.1-sources.jar

there is a TNTMinecraftEntity.java in there, and it is properly deobfuscated.  When I go through it line-by-line to compare with the decompiled TNTMinecraftEntity.class file, it appears to be the same.

 

So for some reason IntelliJ is not matching the TNTMinecraftEntity.class to the corresponding source in the sources jar.

 

I'll keep digging... any advice gratefully received...

 

Cheers,

  TGG

  

SourcesNotFound.thumb.png.73d3847550080d2503d813c0bb3c12d3.png

 

  • 1 month later...
Posted (edited)

I have been experiencing the same problem described here, IntelliJ is unable to link source files to class files when the source files are clearly there. Some classes seem to have source files, and others do not, something that seems to be determined by some hashing algorithm. Has a fix for this problem been found?

 

EDIT: After using a slightly different search term I think I found a solution to my problem. Apparently refreshing IntelliJ's caches fixes it, at least temporarily? However unexpected this fix is, it seems to work. I would have guessed the things I tried would have invalidated IntelliJ's caches, but I guess not.

Edited by K_Sasha
Solution found
Posted

I think this is an intellij issue that's been fixed in recent versions

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

I was having the same issue with the same version of Forge but in Eclipse. I fixed it by running Gradle > Refresh Gradle Project. Perhaps running

./gradlew --refresh-dependencies

will have a similar effect.

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.

Guest
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.

Announcements



×
×
  • Create New...

Important Information

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