tach icon indicating copy to clipboard operation
tach copied to clipboard

--web leads to an empty page

Open timgl opened this issue 1 year ago β€’ 2 comments

I was trying Gauge on https://github.com/posthog/posthog, and ran gauge show --web, but the page it leads to is empty. https://show.gauge.sh/?uid=6eb4ed80-76cc-43fc-941e-f0238848a221

timgl avatar Jul 27 '24 15:07 timgl

Hi @timgl ! Thanks for raising the issue, and trying out Tach.

This usually means that there are no dependencies listed in your tach.yml, which could mean the source root isn't where Tach expects, or you just need to run tach sync.

I pulled down the Posthog repo, left the source root as-is, and marked ./posthog and all its children as modules: image then ran tach sync, and tach show --web to generate this: https://show.gauge.sh/?uid=b908bdbb-0cea-453d-b414-191c823dbc64

Unfortunately it's pretty tough to read the resulting graph, we'll have to improve that for larger repos! In the meantime, tach show (without --web) will give you the underlying graphviz DOT files if you have another viewer you can use.

The tach.yml content itself might be more legible, and can give you a feel for your dependencies. Also check out tach report!

emdoyle avatar Jul 27 '24 17:07 emdoyle

This is a good call out as well - if all of your modules are isolated right now we don't show anything, whereas we should show those modules that are fully isolated. Just updated show --web to do this! Example below - image

In general there's definitely a lot we can do to make tach more ergonomic on larger repos - @timgl would love to pick your brain if you're open to it! Was awesome to hear from you at the YC OSS meetup on Friday πŸ˜„ If you're still in SF, β˜•/🍺 on us!

caelean avatar Jul 28 '24 17:07 caelean

Closing this due to inactivity. Taking it as feedback that show could use some love.

emdoyle avatar Aug 26 '24 03:08 emdoyle