atom-community / atom-community/ide-python

Pyflakes generating error on interpolated string

未关闭
#187 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
238
派生
40
PR 合并指标
30 天内没有已合并 PR

描述

Pyflakes reports errors on interpolated string syntax.

```
print("")
print(f"") # Error reported here
```

I believe the problem is related to whether Pyflakes run with Python 3 vs Python 2. See log below where it behaves differently when run with Python3 even when same version is reported.

Should ide-python be running Pyflakes with Python3?

My system, atom, and ide-python are all up to date. And I have reinstalled pyflakes to ensure latest version in python3.

```
4pi:flask juan$ python -m pyflakes --version
2.1.1 Python 2.7.15 on Darwin
4pi:flask juan$ python -m pyflakes foo.py
foo.py:2:9: invalid syntax
print(f"")
^
4pi:flask juan$ python3 -m pyflakes --version
2.1.1 Python 3.7.3 on Darwin
4pi:flask juan$ python3 -m pyflakes foo.py
4pi:flask juan$
```

贡献指南

打开贡献指南

调研方向

首先使用所示的 foo.py 示例重现报告,并检查 ide-python 如何调用 Pyflakes。比较 issue 中的 Python 2 和 Python 3 命令;当插值字符串能够使用 Python 3 进行检查且不会产生错误的语法错误时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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