Error: A FileHandle object was closed during garbage collection (ESLint)
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- eslint, node.js, typescript, vite
- 领域
- devtools
调研方向
The report points to Vite config loading from the ESLint configuration and open FileHandles for .vite/devtools/inspect/plugin-calls.bin and payloads.bin, but gives no repository files or reproducible project. Start by tracing the config loading path and finding where the Vite Devtools plugin opens these files; reproduce with the linked setup if possible. Done means eslint . exits without the FileHandle garbage collection errors and the handles are explicitly closed.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When setting up Vite Devtools + Svelte in https://github.com/WarningImHack3r/svelte-changelog/commit/65c9f08163cc67eadc88bf0bbbe30519bd099080, I encountered this error when running eslint . in my project:
Oops! Something went wrong! :(
ESLint: 10.15.0
Error: A FileHandle object was closed during garbage collection. This used to be allowed with a deprecation warning but is now considered an error. Please close FileHandle objects explicitly. File descriptor: 18 (/Users/antoine/Developer/svelte-changelog/node_modules/.vite/devtools/inspect/plugin-calls.bin)
Oops! Something went wrong! :(
ESLint: 10.15.0
Error: A FileHandle object was closed during garbage collection. This used to be allowed with a deprecation warning but is now considered an error. Please close FileHandle objects explicitly. File descriptor: 17 (/Users/antoine/Developer/svelte-changelog/node_modules/.vite/devtools/inspect/payloads.bin)
I don't precisely know where this error comes from, what config causes this, or why it's only triggered by ESLint, but Claude says it's because my ESLint config loads the Vite config, and the Vite devtools plugin never releases handles on those files when the server is never actually booted.
I wasn't able to reproduce it in a new project, but it comes from loadConfig at the top of my ESLint config invoking the Vite config.
Reproduction
Can only reproduce in my project, tried but failed on fresh project
System Info
System:
OS: macOS 27.2.1
CPU: (10) arm64 Apple M1 Pro
Memory: 86.97 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 26.13.1 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 12.2.3 - /opt/homebrew/bin/npm
pnpm: 12.23.0 - /opt/homebrew/bin/pnpm
bun: 1.4.5 - /Users/antoine/.bun/bin/bun
Browsers:
Safari: 27.2
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
- 主要语言
- TypeScript
- 星标
- 1.2k
- 派生
- 97
- 平均合并
- 2 天 19 小时
- 30 天内合并 PR
- 14
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vitejs/devtools 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 32/100
vitejs/devtools#624 · 1 个 reaction ·
维护者通常 2 天内回复
-
feat(oxc): add rule timing stats to the lint inspector可能重新可做 @yuyinws 于 68 天前认领,目前没有进行中的 PR。 未关闭enhancement
vitejs/devtools#584 · 已指派 1 人 ·
维护者通常 2 天内回复
-
Static build: frame/panel URLs are still absolute when output is hosted at a subpath可能已有人在做 @0froq 于 11 天前认领。 未关闭pending triage
难度 3/5 1-2 天 新手友好度 58/100
维护者通常 2 天内回复
相似的 Issue
-
ui
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
mermaid-js/mermaid-v13#1370 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
-
Broken Website
难度 2/5 1-3 小时 新手友好度 64/100
darkreader/darkreader#16259 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
ARTPARK-SAHAI-ORG/calibrate-frontend#919 ·
维护者通常 1 天内回复