{"record":{"id":"4be32c8f7b06afd8","repo":"microsoft/typescript-go","slug":"too-many-events-w","errorCode":null,"errorMessage":"too many events: %w","messagePattern":"too many events: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/fswatch/fsevents_darwin.go","lineNumber":222,"sourceCode":"\t\treturn &dirWatchError{err: err, dirWatch: w}\n\t}\n\tif !info.IsDir() {\n\t\treturn &dirWatchError{err: syscall.ENOTDIR, dirWatch: w}\n\t}\n\treturn nil\n}\n\nvar (\n\terrCFStringCreateNull = errors.New(\"CFStringCreate returned NULL\")\n\terrCFArrayCreateNull  = errors.New(\"CFArrayCreate returned NULL\")\n\terrStreamCreateNull   = errors.New(\"FSEventStreamCreate returned NULL\")\n\terrStreamStartFailed  = errors.New(\"error starting FSEvents stream\")\n)\n\nvar (\n\terrFSEventsUserDropped   = fmt.Errorf(\"events were dropped by the FSEvents client: %w\", ErrOverflow)\n\terrFSEventsKernelDropped = fmt.Errorf(\"events were dropped by the kernel: %w\", ErrOverflow)\n\terrFSEventsTooMany       = fmt.Errorf(\"too many events: %w\", ErrOverflow)\n)\n\nconst fseventsPathsPerStream = 512\n\ntype fseventsWatchSnapshot struct {\n\tw     *dirWatch\n\tstate *fseventsState\n}\n\nfunc (b *fsEventsBackend) activeWatchesLocked() []fseventsWatchSnapshot {\n\twatches := make([]fseventsWatchSnapshot, 0, len(b.watches))\n\tfor w, state := range b.watches {\n\t\tif state.terminated.Load() {\n\t\t\tcontinue\n\t\t}\n\t\twatches = append(watches, fseventsWatchSnapshot{w: w, state: state})\n\t}\n\treturn watches","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/microsoft/typescript-go/blob/1bcfa18d79a3be41772223d5c05dfe4480e614ff/internal/fswatch/fsevents_darwin.go#L204-L240","documentation":"Error \"too many events: %w\" thrown in microsoft/typescript-go.","triggerScenarios":"Thrown at internal/fswatch/fsevents_darwin.go:222 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1bcfa18d79a3be41772223d5c05dfe4480e614ff","analyzedAt":"2026-08-16T02:12:00.115Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}