{"record":{"id":"7f3495c55984c1ef","repo":"microsoft/typescript-go","slug":"unable-to-poll-w-7f3495","errorCode":null,"errorMessage":"unable to poll: %w","messagePattern":"unable to poll: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/fswatch/inotify_linux.go","lineNumber":165,"sourceCode":"\tif err != nil {\n\t\treturn fmt.Errorf(\"unable to initialize inotify: %w\", err)\n\t}\n\tb.inotify = fd\n\n\tpollfds := []unix.PollFd{\n\t\t{Fd: int32(b.pipeFDs[0]), Events: unix.POLLIN},\n\t\t{Fd: int32(b.inotify), Events: unix.POLLIN},\n\t}\n\n\tb.notifyStarted()\n\n\tfor {\n\t\t_, err := unix.Poll(pollfds, 500)\n\t\tif err != nil {\n\t\t\tif errors.Is(err, unix.EINTR) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\treturn fmt.Errorf(\"unable to poll: %w\", err)\n\t\t}\n\t\tif pollfds[0].Revents != 0 {\n\t\t\tbreak\n\t\t}\n\t\tif pollfds[1].Revents != 0 {\n\t\t\tif err := b.handleEvents(); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil\n}\n\n// closeFDs runs in the start goroutine after the poll loop exits. Takes\n// b.mu so the writes to b.inotify / b.pipeFDs synchronize-against the\n// reads in closeWatch / subscribe (both of which run under b.mu).\nfunc (b *inotifyBackend) closeFDs() {","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/microsoft/typescript-go/blob/1bcfa18d79a3be41772223d5c05dfe4480e614ff/internal/fswatch/inotify_linux.go#L147-L183","documentation":"Error \"unable to poll: %w\" thrown in microsoft/typescript-go.","triggerScenarios":"Thrown at internal/fswatch/inotify_linux.go:165 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"}