CBM Lens renders a .tsx file as its .css sibling (extension-less qn collision) + File-node snippets silently capped at 51 lines
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- css, typescript
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Start at the reader fallback that derives a qualified name from a File node and the snippet retrieval path that returns its source; inspect the corresponding tests for qualified-name lookup and file snippets. Reproduce with same-stem .tsx and .css files and a file longer than 51 lines. Done when each extension returns its own content and long file snippets have complete source or truthful pagination metadata.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Two independent reader bugs on v0.12.1 (latest, macOS arm64), large TS monorepo (26k nodes), healthy index (parse_unusable: 0).
1) A .tsx file renders as its .css sibling
Data layer is fine when the qn keeps its extension (...index.tsx.__file__ vs ...index.css.__file__ return the correct source for each).
The breakage is the reader's fallback path:
- The indexer creates only ONE
Modulenode per same-stem group, assigned to the CSS file, with the extension stripped:MATCH (n:Module) WHERE n.file_path = ".../LogoTitleView/index.css"-> 1 row,qn = P.cake.src.component.LogoTitleView.indexMATCH (n:Module) WHERE n.file_path = ".../LogoTitleView/index.tsx"-> 0 rows
- On a miss, the reader falls back to the
Filenode and derives the qn by stripping.__file__and then the last dotted segment:
...LogoTitleView.index.tsx.__file__->...LogoTitleView.index.tsx->...LogoTitleView.index - That equals the CSS
Moduleqn, so the fetch returns the wrong node:
$ cli get_code_snippet --qualified-name "P.cake.src.component.LogoTitleView.index" --source-mode full
label: Module
file_path: .../LogoTitleView/index.css # requested index.tsx
Result: clicking index.tsx shows CSS; clicking index.css shows CSS; both panes look identical.
Scale here: 1036 .tsx File nodes, only 250 have their own Module node; 783 .tsx files share a stem with a CSS Module node and render the wrong content.
Expected: fallback should keep the extension (strip only .__file__), and/or don't collapse different-language files into one extension-less Module qn.
2) File-node snippets silently cap at 51 lines
...BtnFood/index.css.__file__(215 lines) -> 51 lines returned,end_line: 51,next_start_line: null,source_truncated: null...ratings/src/index.tsx.__file__(466 lines) -> 51 lines, same...LogoTitleView/index.css.__file__(19 lines) -> full content butend_line: 51(wrong metadata)
File nodes store start_line/end_line = 0/0, so 51 looks like a server-side default window. With no continuation marker the reader cannot page and shows no truncation notice.
Expected: return full source, or set next_start_line / source_truncated + truthful original_end_line.
Workaround: use symbol-level nodes (they keep the real qn) and read whole files from disk beyond 51 lines.
- Ngôn ngữ chính
- C
- Star
- 45.8k
- Fork
- 3.8k
- Merge trung bình
- 3 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 208
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DeusData/codebase-memory-mcp
-
bug editor/integration
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DeusData/codebase-memory-mcp#2787 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
editor/integration parsing/quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
DeusData/codebase-memory-mcp#2286 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
install writes an unsupported `args` key into the Claude Code SubagentStart hook, so it never runsĐang mởbug editor/integration priority/high stability/performance ux/behavior
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DeusData/codebase-memory-mcp#2239 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug priority/high ux/behavior
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DeusData/codebase-memory-mcp#2232 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
documentation editor/integration parsing/quality priority/normal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
DeusData/codebase-memory-mcp#2169 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của DeusData/codebase-memory-mcp
Issue tương tự
-
dependency component: oneMKL module: dpclang
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
intel/torch-xpu-ops#5880 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
CVE-2026-111497Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
fink/fink-distributions#1322 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
openvehicles/Open-Vehicle-Monitoring-System-3#1563 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100