Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when file names #16225

Closed
Mrgaton opened this issue Apr 15, 2024 · 4 comments
Closed

Error when file names #16225

Mrgaton opened this issue Apr 15, 2024 · 4 comments

Comments

@Mrgaton
Copy link

Mrgaton commented Apr 15, 2024

../../Im谩genes/foto perfil Letsoky馃寵.webpnode:internal/fs/promises:604
await binding.openFileHandle(pathModule.toNamespacedPath(path),
^

Error: ENOENT: no such file or directory, open
at open (node:internal/fs/promises:604:19)
at Object.readFile (node:internal/fs/promises:1071:20)
at formatFiles (file:///C:/Users/Mrgaton/AppData/Local/pnpm/global/5/.pnpm/prettier@3.2.4/node_modules/prettier/internal/cli.mjs:6647:25)
at async main (file:///C:/Users/Mrgaton/AppData/Local/pnpm/global/5/.pnpm/prettier@3.2.4/node_modules/prettier/internal/cli.mjs:7081:5)
at async Module.run (file:///C:/Users/Mrgaton/AppData/Local/pnpm/global/5/.pnpm/prettier@3.2.4/node_modules/prettier/internal/cli.mjs:7027:5) {
errno: -4058,
code: 'ENOENT',
syscall: 'open'
}

@sosukesuzuki sosukesuzuki closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
@Mrgaton
Copy link
Author

Mrgaton commented Apr 30, 2024

@sosukesuzuki why you close it

@Mrgaton
Copy link
Author

Mrgaton commented Apr 30, 2024

It should ignore files with emojis not crash the app

@sosukesuzuki
Copy link
Member

Sorry I was not able to figure out what was going on just from the first information you gave me. Can you update the issue according to the issue template?

@Mrgaton
Copy link
Author

Mrgaton commented Apr 30, 2024

When I prettify a directory if it has a file with weird characters like a emoji it crashes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants