Skip to content

Crash on schemathesis with --cache-dir=/dev/null #18454

Closed
@hauntsaninja

Description

@hauntsaninja

Bisects to 3999ab88 in schemathesis

git clone https://github.com/schemathesis/schemathesis
cd schemathesis
mypy src/schemathesis --cache-dir=/dev/null
Traceback (most recent call last):
  File "/Users/shantanujain/.virtualenvs/mypy-wxtm/bin/mypy", line 8, in <module>
    sys.exit(console_entry())
             ~~~~~~~~~~~~~^^
  File "/Users/shantanujain/dev/mypy/mypy/__main__.py", line 15, in console_entry
    main()
    ~~~~^^
  File "/Users/shantanujain/dev/mypy/mypy/main.py", line 119, in main
    res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shantanujain/dev/mypy/mypy/main.py", line 203, in run_build
    res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)
  File "/Users/shantanujain/dev/mypy/mypy/build.py", line 191, in build
    result = _build(
        sources, options, alt_lib_path, flush_errors, fscache, stdout, stderr, extra_plugins
    )
  File "/Users/shantanujain/dev/mypy/mypy/build.py", line 267, in _build
    graph = dispatch(sources, manager, stdout)
  File "/Users/shantanujain/dev/mypy/mypy/build.py", line 2947, in dispatch
    write_deps_cache(rdeps, manager, graph)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/shantanujain/dev/mypy/mypy/build.py", line 976, in write_deps_cache
    assert st.meta, "Module must be either parsed or cached"
           ^^^^^^^
AssertionError: Module must be either parsed or cached

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions