microsoft/typescript-go · error
unable to poll: %w
Error message
unable to poll: %w
What it means
Error "unable to poll: %w" thrown in microsoft/typescript-go.
Source
Thrown at internal/fswatch/inotify_linux.go:165
if err != nil {
return fmt.Errorf("unable to initialize inotify: %w", err)
}
b.inotify = fd
pollfds := []unix.PollFd{
{Fd: int32(b.pipeFDs[0]), Events: unix.POLLIN},
{Fd: int32(b.inotify), Events: unix.POLLIN},
}
b.notifyStarted()
for {
_, err := unix.Poll(pollfds, 500)
if err != nil {
if errors.Is(err, unix.EINTR) {
continue
}
return fmt.Errorf("unable to poll: %w", err)
}
if pollfds[0].Revents != 0 {
break
}
if pollfds[1].Revents != 0 {
if err := b.handleEvents(); err != nil {
return err
}
}
}
return nil
}
// closeFDs runs in the start goroutine after the poll loop exits. Takes
// b.mu so the writes to b.inotify / b.pipeFDs synchronize-against the
// reads in closeWatch / subscribe (both of which run under b.mu).
func (b *inotifyBackend) closeFDs() {View on GitHub (pinned to 1bcfa18d79)
When it happens
Trigger: Thrown at internal/fswatch/inotify_linux.go:165 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/typescript-go@1bcfa18d79 (2026-08-16).
Data as JSON: /api/errors/7f3495c55984c1ef.
Report an issue: GitHub.