| Summary: | KDevelop Crash on recent keywords (Python) [Python::PythonCodeCompletionContext::raiseItems, KDevelop::DUContext::findDeclarations] | ||
|---|---|---|---|
| Product: | [Developer tools] kdev-python | Reporter: | robert <robert.buchinger> |
| Component: | Language support | Assignee: | Sven Brauch <mail> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | Keywords: | drkonqi |
| Priority: | NOR | ||
| Version First Reported In: | 5.0.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/kdev-python/1326aa448eab2b8b76e6546c4e3160c98e817502 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
robert
2016-12-06 13:05:59 UTC
Sorry, that's too unspecific -- I can't reproduce this issue here. Can you paste or link to the code you are editing, and tell me where? Hi Sven
For example when i try to code this:
#a lot of code above
fieldvalues = {}
fieldtext = {}
try:
cur = dbcon.cursor()
cur.execute("select options from table where ID=%s",(fieldID,))
res = cur.fetchall()
except Exception as e:
print str(e)
#a lot of code below
it crashes immediately after entering the word "except"
this piece of code is part of a (closed source) project with about 900 lines of code
After each crash, Kdevelop tries to recover the code, but fails with the same result when recovering
Git commit 1326aa448eab2b8b76e6546c4e3160c98e817502 by Sven Brauch. Committed on 06/12/2016 at 17:35. Pushed by brauch into branch '5.0'. fix crash when requesting raise items without the docfile being parsed If you hit this crash, just let the parser run through once before typing, then it should be gone. M +3 -0 codecompletion/context.cpp https://commits.kde.org/kdev-python/1326aa448eab2b8b76e6546c4e3160c98e817502 |