atom-community / atom-community/ide-python

Pyflakes generating error on interpolated string

Đang mở
#187 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
238
Fork
40
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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$
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện báo cáo với ví dụ foo.py được cung cấp và kiểm tra cách ide-python gọi Pyflakes. So sánh các lệnh Python 2 và Python 3 trong issue; hoàn tất khi các chuỗi nội suy được kiểm tra bằng Python 3 mà không xuất hiện lỗi cú pháp giả.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, python
Lĩnh vực
developer-experience, tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.