CoatiSoftware / SourcetrailPythonIndexer

Python Indexer for Sourcetrail based on jedi, parso and SourcetrailDB
GNU General Public License v3.0
90 stars 28 forks source link

__init__ causing links to be shown that should not be #64

Closed rwalroth closed 4 years ago

rwalroth commented 4 years ago

First, this is a fantastic program and I am blown away by how useful it is. But there is a problem I have encountered, that __init__ is causing basically every class to show up as referencing each other: image The links are all ambiguous, and disabling ambiguous post processing is a quick fix but then other ambiguous links I would like to see don't show up. Are there ways to delete edges I know are not needed or to toggle ambiguous edges on and off (doesn't seem like totally re-indexing the project should be necessary)?

mlangkabel commented 4 years ago

@rwalroth, thanks for bringing this up. If you have lots of ambiguous edges, then you are probably only using the "shallow indexing". You shouldn't encounter those issues, if you run the indepth indexing. But of course, that takes much longer to finish.

Usually, resolving those ambiguous edges works fine, but "init" is a special case because that method has the same name in every class.

Let me take a look, maybe we can fix this.

mlangkabel commented 4 years ago

Implemented with Sourcetrail pull requests 951 and 964. This feature should be available in our next release.