CFML: tag `<cfinclude template="…">` creates no edge; included functions are not attached to the component (mixins)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #2886 của @johnhldiver-beep — đã đóng, không merge
Đá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
- 52/100
Hướng nghiên cứu
Start by locating how script-style CFML includes create imports edges, then trace component parsing and member resolution. Compare that path with tag-form cfinclude handling for component-level includes. Done means literal tag includes create an edge and component-level included functions resolve as members of the component and its subclasses.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Script-style include "x.cfm"; produces an imports edge. The tag form does not.
Our project has 246 <cfinclude template="…"> with a literal path, and none of them appears in the graph. All 9 imports edges in the index come from script includes.
Example
<!--- contens/core/baseform.cfc --->
<cfcomponent output="false">
...
<!--- shared parts of forms, lists and exports --->
<cfinclude template="formlistshared.cfm">
</cfcomponent>
formlistshared.cfmis indexed, and its functions (checkRightsPartPrepare,checkRightsPartRecords, …) appear as top-levelfunctionnodes.- There is no edge from
baseform.cfctoformlistshared.cfm. - The functions are not members of
baseformor its subclasses.
A component-level include is the common CFML mixin pattern: the included functions become methods of the including component and of every component that extends it.
Path styles seen (all literal)
| Style | Count |
|---|---|
relative to the current file (../x/y.cfm) |
128 |
same directory (formlistshared.cfm) |
67 |
mapping-rooted (/contenscms/..., depends on mapping support, see the dotted extends issue) |
46 |
Expected
- An
imports(orincludes) edge for<cfinclude template="…">, the same as for the script form. - When the include sits at component level (outside
<cffunction>), the included file's functions count as members of the component. Calls such asthis.checkRightsPartPrepare()or unqualified calls in subclasses then resolve.
- Ngôn ngữ chính
- C
- Star
- 73.2k
- Fork
- 4.7k
- Merge trung bình
- 3 giờ 37 phút
- Pull request đã merge (30 ngày)
- 533
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 colbymchenry/codegraph
-
A `../` entry in package.json `workspaces` makes a folder outside the project count as a workspace package, and a call gets linked to the wrong functionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
colbymchenry/codegraph#3093 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows: npm-shim spawnSync missing windowsHide flashes a console window on every MCP server launchĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
colbymchenry/codegraph#3054 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
colbymchenry/codegraph#2974 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Security Vulnerabiliy] Vulnerable bundled `node.exe` detected (Node2Shell - CVE-2026-111497)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
colbymchenry/codegraph#2959 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
codegraph ui - does not workĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
colbymchenry/codegraph#1900 · 2 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của colbymchenry/codegraph
Issue tương tự
-
documentation severity: low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
luainkernel/lunatik#2231 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Needs-Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
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 64/100
trezor/trezor-firmware#8210 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
area:storage documentation status:parked
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
nextbsd/nextbsd-userland#519 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug system: adam
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
FujiNetWIFI/fujinet-config#358 ·
Maintainer thường phản hồi trong vòng 1 ngày