minecraft-dev / MinecraftDev

Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.
https://minecraftdev.org/
GNU Lesser General Public License v3.0
1.49k stars 185 forks source link

[FG2.3] No Mapping Data Available #1887

Closed ByThePowerOfScience closed 1 year ago

ByThePowerOfScience commented 2 years ago

Look, look, I know this is related to an older version, but please bear with me.

I'm maintaining a few older projects, and code analysis is broken due to the following error in the logs:

2022-08-21 15:13:18,418 [1555417] ERROR - n.impl.GeneralHighlightingPass - Exception 'org.jetbrains.concurrency.MessageError: No mapping data available at /[PROJECT]/build/createMcpToSrg/output.tsrg' was reported 40 times

The reason for this is because I'm forced to use ForgeGradle 2.3-SNAPSHOT due to several compatibility errors in the newer versions, and 2.3 stores the SRG mapping file in a different file location. This causes code analysis to be broken globally, even in files that don't use remapped functions.

This should in theory be a really simple fix by just adding an option to configure the SRG mapping path, so I'm going to submit a PR for it as soon as I can figure out where it's handled, but I wanted to file the issue here first.

mightydanp commented 2 years ago

I am also having the same problem

mightydanp commented 2 years ago

image

DenWav commented 2 years ago

Does it fix itself after refreshing Gradle?

mightydanp commented 2 years ago

That was one of the sugesstions that i tried