-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: Reproducible allowAutomaticSingleRunInference
failure
#5880
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
Now this is interesting! From the log:
But, the tsconfig does include include Some kind of odd caching perhaps? Investigation required. |
Yeah, I went down a whole rabbit hole of "is it somehow not finding Eventually I realized the rules were only failing in certain files, but working fine in others. Eventually I managed to isolate the issue to files importing from I have wondered if the (possibly extraneous?) |
If you |
Ah, great question. The answer is no: https://github.com/aaronadamsCA/typescript-eslint-issue-5136/actions/runs/3322301096/jobs/5491127934 |
I tried and it doesn't repro locally - so maybe something specific to the action environment?
That generally means that our parser was unable to resolve some type. @aaronadamsCA please approve the actions on aaronadamsCA/typescript-eslint-issue-5136#3 so we can see the logs |
You should be good to go. Note that at one point I was also reproducing locally - not sure what changed there. I can dig in further if it's at all helpful. |
Oof. Investigation blocked by #5887 |
okay I've figured it out! PR soon |
Awesome. I am also assuming this was a race condition, which would explain why the issue seemed to randomly disappear only to return again later. That part was driving me especially crazy. I'll be glad to have this sorted and get back some linting speed, thank you! 🙌 |
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
I believe I've reproduced #5136.
I seem to have it narrowed down to the following very specific combination:
typescript-eslint
together witheslint-plugin-import
;allowAutomaticSingleRunInference
;"@mui/joy/styles"
- it seems this import is haunted somehow.Even weirder - it doesn't always reproduce locally, but fails every time when running on GitHub Actions:
https://github.com/aaronadamsCA/typescript-eslint-issue-5136/actions/runs/3321426085/jobs/5489056308
This was not easy to isolate, but hopefully this reproduction can help resolve the issue for good.
For now we will simply disable
allowAutomaticSingleRunInference
in our repositories to avoid this issue.Reproduction Repository Link
https://github.com/aaronadamsCA/typescript-eslint-issue-5136
Repro Steps
yarn install
yarn run check
Versions
@typescript-eslint/eslint-plugin
5.41.0
@typescript-eslint/parser
5.41.0
TypeScript
4.8.4
ESLint
8.26.0
node
16.17.0
Also note Gatsby has a transitive dependency on
@typescript-eslint/eslint-plugin@npm:4.33.0
, but I don't believe this is related.The text was updated successfully, but these errors were encountered: