Open zabory opened 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.
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:
projectname.main
for your main-code, and projectname.test
for the test-code. This file can be found in projectDir/.idea/modules/
<component name="McpModuleSettings">
<option name="minecraftVersion" value="1.20.4" />
<option name="srgType" value="SRG" />
</component>
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
Screenshot 2
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