-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Parser reports "Parsing error" for new files added to project (VSCode) #864
Copy link
Copy link
Closed
eggjs/egg-tslint-to-eslint
#3Labels
bugSomething isn't workingSomething isn't workinghas prthere is a PR raised to close thisthere is a PR raised to close thislocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: parserIssues related to @typescript-eslint/parserIssues related to @typescript-eslint/parser
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghas prthere is a PR raised to close thisthere is a PR raised to close thislocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: parserIssues related to @typescript-eslint/parserIssues related to @typescript-eslint/parser
What code were you trying to parse?
A new React component module. This happens on all new TypeScript source files, however. This is being triggered from the instance of ESLint that VSCode runs in the background, meaning that in order to get this error to go away, I have to reload the entire VSCode window.
tsconfig.json
include:What did you expect to happen?
The file should be parsed normally, as its path is matched by the
includeproperty in mytsconfig.jsonfile.What actually happened?
A "Parsing error" is reported on the first line of any file that is created while the VSCode linter instance is running, saying that the file is not included in the project. The error does not go away unless I restart VSCode (or reload the window).
Versions
@typescript-eslint/parser2.0.0TypeScript3.4.5ESLint6.1.0node12.7.0npmyarn1.17.3