Bug 374809

Summary: Using f-strings gives "undefined variable" warning in line 1
Product: [Developer tools] kdev-python Reporter: Sven Brauch <mail>
Component: Language supportAssignee: Sven Brauch <mail>
Status: RESOLVED FIXED    
Severity: normal CC: mail
Priority: NOR    
Version: 5.0.80   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

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.