Skip to content

fabric.mod.json inspections do not work correctly #2624

Description

@Kilip1000

Minecraft Development for IntelliJ plugin version

2026.1-1.8.17-nightly+653

IntelliJ version

2026.1.2

Operating System

Windows 11

Target platform

Fabric

Description of the bug

Most fabric.mod.json inspections do not function correctly.

Examples:

  • Inspections on the "license" field do not consider whether there is a file at the supplied location, only whether a file called LICENSE or LICENSE.txt is present
  • No inspection currently considers gradle String-Field mappings in the form of ${mod_name}
  • There are no inspections on the "id" and "version" field in the case the aforementioned mappings could not be resolved
  • This applies to pretty much all fields and even entries in lists
    • Excluding the "icon" field and entries in the "mixins" list
      • These do not resolve the mappings and always fail

My theory:
No additional verification takes place for most fields, but for the fields that verification does take place for, it does not account for such mappings.

Files referenced:
src/main/kotlin/platform/fabric/inspection/UnresolvedReferenceInspection.kt, Lines 53 and and below
src/main/kotlin/platform/fabric/reference/LicenseReference.kt, Lines 50 and and below

Note: I did not test this with non-mapped fields.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions