You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically I was working on making sure all the type annotations were good for a project I was working on and after fixing multiple files with errors, preforming a dmypy run on a file ended up crashing the dmypy daemon. Subsequent runs after the crash haven't seemed to result in crashes. I can't seem to reproduce the error, but I thought I'd make a new issue just in case.
This might be related somehow to #15246, the final exception is the same.
Traceback
Daemon crashed!
Traceback (most recent call last):
File "mypy/dmypy_server.py", line 230, in serve
File "mypy/dmypy_server.py", line 277, in run_command
File "mypy/dmypy_server.py", line 345, in cmd_run
File "mypy/dmypy_server.py", line 414, in check
File "mypy/dmypy_server.py", line 663, in fine_grained_increment_follow_imports
File "mypy/server/update.py", line 267, in update
File "mypy/server/update.py", line 369, in update_one
File "mypy/server/update.py", line 452, in update_module
File "mypy/server/update.py", line 881, in propagate_changes_using_dependencies
File "mypy/server/update.py", line 1024, in reprocess_nodes
File "mypy/checker.py", line 526, in check_second_pass
File "mypy/checker.py", line 537, in check_partial
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 774, in accept
File "mypy/checker.py", line 960, in visit_func_def
File "mypy/checker.py", line 964, in _visit_func_def
File "mypy/checker.py", line 1036, in check_func_item
File "mypy/checker.py", line 1216, in check_func_def
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 1208, in accept
File "mypy/checker.py", line 2617, in visit_block
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 774, in accept
File "mypy/checker.py", line 960, in visit_func_def
File "mypy/checker.py", line 964, in _visit_func_def
File "mypy/checker.py", line 1036, in check_func_item
File "mypy/checker.py", line 1216, in check_func_def
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 1208, in accept
File "mypy/checker.py", line 2617, in visit_block
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 884, in accept
File "mypy/checker.py", line 4625, in visit_decorator
File "mypy/checker.py", line 1036, in check_func_item
File "mypy/checker.py", line 1216, in check_func_def
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 1208, in accept
File "mypy/checker.py", line 2617, in visit_block
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 1389, in accept
File "mypy/checker.py", line 4490, in visit_for_stmt
File "mypy/checker.py", line 602, in accept_loop
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 1208, in accept
File "mypy/checker.py", line 2617, in visit_block
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 1531, in accept
File "mypy/checker.py", line 4346, in visit_try_stmt
File "mypy/checker.py", line 4382, in visit_try_without_finally
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 1208, in accept
File "mypy/checker.py", line 2617, in visit_block
File "mypy/checker.py", line 584, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checker.py", line 582, in accept
File "mypy/nodes.py", line 1404, in accept
File "mypy/checker.py", line 4141, in visit_return_stmt
File "mypy/checker.py", line 4175, in check_return_stmt
File "mypy/checkexpr.py", line 4892, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checkexpr.py", line 4890, in accept
File "mypy/nodes.py", line 2736, in accept
File "mypy/checkexpr.py", line 5030, in visit_await_expr
File "mypy/checkexpr.py", line 4892, in accept
File "mypy/errors.py", line 1177, in report_internal_error
File "mypy/checkexpr.py", line 4890, in accept
File "mypy/nodes.py", line 1889, in accept
File "mypy/checkexpr.py", line 429, in visit_call_expr
File "mypy/checkexpr.py", line 549, in visit_call_expr_inner
File "mypy/checkexpr.py", line 1209, in check_call_expr_with_callee_type
File "mypy/checkexpr.py", line 1292, in check_call
File "mypy/checkexpr.py", line 1483, in check_callable_call
File "mypy/checkexpr.py", line 2126, in check_argument_types
File "mypy/checkexpr.py", line 4944, in is_valid_keyword_var_arg
File "mypy/checker.py", line 6134, in named_generic_type
File "mypy/checker.py", line 6141, in lookup_typeinfo
File "mypy/checker.py", line 6219, in lookup_qualified
KeyError: '_typeshed'
Curiously, the specified log file from the arguments is empty, the traceback listed was from the daemon response. In previous versions of mypy, any tracebacks from crashes would appear in that log file. This is probably better suited discussing in another issue though.
Again, I haven't been able to reproduce the crash.
Edit: Just realized, another file in the same project has this line:
raw=RawJavaResponseMotdWhenDict(**{"extra": raw})
which likely is the real culprit if this is indeed connected to #15246, it's just that the exception propagated and ended up crashing the daemon when checking a different file.
Your Environment
Mypy version used: 1.3.0
Mypy command-line flags: See listed above for all daemon flags
Mypy configuration options from mypy.ini (and other config files): No other configuration files
Python version used: Python 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0]
Operating system and version: 64 bit Linux Ubuntu Budgie 10.6.1 (Ubuntu 22.04.2 LTS)
The text was updated successfully, but these errors were encountered:
Crash Report
Basically I was working on making sure all the type annotations were good for a project I was working on and after fixing multiple files with errors, preforming a dmypy run on a file ended up crashing the dmypy daemon. Subsequent runs after the crash haven't seemed to result in crashes. I can't seem to reproduce the error, but I thought I'd make a new issue just in case.
This might be related somehow to #15246, the final exception is the same.
Traceback
To Reproduce
dmypy --status-file=/home/<my username>/.idlerc/mypy/dmypy.json run --log-file=/home/<my username>/.idlerc/mypy/log.txt /home/<my username>/<path to file> -- --no-error-summary --show-absolute-path --no-implicit-reexport --soft-error-limit=-1 --show-error-end --no-color-output --warn-unused-ignores --cache-fine-grained --warn-unreachable --disallow-untyped-calls --hide-error-context --disallow-untyped-defs --show-column-numbers --cache-dir=/home/<my username>/.idlerc/mypy --no-warn-no-return --show-error-codes --warn-redundant-casts --show-traceback --strict
Curiously, the specified log file from the arguments is empty, the traceback listed was from the daemon response. In previous versions of mypy, any tracebacks from crashes would appear in that log file. This is probably better suited discussing in another issue though.
Potentially relevant details from said file:
Again, I haven't been able to reproduce the crash.
Edit: Just realized, another file in the same project has this line:
which likely is the real culprit if this is indeed connected to #15246, it's just that the exception propagated and ended up crashing the daemon when checking a different file.
Your Environment
mypy.ini
(and other config files): No other configuration filesThe text was updated successfully, but these errors were encountered: