Description
Crash Report
I saw this crash when using Mypy extension for VS Code, but it is reproducible in my code base even from command line by directly invoking dmypy
as a module. The crash is in two phases:
- In the first run, the deamon correctly reports errors: the final message is
Found 238 errors in 46 files (checked 1125 source files)
, then the deamon exits (I don't know if exiting in this situation is the expected behaviour). - When I try to restart the deamon the following traceback appears.
Each time I run the command, these two phases alternate.
Traceback
Daemon crashed!
Traceback (most recent call last):
File "mypy/dmypy_server.py", line 227, in serve
File "mypy/dmypy_server.py", line 270, in run_command
File "mypy/dmypy_server.py", line 336, in cmd_run
File "mypy/dmypy_server.py", line 405, in check
File "mypy/dmypy_server.py", line 589, in fine_grained_increment_follow_imports
File "mypy/server/update.py", line 277, in update
File "mypy/server/update.py", line 862, in propagate_changes_using_dependencies
File "mypy/server/update.py", line 996, in reprocess_nodes
File "mypy/server/astmerge.py", line 140, in merge_asts
File "mypy/server/astmerge.py", line 192, in replace_nodes_in_ast
File "mypy/nodes.py", line 374, in accept
File "mypy/server/astmerge.py", line 213, in visit_mypy_file
File "mypy/traverser.py", line 114, in visit_mypy_file
File "mypy/nodes.py", line 1127, in accept
File "mypy/server/astmerge.py", line 238, in visit_class_def
File "mypy/server/astmerge.py", line 393, in process_synthetic_type_info
File "mypy/nodes.py", line 208, in accept
RuntimeError: Not implemented
To Reproduce
Unfortunately I cannot share code for now, I will try to make a reproducible example later. For now I post this error to see if someone can direct me to further steps to better understand the root of the problem or point out trivial mistakes or misconfigurations.
Your Environment
- Mypy version used: dmypy version 0.982
- Mypy command-line flags: the following is the command executed by the VS Code extension and then executed by me afterwards:
$path_to_python -m mypy.dmypy \
--status-file /home/.../filename.json \
run \
--log-file /home/.../filename.log \
-- $project_directory \
--show-traceback --show-column-numbers --python-executable $path_to_python
- Mypy configuration options from
mypy.ini
(and other config files):
[mypy]
warn_return_any = True
warn_unused_configs = True
ignore_missing_imports = True
explicit_package_bases = True
namespace_packages = True
- Python version used: Python 3.9.6
- Operating system and version: Ubuntu 18.04