Fine-grained reacts poorly to missing core cache files
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Reproduce the failure with the builtins cache unavailable, then trace the cache-loading path and the handling of missing typing data. Run the existing test suite to identify the additional errors mentioned in the issue; done means missing critical cache files no longer cause crashes and the affected tests pass.
Written by the indexing model from the issue text.
Description
If the cache for builtins can't be loaded, fine-grained will basically always crash trying to create builtins.objects. There are some crashes if it can't loading typing also, maybe other things.
The solution is probably to fall back to not using a cache if the most critical cache files are missing, but I get a handful of test failures where we produce additional errors when I do that, so it will require a bit more work.
https://github.com/python/mypy/issues/4909#tasklist-block-93702cbf-70c7-4625-a29a-d4dc673c1426
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 54
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from python/mypy
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug topic-configuration topic-error-reporting
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100