python / python/mypy

(🐞) `dmypy recheck --update` crashes

Open
#15,795 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

crash topic-daemon
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

πŸ‘‰ dmypy start
Daemon started
πŸ‘‰ dmypy check test1.py
Success: no issues found in 42 source files
πŸ‘‰ dmypy recheck --update test2.py
Daemon crashed!
Traceback (most recent call last):
  File "mypy\dmypy_server.py", line 234, in serve
  File "mypy\dmypy_server.py", line 281, in run_command
  File "mypy\dmypy_server.py", line 396, in cmd_recheck
AssertionError

mypy 1.4.1
no config files

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up β€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the sequence with dmypy start, dmypy check test1.py, and dmypy recheck --update test2.py. Inspect mypy/dmypy_server.py around cmd_recheck at line 396 to determine why the assertion is reached; done means the update completes without crashing the daemon.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.