Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/thonny/shared/thonny/ast_utils.py", line 178, in _mark_text_ranges_rec

tokens = _mark_end_and_return_child_tokens(node, tokens, prelim_end_lineno, prelim_end_col_offset)


 "/usr/lib/python3/dist-packages/thonny/shared/thonny/ast_utils.py", line 257, in _mark_end_and_return_child_tokens

while (tokens[-1].type in (tokenize.NL, tokenize.COMMENT, token.NEWLINE, token.INDENT)
IndexError: list index out of range

'Traceback (most recent call last):


 "1.py", line 11, in <module>

completions = script.completions()


 "/home/user/.local/lib/python3.5/site-packages/jedi/api/__init__.py", line 179, in completions

completions = completion.completions()


 "/home/user/.local/lib/python3.5/site-packages/jedi/api/completion.py", line 98, in completions

completion_names = self._get_context_completions()


 "/home/user/.local/lib/python3.5/site-packages/jedi/api/completion.py", line 198, in _get_context_completions

completion_names += self._trailer_completions(dot.get_previous_leaf())


 "/home/user/.local/lib/python3.5/site-packages/jedi/api/completion.py", line 234, in _trailer_completions

contexts = evaluate_call_of_leaf(evaluation_context, previous_leaf)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/helpers.py", line 77, in evaluate_call_of_leaf

return context.eval_node(leaf)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/base_context.py", line 145, in eval_node

return self.evaluator.eval_element(self, node)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/__init__.py", line 200, in eval_element

return self._eval_element_if_evaluated(context, element)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/__init__.py", line 212, in _eval_element_if_evaluated

return self._eval_element_cached(context, element)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/cache.py", line 40, in wrapper

rv = function(obj, *args, **kwargs)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/__init__.py", line 216, in _eval_element_cached

return eval_node(context, element)


 "/home/user/.local/lib/python3.5/site-packages/jedi/debug.py", line 81, in wrapper

return func(*args, **kwargs)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/syntax_tree.py", line 48, in wrapper

return func(context, *args, **kwargs)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/syntax_tree.py", line 72, in eval_node

return eval_atom(context, element)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/syntax_tree.py", line 202, in eval_atom

search_global=True


 "/home/user/.local/lib/python3.5/site-packages/jedi/_compatibility.py", line 274, in <lambda>

return lambda *args, **kwargs: self.func(obj, *args, **kwargs)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/base_context.py", line 162, in py__getattribute__

return f.find(filters, attribute_lookup=not search_global)


 "/home/user/.local/lib/python3.5/site-packages/jedi/debug.py", line 81, in wrapper

return func(*args, **kwargs)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/finder.py", line 56, in find

names = self.filter_name(filters)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/finder.py", line 141, in filter_name

for filter in filters:


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/filters.py", line 482, in get_global_filters

origin_scope=origin_scope):


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/context/module.py", line 66, in get_filters

for star_module in self.star_imports():


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/cache.py", line 40, in wrapper

rv = function(obj, *args, **kwargs)


 "/home/user/.local/lib/python3.5/site-packages/jedi/evaluate/context/module.py", line 77, in star_imports

name = i.get_paths()[-1][-1]
IndexError: list index out of range```