atom-community / atom-community/ide-python
Pyflakes generating error on interpolated string
- Lingua principale
- JavaScript
- Stelle
- 238
- Fork
- 40
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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$
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il report con l’esempio foo.py mostrato e verifica come ide-python invoca Pyflakes. Confronta i comandi Python 2 e Python 3 nell’issue; il lavoro è completato quando le stringhe interpolate vengono controllate con Python 3 senza un falso errore di sintassi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, python
- Ambito
- developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100