Commit a10ba5bf authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix autocompletion in case of syntax errors

parent c27217fe
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment