Atom Hydrogen error "unexpected EOF while parsing" for python `if` statement!?
还没有人认领这个 Issue。
评估
调研方向
在报告的平台上,使用提供的 for 和 if 代码片段在 Atom 1.35.1 中重现该问题。首先跟踪用于处理这些语句的 Python folding 或 parsing 路径;报告中没有指明源文件或测试。完成的标准是 if 块能够像 for 块一样折叠,并且不会报告意外的 EOF 错误。
由索引模型根据 Issue 内容生成。
描述
Seems to be a problem w/ how Atom interprets the code. For loops it will give me the option to "fold" or "collapse" by clicking the carrot in the line number. Yet, if loops have no such luck.
-
Editor name and version: Atom 1.35.1
-
Platform: Mac OS Sierra 10.12.6
-
Color scheme: One Dark/Solarized Dark
-
MagicPython version: 0.4.15
-
A sreenshot:

-
5-10 lines of surrounding code:
## this works:
for i in range(10):
print( i)
## this doesn't:
if not False:
print("test worked")
- 主要语言
- JavaScript
- 星标
- 1.4k
- 派生
- 98
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MagicStack/MagicPython 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 58/100
MagicStack/MagicPython#275 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 48/100
MagicStack/MagicPython#273 · 7 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
MagicStack/MagicPython#269 ·
-
难度 3/5 1-2 天 新手友好度 42/100
MagicStack/MagicPython#267 ·
-
难度 3/5 1-2 天 新手友好度 42/100
MagicStack/MagicPython#265 · 2 条评论 ·
查看 MagicStack/MagicPython 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
Seeed-Studio/wiki-documents#5655 · 2 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
capricorn86/happy-dom#2435 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
Edit: CW+ 未关闭channels:edit check:passed
难度 2/5 1-3 小时 新手友好度 68/100
-
01 type: bug 30 needs: triage 99 tag: UX Accessibility
难度 2/5 1-3 小时 新手友好度 82/100