SourcetrailPythonIndexer
SourcetrailPythonIndexer copied to clipboard
Symbol resolution errors with the latest jedi library
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:
Thanks for the heads up. Are you indexing Python 2 code? Or is it Python 3?
I’ve indexed the sample project included in Sourcetrail with Python 3.8.
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.
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.