Warning is not displayed on the correct line for unknown variables in fstring
See original GitHub issueDescription of your problem
What steps will reproduce the problem? (I did not find an open issue about it but I may be wrong)
- Create a fstring with an unknown variable (see screenshot)
- There is a warning message about it but it is displayed on the first line of the script whichever line the issue is
What is the expected output? What do you see instead? The warning message should be in row 10 in the above screenshot
Versions and main components
- Spyder Version: 3.2.4
- Python Version: 3.6
- Qt Version: 5.6.2
- PyQt Version: 5.6
- Operating system: Windows 10
Dependencies
Please go to the menu entry Help > Optional Dependencies
(or
Help > Dependencies
), press the button Copy to clipboard
and paste the contents below:
IPython >=4.0 : 6.1.0 (OK) cython >=0.21 : 0.26.1 (OK) jedi >=0.9.0 : 0.10.2 (OK) nbconvert >=4.0 : 5.3.1 (OK) numpy >=1.7 : 1.13.1 (OK) pandas >=0.13.1 : 0.21.1 (OK) pycodestyle >=2.3: 2.3.1 (OK) pyflakes >=0.6.0 : 1.5.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.7.2 (OK) qtconsole >=4.2.0: 4.3.1 (OK) rope >=0.9.4 : 0.10.5 (OK) sphinx >=0.6.6 : 1.6.3 (OK) sympy >=0.7.3 : 1.1.1 (OK)
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (12 by maintainers)
Top GitHub Comments
FYI, I believe this is the CPython issue this related to: https://bugs.python.org/issue30465
Thanks @CAM-Gerlach. Indeed, I was considering the python version as the probable root cause. Updating python to
3.6.3
fixes the issue!