-
Notifications
You must be signed in to change notification settings - Fork 342
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
Parsing error: ESLint was configured to run on X However, that TSConfig does not include this file (when project opened from symlinked folder) #1972
Comments
Thanks for the issue report. Does the validation happen correctly when you use eslint in the terminal. The error you are seeing indicates that this is a general ESLint setup problem independent of the VSCode extension. If validation happens correctly in the terminal can you please provide me with a GitHub repository I can clone that demos what you are experiencing. |
When opening the original folder, and running in the "frontend" folder in VS Code terminal, I get (as expected):
When opening the symlinked folder, and running in the "frontend" folder in VS Code terminal, I get:
So, exactly the same output in command line, but different behavior in the editor. I've created a repo with the example reproducing the issue: fohrloop/vscode-eslint-issue-1972. |
Thanks for the repository! Can you provide me with some steps I should following on the reproducing example. |
Sure! I wrote some steps already on the issue itself (under Steps to reproduce). Basically Setup
Reproducing the issue
|
I'm in the process of setting up my very first JS/TS project. I was getting and error like this in VSCode from the eslint plugin:
I was trying to reproduce the issue with minimal example, and this is what I got. The reason seems to be somehow related to the fact that the project was opened from a location that is a symlink to another folder.
Steps to reproduce
1 Create the repo
Create a project folder with a "repo" folder (that would contain your git repo) somewhere. In this example, I'm using
Create a
/frontend
directory to the repo, and add the following files:eslint.config.js
tsconfig.node.json
package.json
app/foo.ts
Install the package. The repo folder should have following contents:
2 Create a symbolic link to the repo folder
3 Open the project with VS Code with original and symlinked locations
When opening original folder (
/home/USERNAME/projects/testproj/repo
) in VS Code:When opening symlinked folder (
/testproj/repo
) in VS Code:Parsing error: ESLint was configured to run on X However, that TSConfig does not include this file
. (this is the problem)Version info
from ESList Output:
The text was updated successfully, but these errors were encountered: