-
Notifications
You must be signed in to change notification settings - Fork 334
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
do not show error in symbolic link folder #1351
Comments
All I can recommend is to exclude the folder in this case using an |
You had not understand me, I want it display errors in symlink but not ignore. |
@zhuoyan123 does the validation happen correctly when you use eslint in the terminal. If this is the case can you please provide me with a GitHub repository I can clone that demos what you are experiencing. |
this is my project in github, https://github.com/zhuoyan123/vscode-eslint-symlinks |
The validation doesn't happen correctly in the terminal. If I run
The extension can only validate files correctly iff the validation happens correctly in the terminal. I will close the issue for now. If you still see problems after the validation happens correctly in the terminal please ping and I will reopen. |
I had the same problem. The eslint extension did not show linter errors from files in a symlinked folder. Running eslint from the terminal worked fine though. As a workaround set the |
Your method works, thank you very much |
Can confirm that issue is still here and that the workaround suggested by @CarstenWalther works. |
@romamik thanks for the GitHub repository. The underlying problem here is how node deals with sym links and there is nothing I can do about this except that you can provide me with the location of the eslint module by settting
Even though I start node on the symlinked folder node does a realpath and actually opens on I tried various things to convince node to not fall back to the real path but wasn't able to do so. If someone has an idea I am happy to further experiement. It does work in the terminal since there we start with a symlinked path in the terminal. |
An easier fix is to denote the workspace root as the working directory to use by using the following setting:
|
They are speaking about __filename/__dirname there, but these behave the same. nodejs/node#22602 I agree that nothing can be done here without proper information from the node. |
I worked on mac os, this is my workspace
the 'src' is linked to another folder, when I make error in some file in src, vscode-eslint can not give me error info, but webpack gives me.
this is stat when I maked an error
this is the info by command 'ls -l' in root
The text was updated successfully, but these errors were encountered: