Repository navigation
Commit b79f397
committed
fix(fqn): keep the extension in __file__ QNs so sibling files stay distinct
cbm_pipeline_fqn_compute() stripped the extension unconditionally. For sibling component files that is the only distinguishing part, so badge.component.ts/.html/.scss all produced the same __file__ QN and cbm_gbuf_upsert_node() merged them into one File node. cbm_store_list_files() then returned 8 paths for 12 files, and write_scoped_filelist() handed that short list to grep, so search_code never opened the merged-away siblings and silently returned incomplete results.
Not Angular-specific: it is stem equality after one strip. spec.ts/stories.ts survive because their stems differ. Same class as DeusData#495.
Skip the strip for the __file__ sentinel. Symbol and module QNs are unchanged, and the 27 __file__ construction sites all recompute through this same function.
Verified against the repro repo @ 5e39bf9 (mode=full): File nodes 8/12 -> 12/12, every extension matches its file_path, search_code reaches all markers (grep -rln parity). Also fixes the extension-corruption follow-up, which came from pass_githistory upserts landing on the merged node.
Refs DeusData#769
Signed-off-by: LA-10 <[email protected]>1 parent 20b1153 commit b79f397
2 files changed
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
60 | 90 | | |
61 | 91 | | |
62 | 92 | | |
| |||
560 | 590 | | |
561 | 591 | | |
562 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
563 | 596 | | |
564 | 597 | | |
565 | 598 | | |
| |||
0 commit comments