{"record":{"id":"866c588a30fea88a","repo":"microsoft/typescript-go","slug":"error-starting-fsevents-stream","errorCode":null,"errorMessage":"error starting FSEvents stream","messagePattern":"error starting FSEvents stream","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/fswatch/fsevents_darwin.go","lineNumber":216,"sourceCode":"}\n\n// checkWatcher mirrors the helper of the same name.\nfunc checkWatcher(w *dirWatch) error {\n\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 {","sourceCodeStart":198,"sourceCodeEnd":234,"githubUrl":"https://github.com/microsoft/typescript-go/blob/1bcfa18d79a3be41772223d5c05dfe4480e614ff/internal/fswatch/fsevents_darwin.go#L198-L234","documentation":"Error \"error starting FSEvents stream\" thrown in microsoft/typescript-go.","triggerScenarios":"Thrown at internal/fswatch/fsevents_darwin.go:216 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"}