atom-community / atom-community/ide-python
Pyflakes generating error on interpolated string
- Langage dominant
- JavaScript
- Étoiles
- 238
- Forks
- 40
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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$
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le rapport avec l’exemple foo.py présenté et examinez comment ide-python invoque Pyflakes. Comparez les commandes Python 2 et Python 3 dans l’issue ; le travail est terminé lorsque les chaînes interpolées sont vérifiées avec Python 3 sans fausse erreur de syntaxe.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, python
- Domaine
- developer-experience, tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100