{"record":{"id":"e84d5b30d8f97eec","repo":"microsoft/typescript-go","slug":"unable-to-open-pipe-w-e84d5b","errorCode":null,"errorMessage":"unable to open pipe: %w","messagePattern":"unable to open pipe: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/fswatch/inotify_linux.go","lineNumber":139,"sourceCode":"func newInotifyBackend() *inotifyBackend {\n\tb := &inotifyBackend{\n\t\tpipeFDs:         [2]int{-1, -1},\n\t\tinotify:         -1,\n\t\tsubscriptions:   map[int][]*inotifySubscription{},\n\t\tendedSignal:     make(chan struct{}),\n\t\treadBuf:         make([]byte, inotifyBufferSize),\n\t\twatchersTouched: make(map[*dirWatch]struct{}),\n\t}\n\tb.pipeWriteFD.Store(-1)\n\tb.watcherBase.init(b)\n\treturn b\n}\n\n// start mirrors `inotifyBackend::start`.\nfunc (b *inotifyBackend) start() error {\n\t// Create a pipe so we can wake the poll(2) loop on shutdown.\n\tif err := unix.Pipe2(b.pipeFDs[:], unix.O_CLOEXEC|unix.O_NONBLOCK); err != nil {\n\t\treturn fmt.Errorf(\"unable to open pipe: %w\", err)\n\t}\n\tb.pipeWriteFD.Store(int32(b.pipeFDs[1]))\n\tdefer func() {\n\t\tb.closeFDs()\n\t\tclose(b.endedSignal)\n\t}()\n\tfd, err := unix.InotifyInit1(unix.IN_NONBLOCK | unix.IN_CLOEXEC)\n\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()","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/microsoft/typescript-go/blob/1bcfa18d79a3be41772223d5c05dfe4480e614ff/internal/fswatch/inotify_linux.go#L121-L157","documentation":"Error \"unable to open pipe: %w\" thrown in microsoft/typescript-go.","triggerScenarios":"Thrown at internal/fswatch/inotify_linux.go:139 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"}