Bug 374809 - Using f-strings gives "undefined variable" warning in line 1
Summary: Using f-strings gives "undefined variable" warning in line 1
Status: RESOLVED FIXED
Alias: None
Product: kdev-python
Classification: Developer tools
Component: Language support (show other bugs)
Version: 5.0.80
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sven Brauch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-09 13:10 UTC by Sven Brauch
Modified: 2017-01-10 14:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Brauch 2017-01-09 13:10:46 UTC
As title says. Possibly already fixed in 5.1 branch, by removing the f-string visitor.
Comment 1 Francis Herne 2017-01-10 14:10:21 UTC
Yes, child nodes of FormattedValue/JoinedString often (but not always?) have totally bogus ranges starting on line 0 or even -1.

That caused any variables used to not be found, with all such errors appearing at the start of the file.

(also crashes for visitors that assumed context ranges to be sane).

Disabling the visitors stopped this, pending a real fix.