SourcetrailPythonIndexer icon indicating copy to clipboard operation
SourcetrailPythonIndexer copied to clipboard

No location for python module

Open kopp opened this issue 4 years ago • 0 comments

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 :)

kopp avatar Apr 24 '21 19:04 kopp