Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

CFML: misleading "parse produced no symbols" warning when only an embedded <cfquery> block fails to parse

Cerrado
#2,654 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Ya se ha fusionado un pull request relacionado.

  • #2843 de @colbymchenry — fusionado

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c, sql

Línea de trabajo

The issue identifies files.errors and a CFML example, but names no source files, parser entry points, or tests in codegraph. Start by tracing where the “parse produced no symbols” warning is generated and how embedded <cfquery> parse errors are reported. Done means the warning identifies the failing embedded block without claiming the file contributes nothing; check whether #…# expressions can still be extracted and add coverage for the example.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary

Files whose <cfquery> contains SQL split across <cfif> get this warning in files.errors:

parse produced no symbols (tree has errors) — the file is indexed but contributes nothing to the graph

But these files do contribute symbols. Only the sub-parse of the query block fails.

Example

<cfquery name="q" datasource="#dsn#">
	SELECT <cfif arguments.fields IS "count">COUNT(*)<cfelse>p.*</cfif>
	FROM pages p
</cfquery>

contens/model/appsettings/appsettingsdao.cfc has 1 class and 16 methods in the graph, yet it carries the warning above. Our project has 66 DAO/gateway files like this.

Expected

  • The warning names the failing embedded block (<cfquery> at line N) instead of saying that the file contributes nothing.
  • If possible, #…# expressions inside a <cfquery> that fails to parse are still extracted.

(The SQL-fragment parsing itself belongs to tree-sitter-cfml.)

Lenguaje dominante
C
Estrellas
73.2k
Forks
4.7k
Merge medio
7 h 49 min
PR fusionados (30 d)
629

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de colbymchenry/codegraph

Todos los issues de colbymchenry/codegraph

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.