Sourcetrail icon indicating copy to clipboard operation
Sourcetrail copied to clipboard

Sourcetrail cannot find custom trail, but other call hierarchies can

Open JeffR1992 opened this issue 4 years ago • 0 comments

I've been trying to use Sourcetrail's custom trail functionality to find a particular path between two functions, but it seems to be failing with the error message No custom trail was found between the specified symbols with the specified parameters.

As an example, when looking at the crazyflie-firmware source code (https://github.com/bitcraze/crazyflie-firmware) in the Eclipse IDE, if I try and find a path from motorsSetRatio() to main(), I can see the following call hierarchy: eclipse_call_hierarchy

However, when trying the following in Sourcetrail, sourcetrail_error

I get the following error, sourcetrail_error_2

And if I instead simply ask for the caller graph of motorsSetRatio(), I'm greeted with a very scary looking network that is much more complicated and confusing to look at than the format given by Eclipse's call hierarchy, sourcetrail_error_3

I love the idea of using Sourcetrail with a light text editor to write code, instead of having to use a heavy IDE like Eclipse, but given the following problem I'm hesitant to replace Eclipse just yet. Any ideas on what I could do to make Sourcetrail's output from motorsSetRatio() to main() look more readable?

JeffR1992 avatar Jun 13 '20 21:06 JeffR1992