-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: Error with @typescript-eslint on project inside sym-linked folder #6030
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
If you're able to run from the CLI like in #2234 no matter the folder you're in, then I'm not sure what we can do or if it's specifically a bug within our project or not. If it doesn't work within the IDE, but is fine with the CLI, then that suggests that there's something different about the vscode environment that doesn't play well with something within our code. If you're not able to run in the CLI or VSCode, then probably a duplicate of #2987 Regardless - symlinks are a very rare usecase - so we'd be looking for help to investigate and fix this issue! |
In the
|
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
Due to company policies, on my machine, my home directory (
cd ~
) points to/users/<username>
, and/users
is a symbolic link to/home
. When I open a folder in VS Code located under/users
, every TS file I open has the following ESLint error at the top reported by thevscode-eslint
extension:When I open the same folder but from
/home
instead of/users
, the error message disappears and the extension works as expected, which confirms that my project's TypeScript and linting configurations are correct (i.e.parserOptions.project
points to the project'stsconfig.json
, and the files on which the error appears are properly included by thistsconfig.json
).This issue has already been reported in #2234 but has been closed and locked without a resolution. I've also reported it in the
vscode-eslint
extension's repository and was told the problem came fromtypescript-eslint
: microsoft/vscode-eslint#1543.It is not a blocker, obviously, since I'm able to open my projects from
/home
instead of/users
, but I think it's worth investigating given that it took me a few frustrating hours before I was able to identify the root cause. I hope this issue can save other people from experiencing this frustration.Reproduction Repository Link
https://gitlab.esrf.fr/ui/myhdf5
Repro Steps
pnpm install
vscode-eslint
extension installedVersions
4.1.7
@typescript-eslint/eslint-plugin
5.30.6
@typescript-eslint/parser
5.30.6
TypeScript
4.7.4
ESLint
8.21.0
node
16.18.0
pnpm
7.14.0
The text was updated successfully, but these errors were encountered: