Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KDevelop
KDevelop Python Support
Commits
3cd8fe05
Commit
3cd8fe05
authored
Nov 01, 2022
by
frmdstryr
Committed by
Sven Brauch
Nov 07, 2022
Browse files
Fix crash if errline is invalid due to syntax error
parent
bf986340
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/astbuilder.cpp
View file @
3cd8fe05
...
...
@@ -216,7 +216,7 @@ CodeAst::Ptr AstBuilder::parse(const QUrl& filename, QString &contents)
qCWarning
(
KDEV_PYTHON_PARSER
)
<<
"Discarding parts of the code to be parsed because of previous errors"
;
qCDebug
(
KDEV_PYTHON_PARSER
)
<<
indents
;
int
indentAtError
=
indents
.
at
(
errline
);
int
indentAtError
=
errline
<
indents
.
length
()
?
indents
.
at
(
errline
)
:
0
;
QChar
c
;
bool
atLineBeginning
=
true
;
int
currentIndent
=
-
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment