epicweb-dev / epicweb-dev/react-e2e-testing-with-playwright

Error: EMFILE: too many open files, watch

未關閉
#7 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
12
分支
4
PR 合併指標
30 天內沒有已合併 PR

描述

Platform & Details
Computer: M4 Macbook Air
Ram: 16gb
Version: Tahoe 21.6
Node: 22.22.3

I also tried node 20 & 24, same error.

Please let me know what else I can provide.

Full error message
```Failed to check for exercise changes: Command failed with EBADF: git status --porcelain exercises/
spawn EBADF
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
at FSEvent.callbackTrampoline (node:internal/async_hooks:130:17)
Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
at FSEvent.callbackTrampoline (node:internal/async_hooks:130:17)
Unhandled Rejection for: Promise {
Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
at FSEvent.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
filename: null
},
[Symbol(async_id_symbol)]: 910859,
[Symbol(trigger_async_id_symbol)]: 887149,
[Symbol(kResourceStore)]: undefined,
[Symbol(kResourceStore)]: undefined
}
With the reason: Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
at FSEvent.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
filename: null
}
second error, exiting
Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
at FSEvent.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
filename: null
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

首先在報告中的 macOS 與 Node 版本上重現此失敗,著重檢查監視練習變更並執行 `git status --porcelain exercises/` 的程式碼。追蹤 `EMFILE` 與 `EBADF` 錯誤,並確認練習變更檢查能夠完成,且不會發生未處理的 rejection 或程序結束。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
git, node.js, playwright, typescript
領域
testing
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
需要釐清
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。