Skip to content

Bug: parserOptions.project with single-run mode and extraFileExtensions: files not in program instance(s) #9504

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

After updating https://github.com/ota-meshi/eslint-plugin-yml to 8.0.0-alpha.40, trying to run npm run lint gives:

/Users/josh/repos/eslint-plugin-yml/docs/.vitepress/theme/components/components/EslintPluginEditor.vue
  0:0  error  Parsing error: "parserOptions.programs" has been provided for @typescript-eslint/parser.
The file was not found in any of the provided program instance(s): docs/.vitepress/theme/components/components/EslintPluginEditor.vue

...for six files in total. Linting works fine if you switch to projectService: true. All three variations of linting take about 130s on my Mac Studio. I posted a comment here: https://github.com/ota-meshi/eslint-plugin-yml/pull/346/files#r1667218685.

...and for a second, quicker reproduction (~30s), here: https://github.com/ota-meshi/eslint-plugin-jsonc/pull/351/files#r1667375018

Reproduction Repository Link

Repro Steps

  1. clone https://github.com/ota-meshi/eslint-plugin-yml
  2. gh pr checkout 346
  3. npm install
  4. npm run lint

Versions

package version
@typescript-eslint/eslint-plugin 8.0.0-alpha.39
@typescript-eslint/parser 8.0.0-alpha.39
@typescript-eslint/scope-manager 8.0.0-alpha.39
@typescript-eslint/typescript-estree 8.0.0-alpha.39
@typescript-eslint/type-utils 8.0.0-alpha.39
@typescript-eslint/utils 8.0.0-alpha.39
TypeScript 5.5.0
ESLint 9.5.0

💖

Metadata

Metadata

Labels

bugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.team assignedA member of the typescript-eslint team should work on this.vueissues relating to vue support

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions