python / python/mypy

dmypy fails to see errors after changing path

未关闭
#16,705 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug topic-daemon
主要语言
Python
星标
20.6k
派生
3.3k
PR 合并指标
PR 指标待抓取

描述

Bug Report

It seems dmypy stops seeing errors when you give it exact paths.

To Reproduce

I have created a repository here with a command that creates a virtualenv and instructions on commands to run

https://github.com/delfick/mypy-daemon-bug

Expected Behavior

I expect to be able to run dmypy against different files in my project and have it still be able to see errors in files.

Actual Behavior

It appears that when dmypy is run with a different path in my project it loses the ability to see errors until the next time it is restarted

Your Environment

  • Mypy version used: 1.8.0
  • Mypy command-line flags: dmypy run -- <path>
  • Mypy configuration options from mypy.ini (and other config files): no configuration files
  • Python version used: 3.11.1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从链接的复现仓库开始,并使用 dmypy 1.8.0 和 Python 3.11.1 运行其中记录的命令。跟踪 dmypy run -- <path> 如何处理连续的精确路径;在更改路径后无需重启 daemon,项目文件中的错误仍保持可见,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
cli, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。