xiaohongshu
xiaohongshu
build-troubleshooting
FAQ for diagnosing and resolving build and test failures
Full skill instructions
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.
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:
rm -rf neoforge-1.21.2/bin common-1.21.2/bin
./gradlew cleanAll
Prevention:
bin/ to .gitignore (already done in this project)Reference: Discovered 2026-01-25 during portal GameTest implementation.
Symptoms:
Cause:
FabricGameTest.EMPTY_STRUCTURE constant (built-in)Solution: For NeoForge, create a proper NBT structure file:
empty_test.nbt in common-{version}/src/main/resources/data/chronodawn/structure/"chronodawn:empty_test" in test configurationNote: The structure must be large enough for the test content (e.g., 10x10x10 for portal frame tests).
Symptoms:
Solution:
./gradlew --stop
./gradlew cleanAll
Checklist:
./gradlew cleanAll to remove stale bin/ directoriesSymptoms:
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
When encountering a new build/test issue:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
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...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
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...
Display project status, active tracks, and next actions
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.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience