Bug: "The file does not match your project config" for all files in VS Code eslint extension when path to workspace folder includes a symlink #5396
Labels
duplicate
This issue or pull request already exists
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
I actually did find a related issue, but it was closed and locked already. #2234.
I have a repository using TS projects containing 3 applications and 3 libraries. I build them with rollup and use the rollup eslint plugin, and I develop with VS Code using the eslint extension. Even though I can build with rollup and I see no errors from eslint, the eslint extension of VS Code gives an error at the top of every TS file:
This only happens when the VS Code workspace path includes a symlink. In my case, I have a second hard drive mounted as
/extra
, and I store all my projects inside/extra/projects
, but I have a symlink to that projects folder from my home directory, so I usually open projects through/home/jbaker/projects/<project name>
. When I open the project using the more direct path,/extra/projects/<project name>
, this error does not happen.Reproduction Repository Link
https://github.com/joshuakb2/typescript-eslint-bug-repro
Repro Steps
ts/app/main.ts
file and observe no eslint errors. Feel free to edit the file to introduce some errors, to confirm that eslint is present and working properly.ts/app/main.ts
file and observe that eslint thinks the file does not match the project specification.Versions
@typescript-eslint/eslint-plugin
5.31.0
@typescript-eslint/parser
5.31.0
@typescript-eslint/scope-manager
5.31.0
@typescript-eslint/typescript-estree
5.31.0
@typescript-eslint/type-utils
5.31.0
@typescript-eslint/utils
5.31.0
4.7.4
8.20.0
1.68.1
2.2.6
The text was updated successfully, but these errors were encountered: