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.5k stars 187 forks source link

Error while adding translation #2128

Open zabory opened 1 year ago

zabory commented 1 year ago

Minecraft Development for IntelliJ plugin version

2023.2-1.6.10

IntelliJ version

2023.2.2 Ultimate Edition (Build 232.9921.47)

Operating System

Windows 11

Target platform

Minecraft Forge

Description of the bug

Screenshot 1 image

Screenshot 2 image

When adding a translation by hovering over a pKey that hasn't been created yet, and selecting "Create tanslation" (SS 1), after filling in the popup and selecting "ok", I get an error included in SS2

RedNesto commented 1 year ago

Try to refresh your gradle project, it might help. This is a frequent issue but tracking the actual reasons why it happens is pretty hard.

lunatic-gh commented 8 months ago

After doing some digging through the source code, i was able to find the reason.

Every Module (when using mcdev) is supposed to have 5 settings, so called "MCPModuleSettings", those being:

where the problematic setting for this case is "minecraftVersion". In my case, all of those settings (except srgType for some reason) weren't set, both when creating a project through the wizard, or using my own custom fabric gradle-template.

What i was able to do to fix this error: