Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
a10ba5bf
Commit
a10ba5bf
authored
Feb 11, 2015
by
Maxime Perrotin
Browse files
Fix autocompletion in case of syntax errors
parent
c27217fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/sdlSymbols.py
View file @
a10ba5bf
...
...
@@ -822,7 +822,12 @@ class TextSymbol(HorizontalSymbol):
except
AttributeError
:
pass
# Update completion list of Signalroutes
Signalroute
.
completion_list
|=
set
(
sig
[
'name'
]
for
sig
in
ast
.
signals
)
try
:
Signalroute
.
completion_list
|=
set
(
sig
[
'name'
]
for
sig
in
ast
.
signals
)
except
AttributeError
:
# no AST, e.g. in cae of syntax errors in the text area
pass
@
property
def
completion_list
(
self
):
...
...
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