Skip to content

IDEA fails to build when using Manifold preprocessor #286

@RogueLogix

Description

@RogueLogix

repro steps

  • create fresh mod template from https://neoforged.net/mod-generator/
  • set IDEA to build using IDEA instead of gradle
  • ensure it builds and runs as expected
  • add manifold annotation processor dependency: annotationProcessor 'systems.manifold:manifold-preprocessor:2025.1.26'
  • add manifold plugin to compiler args compileJava.options.compilerArgs += '-Xplugin:Manifold'
  • attempt to build, will fail with "class X is public, should be in file named X.java" errors
  • switch IDEA to build with gradle
  • builds/runs as expected

A standard gradle project builds with IDEA as expected
A Fabric project builds with IDEA as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions