Loom expects a non-empty fabric.mod.json

Open
#3 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
kotlin
Domain
build-system

Research direction

Start by reproducing the first sync with the project’s fabric.mod.json and the build.gradle.kts configuration described in the issue. Compare the sync with and without the temporary sourceSets block; done means the non-empty fabric.mod.json is processed without the workaround or Loom crash.

Written by the indexing model from the issue text.

Description

bug

Essentially on the first sync the fabric.mod.json isn't processed correctly, which causes loom to crash as the json object is null.

Workaround:

  1. Add the following to your build.gradle.kts
sourceSets {
    main {
        resources {
            srcDir(file("src/main/templates"))
        }
    }
}
  1. Sync (gradle sync)
  2. Comment out or remove the previously added sourceSets block.
  3. Fixed
Dominant language
Kotlin
Stars
34
Forks
9
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from isXander/modstitch

All issues in isXander/modstitch

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.