CoatiSoftware / SourcetrailPythonIndexer

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

No location for python module #74

Open kopp opened 3 years ago

kopp commented 3 years ago

If I open a python module (e.g. a file conf.py which shows up as module conf) and try to use Show Definition for the module, I get the error

CodeController.cpp:333 handleMessage() | ERROR: MessageCodeShowDefinition did not contain a nodeId with location files.

printed to command line. If I use Show Definition for any of the variables defined in the module, I can see the correct location (it opens correctly in the "IDE" view to the right).

So I guess that the python indexer is just missing to add the source location (maybe first line of the file) when looking through the module.

I do not know whether this is intentional or not, it is surprising for me :)