You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_rebuild_code() KeyError: detect() returns dict not FileType-keyed #148
Found this while wiring graphify into post-commit git hooks. The hook calls _rebuild_code() on every commit and it silently fails. Built a workaround that calls the pipeline directly via detect() → extract() → build_from_json() → etc.
Fixed in v0.3.22. The fix is exactly what you suggested — detected['files']['code'] instead of detected[FileType.CODE]. Also removed the now-unused FileType import from watch.py. Upgrade with pip install --upgrade graphifyy then re-run graphify hook install.
Activity
Add Cursor support, fix _rebuild_code KeyError and node_link_data cra…
safishamsi commentedon Apr 9, 2026
Fixed in v0.3.22. The fix is exactly what you suggested —
detected['files']['code']instead ofdetected[FileType.CODE]. Also removed the now-unusedFileTypeimport from watch.py. Upgrade withpip install --upgrade graphifyythen re-rungraphify hook install.harreh3iesh commentedon Apr 9, 2026
This made my day thank you. 🥹
Add Cursor support, fix _rebuild_code KeyError and node_link_data cra…
Add Cursor support, fix _rebuild_code KeyError and node_link_data cra…