-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: EXPERIMENTAL_useProjectService: true
throws unclear error if file is not included in a program
#7435
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
Comments
Ahh so exciting that you're trying out the new option @mrazauskas! 🙌 Would you be able to provide us with a minimum reproduction of what you're seeing locally? Failing that, would we be able to see the original code? We're happy to sign whatever NDAs are needed if this is private. |
Reproduction is here: https://github.com/mrazauskas/x-use-project-service
|
I ran into this too today.
My config (override object):
The file being linted is included by The only debug information from the plugin is:
Then it crashes. FWIW other files seem to be working just fine and the performance is significantly better! |
Thanks for the reminder - I was actually able to repro this myself. I did a brief dive and it doesn't look easy to solve. I'm hoping to close out some work on DefinitelyTyped this month (DefinitelyTyped/DefinitelyTyped#65993), then pick up this issue in earnest after that. |
@JoshuaKGoldberg It feels like this issue is resolved after #8815. Or? |
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
Relevant Package
parser
Playground Link
No response
Repro
To the root of a project that is using
EXPERIMENTAL_useProjectService: true
recently I addedrollup.config.js
. That file was not added to tsconfig'sinclude
list. ESLint throws:By the way, it was so exciting to see the
EXPERIMENTAL_useProjectService
option added. The project I talk about is rather experimental so it was perfect playground to tryout theProjectService
.ESLint Config
tsconfig
Expected Result
Perhaps the error could be more useful. If this should be an error at all. Not sure what is going on.
Actual Result
Looking at the error, I thought that maybe the option was removed or stoped working.
Additional Info
No response
Versions
@typescript-eslint/parser
6.2.1
The text was updated successfully, but these errors were encountered: