Repository navigation
Commit 377dc7f
fix(extract): warn when code files have no AST extractor instead of silently dropping them (#1689)
Extensions like .r/.R (also .ejs, .ets) are in CODE_EXTENSIONS, so those files
are classified as code and counted in the scan, but there is no entry for them
in the extractor dispatch — so they produce zero nodes and are silently absent
from the graph while the CLI still reports success. The #1666 zero-node warning
deliberately skips them (it only fires when an extractor exists), so nothing
surfaced the gap.
extract() now emits a warning listing the offending extensions and counts
("N file(s) are classified as code but graphify has no AST extractor ...: .r (2)")
so a primarily-R (or .ejs/.ets) corpus no longer looks fully mapped when it is
not. Grouped by extension, fires only for files actually present with no
extractor (today: .ejs, .ets, .r). Adding real grammars for these remains the
follow-up; this removes the silent-data-loss now.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent d1d1f41 commit 377dc7f
2 files changed
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16403 | 16403 | | |
16404 | 16404 | | |
16405 | 16405 | | |
| 16406 | + | |
| 16407 | + | |
| 16408 | + | |
| 16409 | + | |
| 16410 | + | |
| 16411 | + | |
| 16412 | + | |
| 16413 | + | |
| 16414 | + | |
| 16415 | + | |
| 16416 | + | |
| 16417 | + | |
| 16418 | + | |
| 16419 | + | |
| 16420 | + | |
| 16421 | + | |
| 16422 | + | |
| 16423 | + | |
| 16424 | + | |
| 16425 | + | |
| 16426 | + | |
| 16427 | + | |
| 16428 | + | |
16406 | 16429 | | |
16407 | 16430 | | |
16408 | 16431 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1769 | 1769 | | |
1770 | 1770 | | |
1771 | 1771 | | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
0 commit comments