atom-community / atom-community/ide-python
Pyflakes generating error on interpolated string
- Dominant language
- JavaScript
- Stars
- 238
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
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$
```
Contributor guide
Research direction
Start by reproducing the report with the shown foo.py example and inspect how ide-python invokes Pyflakes. Compare the Python 2 and Python 3 commands in the issue; done means interpolated strings are checked with Python 3 without a false syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, python
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100