larksuite/cli · error

event catalog failed to compile: %v

Error message

event catalog failed to compile: %v

What it means

compileCatalog, the event command tree's init-time assembly point, panics because aggregating and validating the built-in event domain declarations failed. By design there is nothing to recover at runtime: the binary itself is defectively wired.

Source

Thrown at cmd/event/wiring.go:22

package event

import (
	"fmt"

	"github.com/larksuite/cli/events"
	"github.com/larksuite/cli/internal/event/catalog"
)

// compileCatalog is the event command tree's single assembly point: it turns
// the aggregated domain declarations into the immutable snapshot every
// subcommand reads. A compile failure is a defect in declarations built into
// this binary — there is nothing to recover at runtime, so it panics.
func compileCatalog() *catalog.Snapshot {
	// The strategy registry that validates references is the same one that
	// executes them, so "compiled" implies "resolvable at run time".
	snap, err := catalog.Compile(events.All(), consumeStrategies)
	if err != nil {
		panic(fmt.Sprintf("event catalog failed to compile: %v", err))
	}
	return snap
}

View on GitHub (pinned to 7fd6ef3c07)

Solutions

  1. Fix the event domain declaration that fails validation and rebuild; not actionable at runtime
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at cmd/event/wiring.go:22 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of larksuite/cli@7fd6ef3c07 (2026-09-04). Data as JSON: /api/errors/438080f9fd92c9f6. Report an issue: GitHub.