jpype
jpype copied to clipboard
some jedi version causing trouble
A version of Jedi is having issues. It is possible that a bad behavior in JPype is triggering it, but it will take time to resolve which I am short on right now, so I just disabled the problematic tests.
2021-01-02T19:45:54.1465499Z grammar = <PythonGrammar:single_input file_input eval_input ...> 2021-01-02T19:45:54.1466108Z path = '/home/vsts/work/1/s/test/jpypetest/test_jedi.py' 2021-01-02T19:45:54.1466305Z 2021-01-02T19:45:54.1466531Z def get_cached_code_lines(grammar, path): 2021-01-02T19:45:54.1466794Z """ 2021-01-02T19:45:54.1467074Z Basically access the cached code lines in parso. This is not the nicest way 2021-01-02T19:45:54.1467457Z to do this, but we avoid splitting all the lines again. 2021-01-02T19:45:54.1467706Z """ 2021-01-02T19:45:54.1467961Z > return parser_cache[grammar._hashed][path].lines 2021-01-02T19:45:54.1468492Z E KeyError: '/home/vsts/work/1/s/test/jpypetest/test_jedi.py' 2021-01-02T19:45:54.1468729Z 2021-01-02T19:45:54.1469260Z /opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/jedi/parser_utils.py:280: KeyError
I don't know if this is related, but the 0.18 release of jedi is breaking tab completion in Jupyter.
https://github.com/ipython/ipython/issues/12745
I fixed it by downgrading to a previous version: pip install -U jedi==0.17.2 parso==0.7.1
. Downgrading might help your issue also.
Seems like we need to run this upstream.
fixed by #1074