-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Oxlint reports incorrect errors when it receives a relative path starting with ..
#1887
Comments
https://github.com/oxc-project/oxc_resolver/blob/4585b370614fdfc8cd8c473e94c0aa35770f82ef/src/cache.rs#L192-L192, |
the implementation of |
I can replicate the issue with a relative path, could you provide a reproduce repo? |
|
⚠ eslint-plugin-unicorn(no-empty-file): Empty files are not allowed.
╭─[../test_repo/foo/bar/index.js:1:1]
╰────
help: Delete this file or add some code to it.
× Failed to open file "test_repo/foo/bar/index.js" with error "No such file or directory (os error 2)"
help: Failed to open file "test_repo/foo/bar/index.js" with error "No such file or directory (os error 2)"
looks like we read the same file twice when enabling |
Linting parent directories introduces undefined behavior because the intention is not clear. This is a future proof precaution. closes #1887
I decided to disallow supplying paths pointing to parent directories, the intention is not clear and it will introduce undefined behaviour. |
Linting parent directories introduces undefined behavior because the intention is not clear. This is a future proof precaution. closes #1887
…2125) Linting parent directories introduces undefined behavior because the intention is not clear. This is a future proof precaution. closes oxc-project#1887
The error reported by
oxlint
appears to be incorrect. In fact, the filetest_repo/foo/bar/index.js
exists. It seems to be an issue related tooxc_resolver
.The text was updated successfully, but these errors were encountered: