{"record":{"id":"438080f9fd92c9f6","repo":"larksuite/cli","slug":"event-catalog-failed-to-compile-v","errorCode":null,"errorMessage":"event catalog failed to compile: %v","messagePattern":"event catalog failed to compile: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/event/wiring.go","lineNumber":22,"sourceCode":"package event\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/larksuite/cli/events\"\n\t\"github.com/larksuite/cli/internal/event/catalog\"\n)\n\n// compileCatalog is the event command tree's single assembly point: it turns\n// the aggregated domain declarations into the immutable snapshot every\n// subcommand reads. A compile failure is a defect in declarations built into\n// this binary — there is nothing to recover at runtime, so it panics.\nfunc compileCatalog() *catalog.Snapshot {\n\t// The strategy registry that validates references is the same one that\n\t// executes them, so \"compiled\" implies \"resolvable at run time\".\n\tsnap, err := catalog.Compile(events.All(), consumeStrategies)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"event catalog failed to compile: %v\", err))\n\t}\n\treturn snap\n}\n","sourceCodeStart":4,"sourceCodeEnd":26,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/cmd/event/wiring.go#L4-L26","documentation":"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.","triggerScenarios":"Thrown at cmd/event/wiring.go:22 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the event domain declaration that fails validation and rebuild; not actionable at runtime"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7fd6ef3c07182257ce776cdc5a614e122d5bd4b3","analyzedAt":"2026-09-04T21:17:44.649Z","contentChangedAt":"2026-09-04T21:17:44.649Z","schemaVersion":2},"datasetVersion":"2026-09-12T02:17:10.037Z"}