crash while typing ".astype"

Issue #132 resolved
Johann Krauter created an issue

itom crashes when you add to the last command “.astype(“float”).

import numpy as np

x = [1, 2, 3] 

x = np.genfromtxt(np.array(x))

Maybe some bug considering syntax highlighting?

Comments (4)

  1. M. Gronle

    I cannot reproduce this bug.

    I opened a new itom and opened a new script window,
    then I pasted the code from above and the set cursor after the last closing bracket and
    started typing “.astype('float')”. This worked properly.

    Can anybody reproduce the bug?

  2. Johann Krauter reporter

    When I reproduce this bug in the itom debug mode. Following output is printed into command line:

    >>Unknown exception in jediCompletionRequestEnqueued. Please report this bug.
    >>Error when getting completions from jedi
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: for (key, val) in user_filling_values.items():                  if _is_string_like(key):                      try:                          # Transform it into an 
    ... integer                          key = names.index(key)                      except ValueError:                          # We couldn't find it: the name must have been 
    ... dropped,                          continue                  # Redefine the key if it's a column number and usecols is defined                  if usecols:                      
    ... try:                          key = usecols.index(key)                      except ValueError:                          pass                  # Add the value to the list                  
    ... filling_values[key] = val@1908,12>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: for (i, current) in enumerate(usecols):                  # if usecols is a list of names, convert to a list of indices                  if 
    ... _is_string_like(current):                      usecols[i] = names.index(current)                  elif current < 0:                      usecols[i] = current + len(first_values)@1827,12>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: # Parse each line          for (i, line) in enumerate(itertools.chain([first_line, ], fhd)):              values = split_line(line)              nbvalues = 
    ... len(values)              # Skip an empty line              if nbvalues == 0:                  continue              if usecols:                  # Select only the columns we need                  
    ... try:                      values = [values[_] for _ in usecols]                  except IndexError:                      append_to_invalid((i + skip_header + 1, nbvalues))                      
    ... continue              elif nbvalues != nbcols:                  append_to_invalid((i + skip_header + 1, nbvalues))                  continue              # Store the values              
    ... append_to_rows(tuple(values))              if usemask:                  append_to_masks(tuple([v.strip() in m                                         for (v, m) in 
    ... zip(values,                                                           missing_values)]))              if len(rows) == max_rows:                  break@2015,8>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: for name in filelist:              if self.exists(name):                  if self._isurl(name):                      name = self._cache(name)                  return name@370,8>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: for zipext in _file_openers.keys():                  if zipext:                      names.append(filename+zipext)@297,12>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:/itom/build/itom/itom-packages\itomJediLib.py", line 265, in completions
        completions = script.complete(line=line + 1, column=column)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\helpers.py", line 487, in wrapper
        return func(self, line, column, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\__init__.py", line 275, in complete
        return self._complete(line, column, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\__init__.py", line 283, in _complete
        return completion.complete()
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\completion.py", line 172, in complete
        cached_name, completion_names = self._complete_python(leaf)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\completion.py", line 283, in _complete_python
        cached_name, n = self._complete_trailer(dot.get_previous_leaf())
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\completion.py", line 384, in _complete_trailer
        values = infer_call_of_leaf(inferred_context, previous_leaf)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\helpers.py", line 108, in infer_call_of_leaf
        values = infer_trailer(context, values, trailer)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 280, in infer_trailer
        return atom_values.execute(args)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 482, in execute
        return ValueSet.from_sets(c.inference_state.execute(c, arguments) for c in self._set)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 482, in <genexpr>
        return ValueSet.from_sets(c.inference_state.execute(c, arguments) for c in self._set)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 132, in wrapper
        return call()
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 107, in call
        return callback(value, arguments=arguments)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\pytest.py", line 25, in wrapper
        return callback(value, arguments)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\__init__.py", line 119, in execute
        value_set = value.py__call__(arguments=arguments)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\function.py", line 118, in py__call__
        return function_execution.infer()
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\function.py", line 360, in infer
        return self.get_return_values()
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\recursion.py", line 87, in wrapper
        result = func(self, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\function.py", line 244, in get_return_values
        value_set |= self.infer_node(children[1])
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 197, in _infer_node
        value_set = context.infer_node(first_child)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 184, in _infer_node
        return infer_atom(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 309, in infer_atom
        return context.py__getattribute__(atom, position=position)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in py__getattribute__
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in <genexpr>
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\names.py", line 279, in infer
        return tree_name_to_values(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 848, in wrapper
        return func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\django.py", line 176, in wrapper
        result = func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 746, in tree_name_to_values
        types = infer_expr_stmt(context, node, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 384, in infer_expr_stmt
        return _infer_expr_stmt(context, stmt, seek_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 417, in _infer_expr_stmt
        value_set = context.infer_node(rhs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 197, in _infer_node
        value_set = context.infer_node(first_child)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 184, in _infer_node
        return infer_atom(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 309, in infer_atom
        return context.py__getattribute__(atom, position=position)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in py__getattribute__
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in <genexpr>
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\names.py", line 279, in infer
        return tree_name_to_values(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 848, in wrapper
        return func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\django.py", line 176, in wrapper
        result = func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 746, in tree_name_to_values
        types = infer_expr_stmt(context, node, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 384, in infer_expr_stmt
        return _infer_expr_stmt(context, stmt, seek_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 417, in _infer_expr_stmt
        value_set = context.infer_node(rhs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 197, in _infer_node
        value_set = context.infer_node(first_child)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 184, in _infer_node
        return infer_atom(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 309, in infer_atom
        return context.py__getattribute__(atom, position=position)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in py__getattribute__
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in <genexpr>
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\names.py", line 279, in infer
        return tree_name_to_values(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 848, in wrapper
        return func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\django.py", line 176, in wrapper
        result = func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 746, in tree_name_to_values
        types = infer_expr_stmt(context, node, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 384, in infer_expr_stmt
        return _infer_expr_stmt(context, stmt, seek_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 417, in _infer_expr_stmt
        value_set = context.infer_node(rhs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 208, in _infer_node
        value_set = infer_trailer(context, value_set, trailer)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 266, in infer_trailer
        return atom_values.get_item(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 494, in get_item
        return ValueSet.from_sets(_getitem(c, *args, **kwargs) for c in self._set)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 494, in <genexpr>
        return ValueSet.from_sets(_getitem(c, *args, **kwargs) for c in self._set)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 384, in _getitem
        index = index_value.get_safe_value(default=None)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\iterable.py", line 660, in get_safe_value
        return slice(get(self._start), get(self._stop), get(self._step))
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\iterable.py", line 650, in get
        result = self._context.infer_node(element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 217, in _infer_node
        value_set = context.infer_node(element.children[-1])
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 184, in _infer_node
        return infer_atom(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 309, in infer_atom
        return context.py__getattribute__(atom, position=position)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in py__getattribute__
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in <genexpr>
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\names.py", line 279, in infer
        return tree_name_to_values(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 848, in wrapper
        return func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\django.py", line 176, in wrapper
        result = func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 746, in tree_name_to_values
        types = infer_expr_stmt(context, node, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 380, in infer_expr_stmt
        annotation.find_type_from_comment_hint_assign(context, stmt, seek_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\gradual\annotation.py", line 380, in find_type_from_comment_hint_assign
        return _find_type_from_comment_hint(context, node, node.children[0], name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\gradual\annotation.py", line 397, in _find_type_from_comment_hint
        comment = parser_utils.get_following_comment_same_line(node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\parser_utils.py", line 205, in get_following_comment_same_line
        whitespace = node.get_last_leaf().get_next_leaf().prefix
      File "C:\itom\3rdParty\Python38\lib\site-packages\parso\tree.py", line 114, in get_next_leaf
        i = c.index(node)
    RecursionError: maximum recursion depth exceeded
    >>Error when getting completions from jedi
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: for (key, val) in user_filling_values.items():                  if _is_string_like(key):                      try:                          # Transform it into an 
    ... integer                          key = names.index(key)                      except ValueError:                          # We couldn't find it: the name must have been 
    ... dropped,                          continue                  # Redefine the key if it's a column number and usecols is defined                  if usecols:                      
    ... try:                          key = usecols.index(key)                      except ValueError:                          pass                  # Add the value to the list                  
    ... filling_values[key] = val@1908,12>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: for (i, current) in enumerate(usecols):                  # if usecols is a list of names, convert to a list of indices                  if 
    ... _is_string_like(current):                      usecols[i] = names.index(current)                  elif current < 0:                      usecols[i] = current + len(first_values)@1827,12>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: # Parse each line          for (i, line) in enumerate(itertools.chain([first_line, ], fhd)):              values = split_line(line)              nbvalues = 
    ... len(values)              # Skip an empty line              if nbvalues == 0:                  continue              if usecols:                  # Select only the columns we need                  
    ... try:                      values = [values[_] for _ in usecols]                  except IndexError:                      append_to_invalid((i + skip_header + 1, nbvalues))                      
    ... continue              elif nbvalues != nbcols:                  append_to_invalid((i + skip_header + 1, nbvalues))                  continue              # Store the values              
    ... append_to_rows(tuple(values))              if usemask:                  append_to_masks(tuple([v.strip() in m                                         for (v, m) in 
    ... zip(values,                                                           missing_values)]))              if len(rows) == max_rows:                  break@2015,8>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: for name in filelist:              if self.exists(name):                  if self._isurl(name):                      name = self._cache(name)                  return name@370,8>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
    >>    return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 735, in tree_name_to_values
        types = context.predefined_names[node][tree_name.value]
    KeyError: <ForStmt: for zipext in _file_openers.keys():                  if zipext:                      names.append(filename+zipext)@297,12>
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\cache.py", line 109, in wrapper
        return dct[key]
    KeyError: ((), frozenset())
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:/itom/build/itom/itom-packages\itomJediLib.py", line 265, in completions
        completions = script.complete(line=line + 1, column=column)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\helpers.py", line 487, in wrapper
        return func(self, line, column, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\__init__.py", line 275, in complete
        return self._complete(line, column, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\__init__.py", line 283, in _complete
        return completion.complete()
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\completion.py", line 172, in complete
        cached_name, completion_names = self._complete_python(leaf)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\completion.py", line 283, in _complete_python
        cached_name, n = self._complete_trailer(dot.get_previous_leaf())
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\api\completion.py", line 384, in _complete_trailer
        values = infer_call_of_leaf(inferred_context, previous_leaf)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\helpers.py", line 108, in infer_call_of_leaf
        values = infer_trailer(context, values, trailer)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 280, in infer_trailer
        return atom_values.execute(args)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 482, in execute
        return ValueSet.from_sets(c.inference_state.execute(c, arguments) for c in self._set)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 482, in <genexpr>
        return ValueSet.from_sets(c.inference_state.execute(c, arguments) for c in self._set)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 132, in wrapper
        return call()
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 107, in call
        return callback(value, arguments=arguments)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\pytest.py", line 25, in wrapper
        return callback(value, arguments)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\__init__.py", line 119, in execute
        value_set = value.py__call__(arguments=arguments)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\function.py", line 118, in py__call__
        return function_execution.infer()
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\function.py", line 360, in infer
        return self.get_return_values()
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\recursion.py", line 87, in wrapper
        result = func(self, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\function.py", line 244, in get_return_values
        value_set |= self.infer_node(children[1])
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 197, in _infer_node
        value_set = context.infer_node(first_child)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 184, in _infer_node
        return infer_atom(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 309, in infer_atom
        return context.py__getattribute__(atom, position=position)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in py__getattribute__
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in <genexpr>
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\names.py", line 279, in infer
        return tree_name_to_values(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 848, in wrapper
        return func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\django.py", line 176, in wrapper
        result = func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 746, in tree_name_to_values
        types = infer_expr_stmt(context, node, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 384, in infer_expr_stmt
        return _infer_expr_stmt(context, stmt, seek_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 417, in _infer_expr_stmt
        value_set = context.infer_node(rhs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 197, in _infer_node
        value_set = context.infer_node(first_child)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 184, in _infer_node
        return infer_atom(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 309, in infer_atom
        return context.py__getattribute__(atom, position=position)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in py__getattribute__
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in <genexpr>
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\names.py", line 279, in infer
        return tree_name_to_values(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 848, in wrapper
        return func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\django.py", line 176, in wrapper
        result = func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 746, in tree_name_to_values
        types = infer_expr_stmt(context, node, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 384, in infer_expr_stmt
        return _infer_expr_stmt(context, stmt, seek_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 417, in _infer_expr_stmt
        value_set = context.infer_node(rhs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 197, in _infer_node
        value_set = context.infer_node(first_child)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 184, in _infer_node
        return infer_atom(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 309, in infer_atom
        return context.py__getattribute__(atom, position=position)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in py__getattribute__
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in <genexpr>
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\names.py", line 279, in infer
        return tree_name_to_values(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 848, in wrapper
        return func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\django.py", line 176, in wrapper
        result = func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 746, in tree_name_to_values
        types = infer_expr_stmt(context, node, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 384, in infer_expr_stmt
        return _infer_expr_stmt(context, stmt, seek_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 417, in _infer_expr_stmt
        value_set = context.infer_node(rhs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 208, in _infer_node
        value_set = infer_trailer(context, value_set, trailer)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 266, in infer_trailer
        return atom_values.get_item(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 494, in get_item
        return ValueSet.from_sets(_getitem(c, *args, **kwargs) for c in self._set)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 494, in <genexpr>
        return ValueSet.from_sets(_getitem(c, *args, **kwargs) for c in self._set)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 384, in _getitem
        index = index_value.get_safe_value(default=None)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\iterable.py", line 660, in get_safe_value
        return slice(get(self._start), get(self._stop), get(self._step))
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\value\iterable.py", line 650, in get
        result = self._context.infer_node(element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 217, in _infer_node
        value_set = context.infer_node(element.children[-1])
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 222, in infer_node
        return infer_node(self, node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 156, in infer_node
        return _infer_node_if_inferred(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 169, in _infer_node_if_inferred
        return _infer_node_cached(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\cache.py", line 44, in wrapper
        rv = function(obj, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 174, in _infer_node_cached
        return _infer_node(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\debug.py", line 82, in wrapper
        return func(*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 184, in _infer_node
        return infer_atom(context, element)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 309, in infer_atom
        return context.py__getattribute__(atom, position=position)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in py__getattribute__
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\base_value.py", line 424, in from_sets
        for set_ in sets:
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\context.py", line 75, in <genexpr>
        values = ValueSet.from_sets(name.infer() for name in names)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\names.py", line 279, in infer
        return tree_name_to_values(
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\__init__.py", line 21, in wrapper
        return built_functions[public_name](*args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\stdlib.py", line 848, in wrapper
        return func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\plugins\django.py", line 176, in wrapper
        result = func(inference_state, context, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 746, in tree_name_to_values
        types = infer_expr_stmt(context, node, tree_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 82, in wrapper
        return func(context, *args, **kwargs)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\syntax_tree.py", line 380, in infer_expr_stmt
        annotation.find_type_from_comment_hint_assign(context, stmt, seek_name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\gradual\annotation.py", line 380, in find_type_from_comment_hint_assign
        return _find_type_from_comment_hint(context, node, node.children[0], name)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\inference\gradual\annotation.py", line 397, in _find_type_from_comment_hint
        comment = parser_utils.get_following_comment_same_line(node)
      File "C:\itom\3rdParty\Python38\lib\site-packages\jedi\parser_utils.py", line 205, in get_following_comment_same_line
        whitespace = node.get_last_leaf().get_next_leaf().prefix
      File "C:\itom\3rdParty\Python38\lib\site-packages\parso\tree.py", line 114, in get_next_leaf
        i = c.index(node)
    RecursionError: maximum recursion depth exceeded
    >>
    

  3. M. Gronle

    A RecursionError should be fixed by Jedi, since it is hard to catch at a later time.
    I still cannot reproduce this (tested with Jedi 0.17.0 and 0.17.2, parso 0.7.0)

  4. Log in to comment