Summary: | KDev-Python crashes when parsing RHS of annotated assignment with lambda [Python::UseBuilder::contextAtOrCurrent] | ||
---|---|---|---|
Product: | [Developer tools] kdev-python | Reporter: | Matěj Laitl <matej> |
Component: | general | Assignee: | Francis Herne <mail> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | mail, mail, tiposchi |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.3.1 | ||
Target Milestone: | 5.3.2 | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | cabf41fb18ade07043007c844a21966830ac443a | Version Fixed In: | 5.3.2 |
Description
Matěj Laitl
2019-01-09 17:39:49 UTC
Confirmed; still reproducible with 5.3-git. Even tinier example: `foo: Any = lambda x: 10` Cause is that contextAtOrCurrent() fails on the RHS of annotated assignments. The same crash occurs with a comprehension in place of the lambda. Git commit cabf41fb18ade07043007c844a21966830ac443a by Francis Herne. Committed on 10/01/2019 at 14:51. Pushed by flherne into branch '5.3'. Fix crash when finding context inside annotated assigments. The child nodes weren't visited by ContextBuilder or DeclarationBuilder, resulting in a crash if they contained an expression that tried to use currentContext(). FIXED-IN: 5.3.2 https://commits.kde.org/kdev-python/cabf41fb18ade07043007c844a21966830ac443a Wow, thank you for super-fast fix, Francis! Kudos and keep up the good work. *** Bug 403098 has been marked as a duplicate of this bug. *** |