Skip to content

ENAMETOOLONG error with a long file path when server.debug.dumpModules flag is on #7744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
6 tasks done
Jinjiang opened this issue Mar 27, 2025 · 0 comments
Open
6 tasks done
Labels
p3-minor-bug An edge case that only affects very specific usage (priority) vite-node

Comments

@Jinjiang
Copy link

Describe the bug

it happens when a test case file has a long path

the error message is like:

 FAIL  App.very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_long.spec.tsx [ App.very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_long.spec.tsx ]
Error: ENAMETOOLONG: name too long, open '/xxx/reproductions/.vite-node/dump/_Volumes_jinjiang-portable-disk_Developer_personal_reproductions_App_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_long_spec_tsx--51554923.js'

Original discussion: #7662

Reproduction

https://github.com/Jinjiang/reproductions/tree/vitest-dump-20250327

System Info

System:
    OS: macOS 15.4
    CPU: (8) arm64 Apple M1
    Memory: 182.92 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.local/share/mise/installs/node/22/bin/node
    Yarn: 1.22.18 - ~/.yarn/bin/yarn
    npm: 10.9.2 - ~/.local/share/mise/installs/node/22/bin/npm
    pnpm: 10.6.5 - ~/Library/pnpm/pnpm
    bun: 1.1.36 - ~/.local/share/mise/installs/bun/latest/bin/bun
  Browsers:
    Safari: 18.4
  npmPackages:
    @vitejs/plugin-react: ^4.3.4 => 4.3.4 
    vite: ^6.2.3 => 6.2.3 
    vitest: ^3.0.9 => 3.0.9

Used Package Manager

pnpm

Validations

@Jinjiang Jinjiang changed the title ENAMETOOLONG error when server.debug.dumpModules flag is on ENAMETOOLONG error with a long file path when server.debug.dumpModules flag is on Mar 27, 2025
@hi-ogawa hi-ogawa added p3-minor-bug An edge case that only affects very specific usage (priority) vite-node and removed pending triage labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-minor-bug An edge case that only affects very specific usage (priority) vite-node
Projects
None yet
Development

No branches or pull requests

2 participants