Skip to content

chore: Stop Loom from generating IntelliJ run configurations - #123

Merged
kous500 merged 1 commit into
mainfrom
chore/no-loom-ide-runs-20261114
Nov 14, 2026
Merged

kous500 merged 1 commit into
mainfrom
chore/no-loom-ide-runs-20261114

Conversation

@kous500

@kous500 kous500 commented Nov 13, 2026

Copy link
Copy Markdown
Owner

What and why

curvebuilding-fabric and fabric-test-runs set ideConfigGenerated = true, so on every Gradle sync Loom wrote a Client, a Server and a Game Test configuration for each Minecraft version into .idea/runConfigurations (21 for the versions of main). They duplicated the shared Gradle configurations in .run/ ([runClient] and [runServer] of each version), and they stayed behind for versions that are no longer built in the checkout.

  • The setting is removed from both build scripts. In Loom 1.18.4, generateRunConfig defaults to whether the project is the root project (DefaultRunConfigurationSettings), so the version projects generate none. With none to generate, Loom disables ideaSyncTask.
  • A comment in curvebuilding-fabric/build.gradle says that IntelliJ IDEA runs these through .run/.
  • ideConfigGenerated is also deprecated in Loom in favor of generateRunConfig.

Configurations that Loom already wrote stay in .idea/runConfigurations until they are deleted by hand.

How it was tested

  • ./gradlew build checkCodeStyle --warning-mode all: the build and unit tests pass, with no Gradle, javac or Checkstyle warnings.
  • --dry-run of :curvebuilding-fabric:26.3:runClient, :curvebuilding-fabric:1.21.1:runServer, and with -PtestRuns of :fabric-test-runs:26.1:runClient and :fabric-test-runs:1.21:runServer: the tasks of the shared configurations still resolve.
  • Not checked: a Gradle sync in IntelliJ IDEA after the change.
  • Minecraft version: -
  • Server software / loader: -
  • WorldEdit / FastAsyncWorldEdit version: -

Notes

  • No changes for players or server owners.

The shared Gradle run configurations in .run/ start the client and the
server of every version, so the Client, Server and Game Test
configurations that Loom wrote into .idea/runConfigurations only
duplicated them. Loom generates these only for the root project unless
ideConfigGenerated is set, so the setting is removed.
@kous500
kous500 merged commit 13e5466 into main Nov 14, 2026
28 checks passed
@kous500
kous500 deleted the chore/no-loom-ide-runs-20261114 branch November 14, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant