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
cannot lint with @typescript-eslint/parser on remote #1179
Comments
@Neurrone very hard to tell without reproducible steps. Can you please provide me with a GitHub repository I can clone that demos what you are experiencing. |
I'm attempting to create a minimal reproduceable example. On this repository, I have it in a WSL2 instance and have it opened in Vs Code. I get the following error when opening index.ts:
Here's the error in the logs:
Running |
How do you open VS Code since the path looks absolutely strange. Can you try to do the following:
This will start VS Code in a special WSL mode and the path the eslint library is loaded from will be You shouldn't start VS Code normally on a mounted Linux drive (e.g. \wsl$\Ubuntu) since it will try to load Linux code into a Windows Node runtime and will confuse pathes. |
Please ping if this doesn't help. |
I'm using code-insiders, and open it by using Based on the path, its being accessed via the WSL$ network drive that you can use in windows explorer to view the contents of the WSL distribution. |
Oh, I also forgot to mention that the contents of my repositories live in the WSL2 ext4 filesystem, not the normal windows filesystem for convenience and massive performance improvements when working in WSL2. |
@Neurrone Yes, having your wworkspace on the WSL2 ext4 file system is exactly how this should be used. However VS Code's extension host doesn't seem to run in the WSL environment since it tries to access the file system via a Windows Network Path (e.g. `\wsl$\Ubuntu\home\dickson\source\vscode-eslint-issue\node_modules\eslint\lib\api.js). Can you provide me with a screen cast showing how you start VS Code? |
I realized I didn't install all the extensions in the remote containers pack, and I was also missing the remote WSL extension. After ensuring that I was correctly running in the WSL instance of vs code server, everything's working perfectly. Sorry for the false alarm |
No problem. |
I'm experiencing the same problem as described in #1075.
When running eslint in the terminal, I'm able to lint typescript files without any issues. However, it doesn't work with the vs code plugin and displays the following error: "The file does not match your project config"
Is there any way that I can see what the project config the extension is using?
The text was updated successfully, but these errors were encountered: