{"record":{"id":"1bb59fbc86c237db","repo":"microsoft/typescript-go","slug":"events-were-dropped-by-the-fsevents-client-w","errorCode":null,"errorMessage":"events were dropped by the FSEvents client: %w","messagePattern":"events were dropped by the FSEvents client: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/fswatch/fsevents_darwin.go","lineNumber":220,"sourceCode":"\tinfo, err := os.Stat(w.physicalDir)\n\tif err != nil {\n\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})","sourceCodeStart":202,"sourceCodeEnd":238,"githubUrl":"https://github.com/microsoft/typescript-go/blob/1bcfa18d79a3be41772223d5c05dfe4480e614ff/internal/fswatch/fsevents_darwin.go#L202-L238","documentation":"Error \"events were dropped by the FSEvents client: %w\" thrown in microsoft/typescript-go.","triggerScenarios":"Thrown at internal/fswatch/fsevents_darwin.go:220 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"}