-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
parser breaks on folders with accented characters in their name #3966
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
Comments
can you run with |
Hey I'm a bit confused, what would the command look like? I can't seem to get that to work, I think I'm doing something wrong |
It's en environment variable. Add it before the CLI command you're running.
|
Yea sorry me and rodry still don't get how to do that. Also tried: |
I don't know how to do it on windows, sorry - you'd have to google how to set environment variables for a cli command on windows.
|
I tried that and tried the windows cmd "set" command and neither of them seem to reproduce a different output than the one already included in the issue. Is there something I should be looking for or can we proceed without that? |
With the environment variable set it will outputting logs made by our tooling. Without those I can't help you at all. |
Please try to reproduce this on your end with the file name I gave you. I've even tried running this on WSL and I just cannot get it to work. You cannot expect people to give you info if you don't know how to get that info yourself |
I am a volunteer maintainer. I don't have the time or inclination to manually build an entire repro for your issue, esp when it's an issue that has been reported only by you (and thus is isolated to you). Hence I am asking you to do some legwork and provide some details up front - as I do from anyone and everyone that raises a non-trivial issue. Logs will help me understand the issue. Additionally depending on the contents of the logs - I mightn't even need to take the time repro this myself on my machine as the logs could immediately show the issue. Help me to help you. I also only have access to a mac dev environment. Here is an example of what the output will look like:
|
The repository is public and you can check out the folder here: https://github.com/PreMiD/Presences/tree/master/websites/E/Ekrem%20%C4%B0mamo%C4%9Flu |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment has been minimized.
This comment has been minimized.
Setting an environment variable on Windows with the cross-env package: npx cross-env DEBUG=typescript-eslint:* yarn eslint ./websites Here's the result from my Windows 10 machine: output.txt
Yes please @kompot 🙂 |
Uh oh!
There was an error while loading. Please reload this page.
Repro
Create a folder with an unsupported character in its name. In my example it was "Ekrem İmamoğlu" (the ğ is the unsupported character)

Notice this error at the very top of the file
eslint config file:
```json { "root": true, "env": { "browser": true }, "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:eqeqeq-fix/recommended" ], "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" }, "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2021, "project": "./tsconfig.json" }, "rules": { "semi": ["warn", "always", { "omitLastInOneLineBlock": true }], "no-multiple-empty-lines": ["warn", { "max": 2, "maxEOF": 0, "maxBOF": 0 }], "quotes": ["warn", "double", { "avoidEscape": true }], "camelcase": ["warn", { "properties": "always" }], "curly": ["warn", "multi-or-nest"], "eqeqeq": ["error", "always"], "comma-dangle": ["warn", "never"], "one-var": ["warn", "consecutive"], "linebreak-style": ["warn", "unix"], "prefer-const": "error", "no-multi-spaces": "error", "object-shorthand": "error", "quote-props": ["error", "as-needed"], "prefer-destructuring": "warn", "prefer-template": "warn", "space-before-blocks": ["error", "always"], "space-infix-ops": "warn", "func-call-spacing": ["error", "never"], "key-spacing": ["warn", { "beforeColon": false }], "dot-notation": "error", "no-case-declarations": "error", "brace-style": "error", "template-curly-spacing": "warn", "no-console": "error", "no-var": "error", "no-undef": "off", "no-restricted-syntax": [ "error", { "selector": "TSEnumDeclaration[const=true]", "message": "Usage of const enums is forbidden." } ], "@typescript-eslint/no-explicit-any": "error" }, "overrides": [ { "env": { "node": true, "mongo": true }, "files": ["./*.ts"], "rules": { "@typescript-eslint/no-non-null-assertion": "off", "no-console": "off" } } ], "reportUnusedDisableDirectives": true, "noInlineConfig": false, "plugins": ["@typescript-eslint"] } ```Expected Result
eslint runs on the folder like it does on every other
Actual Result
eslint throws an error due to the folders name
Additional Info
logs
Versions
@typescript-eslint/parser
4.33.0
TypeScript
4.4.3
ESLint
7.32.0
node
16.10.0
(edited 2/24/2022 by @JoshuaKGoldberg to add summary tags)
The text was updated successfully, but these errors were encountered: