Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CFML: tag `<cfinclude template="…">` creates no edge; included functions are not attached to the component (mixins)

Aperta
#2,651 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.cfm is indexed, and its functions (checkRightsPartPrepare, checkRightsPartRecords, …) appear as top-level function nodes.
  • There is no edge from baseform.cfc to formlistshared.cfm.
  • The functions are not members of baseform or 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

  1. An imports (or includes) edge for <cfinclude template="…">, the same as for the script form.
  2. When the include sits at component level (outside <cffunction>), the included file's functions count as members of the component. Calls such as this.checkRightsPartPrepare() or unqualified calls in subclasses then resolve.
Lingua principale
C
Stelle
73.2k
Fork
4.7k
Merge medio
12h 30m
PR unite (30g)
558

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di colbymchenry/codegraph

Tutte le issue di colbymchenry/codegraph

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.