Skip to content
build-troubleshooting logo

Build & Test Troubleshooting FAQ

build-troubleshooting

FAQ for diagnosing and resolving build and test failures

SKILL.md

Full skill instructions

Build & Test Troubleshooting FAQ

Purpose: Reference guide for diagnosing and resolving build failures, test failures, and other development environment issues.

When to use: When encountering unexpected build or test failures, especially those that seem environment-related rather than code-related.


FAQ

Q1: NeoForge GameTest fails with "Illegal version number specified version (main)"

Symptoms:

File /​path/​to/​neoforge-1.21.2/​build/​resources/​main is not a valid mod file
Caused by: java.lang.IllegalArgumentException: Illegal version number specified version (main)

Cause: IDE (IntelliJ IDEA, Eclipse) generated bin/ directories containing unprocessed resource files. The neoforge.mods.toml in bin/​main/​META-INF/ has version="${version}" instead of the actual version number.

Solution:

  1. Delete IDE-generated bin directories:
    rm -rf neoforge-1.21.2/​bin common-1.21.2/​bin
    
  2. Or run the cleanAll task which now includes bin/ cleanup:
    ./​gradlew cleanAll
    

Prevention:

  • Configure IDE to use Gradle for builds instead of built-in compiler
  • Add bin/ to .gitignore (already done in this project)

Reference: Discovered 2026-01-25 during portal GameTest implementation.


Q2: GameTest structure template not found or too small

Symptoms:

  • Tests fail with "structure not found" errors
  • Portal/​structure tests fail because test area is too small

Cause:

  • Fabric uses FabricGameTest.EMPTY_STRUCTURE constant (built-in)
  • NeoForge requires explicit structure template files

Solution: For NeoForge, create a proper NBT structure file:

  1. Create empty_test.nbt in common-{version}/​src/​main/​resources/​data/​chronodawn/​structure/
  2. Reference it as "chronodawn:empty_test" in test configuration

Note: The structure must be large enough for the test content (e.g., 10x10x10 for portal frame tests).


Q3: Gradle daemon conflicts during parallel builds

Symptoms:

  • Build fails with lock file errors
  • "Could not create service of type" errors
  • Tests hang or fail intermittently

Solution:

./​gradlew --stop
./​gradlew cleanAll

Q4: Test passes on Fabric but fails on NeoForge (or vice versa)

Checklist:

  1. Mixin configurations: Check both loader-specific mixin JSON files
  2. Structure templates: NeoForge needs explicit templates, Fabric has EMPTY_STRUCTURE
  3. API differences: Some APIs behave differently between loaders
  4. IDE artifacts: Run ./​gradlew cleanAll to remove stale bin/ directories

Q5: "session.lock" errors during GameTest

Symptoms:

Failed to lock the level ... session.lock

Cause: Previous test run left a lock file.

Solution: The gameTestAll task already handles this by cleaning stale world directories. If it persists:

rm -rf fabric-*/​run/​gametestworld
rm -rf neoforge-*/​run/​gametestworld

Adding New FAQ Entries

When encountering a new build/​test issue:

  1. Document symptoms (exact error message)
  2. Identify root cause
  3. Document solution
  4. Add prevention tips if applicable
  5. Add reference date for tracking

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View