Error: A FileHandle object was closed during garbage collection (ESLint)
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- eslint, node.js, typescript, vite
- Lĩnh vực
- devtools
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.2k
- Fork
- 97
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 14
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vitejs/devtools
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vitejs/devtools#261 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 32/100
vitejs/devtools#624 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
feat(oxc): add rule timing stats to the lint inspectorCó thể làm lại được @yuyinws đã nhận 68 ngày trước và không có pull request nào đang mở. Đang mởenhancement
vitejs/devtools#584 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Static build: frame/panel URLs are still absolute when output is hosted at a subpathCó thể đã có người làm @0froq đã nhận 11 ngày trước. Đang mởpending triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
vitejs/devtools#583 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của vitejs/devtools
Issue tương tự
-
ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
mermaid-js/mermaid-v13#1370 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
compiler: the island_chunks_not_emitted report gives a count but not which islands were skippedĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Broken Website
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
darkreader/darkreader#16259 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ARTPARK-SAHAI-ORG/calibrate-frontend#919 ·
Maintainer thường phản hồi trong vòng 1 ngày