python / python/cpython

Windows 'Edit with IDLE' fails in one directory

未关闭
#124,954 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

OS-windows type-bug
主要语言
Python
星标
77.2k
派生
35.9k
PR 合并指标
PR 指标待抓取

描述

Bug report

f:\dev\3x>py -m idlelib f:/dev/tem/blank.py opens blank.py in IDLE. But in File Explorer, right click on blank.py and selection of `Edit with IDLE => Edit with IDLE 3.13 (64 bit) fails. Nothing happens. Same for 3.12 and 3.11.

Copy blank.py up to f:/tem and Edit with IDLE works. Neither directory has __init__ and __main__ defined. Looking at all tabs of the respective properties dialogs and the only difference I noted was the content file and bytes numbers. Context-menu opening works in another existing dir, with the two dunders defined.

If .../tem is renamed or copied (and - removed from the copy name), the command-line success and context-menu failure remain. It seems to be poisoned somehow. With a new subdirectory, F:/dev/temNew with blank.py copied into it, context-menu selection works.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先,通过 File Explorer 针对 f:/dev/tem/blank.py 的“Edit with IDLE”上下文菜单命令复现失败,然后将其与正常工作的命令行启动方式以及正常工作的 temNew 目录进行比较。跟踪 Windows 上下文菜单的启动路径,并确定为什么这个特定目录的情况不会产生任何可见结果;当上下文菜单操作能够可靠地在 IDLE 中打开该文件时,即视为完成。

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

评估

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

把新 issue 发到你的邮箱

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