SourcetrailPythonIndexer icon indicating copy to clipboard operation
SourcetrailPythonIndexer copied to clipboard

Symbol resolution errors with the latest jedi library

Open midchildan opened this issue 4 years ago • 4 comments

This issue has come up while packaging Sourcetrail for NixOS (NixOS/nixpkgs#95530). There seems to be a compatibility problem with recent commits of jedi (https://github.com/davidhalter/jedi/commit/216f976fd5cab7a460e5d287e853d11759251e52) that prevents the SourcetrailPythonIndexer from resolving symbols from the Python standard library. Though not strictly a bug since we were obviously attempting to use an unsupported configuration, we thought it might be worth creating a issue to avoid problems when the next version of jedi is released.

Here's a screenshot with the errors: Screenshot from 2020-10-27 22-11-25

midchildan avatar Oct 27 '20 14:10 midchildan

Thanks for the heads up. Are you indexing Python 2 code? Or is it Python 3?

mlangkabel avatar Oct 28 '20 20:10 mlangkabel

I’ve indexed the sample project included in Sourcetrail with Python 3.8.

midchildan avatar Oct 28 '20 22:10 midchildan

I get this error as well on Archlinux, and I suspect that #52 is of the same kind - what I experience is that occasionally symbols from the standard library are not resolved, and restarting the scan can help. I wouldn't say that it is a brand new issue - I experience this kind of behavior already for a couple of months.

matejak avatar Oct 29 '20 10:10 matejak

I wouldn't say that it is a brand new issue - I experience this kind of behavior already for a couple of months.

I think this is a separate issue because no amount of restarting helped. Since downgrading jedi did fix the issue however, I see it likely that it is a problem introduced by recent commits from jedi.

midchildan avatar Nov 01 '20 16:11 midchildan