Are there any editor plugins out there that will c...
# thinking-together
j
Are there any editor plugins out there that will construct a dependency graph of the functions in a file, and sort them topologically?
k
For what language? (I'd also love a way to run tests in topological order of the functions they call..)
❤️ 1
j
Preferably all languages, but I'd settle for any.
g
you can definitely do it with moldable development but i don’t think there’s a guide out for it yet
@Tudor Girba ^?
sourcetrail might be what you’re looking for: https://www.sourcetrail.com/
seems like the kind of thing that really should exist
t
Indeed, gtoolkit.com comes with a rather extensive support for all sorts of analyses. It does come with out of the box visualizations. For example, https://twitter.com/feenkcom/status/1138085230634524672. Still, the most interesting results are obtained by enabling the developer to craft her/his own views.
👍 1
g
@James Sully it looks like mason has the best answer for everyday coding—you may need to write the plugin yourself but the static analysis is already done in vscode
m
@Shubhadeep Roychowdhury
s
Very interesting, very recently I am involved building a product in this area (and some more, hopefully in the future) It is in a very early stage but I can share a video to show what it looks and feels like. Works for Python at the moment but we plan to be language agonistic as soon as possible. Also thanks to this thread I got to know about some more tools that I did not know about.

https://youtu.be/ez6xRv8YTPE

b
Requires using a specific tool so not what you're looking for, but [Observable notebooks do this](https://observablehq.com/@observablehq/notebook-visualizer) and the design suggests a way you might do it more generally