API JSON: a source range on each element
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- api, backend-api-design
Línea de trabajo
Start in rdf_out.go, where e.offsets records node.Span().Offset and line regions are retained only for elements starting their own line. Trace the api-json encoder's syntax-node handling, including elements sharing a line with their owner. Done means every element, including nested same-line elements, has a sourceRange containing its file and start/end position information.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
On develop (72081f8), the API JSON gives an element its lines as written (sysx:sourceText) but not where they are, and an element sharing a line with its owner gets no text at all. The service's symbols (SymbolInfo) carry no position either; only diagnostics have a Span.
package W {
part a { attribute x; }
part b { attribute x; }
}
sysml -convert api-json gives W::a and W::b a sysx:sourceText each (" part a { attribute x; }\n"), and W::a::x and W::b::x none. Nothing in the output says where either x is declared.
Request: a range per element, for example sysx:sourceRange with file, start and end (line and column, or byte offsets). The encoder already has each element's syntax node, and records its start offset (rdf_out.go, e.offsets[...] = node.Span().Offset); line regions are kept only for elements that start their own line.
A consumer needs this to go from an element to its declaration, or to edit a model in place by position.
- Lenguaje dominante
- Go
- Estrellas
- 39
- Forks
- 12
- Merge medio
- 16 h 37 min
- PR fusionados (30 d)
- 770
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Open-MBEE/OpenSysML
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
Open-MBEE/OpenSysML#1212 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
vscode extension view with expose and filter condition shows nothingPosiblemente ocupada @devin-ai-integration la tomó hoy. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Open-MBEE/OpenSysML#1199 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Renaming of OpenSysMLAbiertohelp wanted question
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Open-MBEE/OpenSysML#987 · 11 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de Open-MBEE/OpenSysML
Issues similares
-
agent-review-finding chore
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
jordansmall/spindrift#5748 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Resource links written as host:port without a scheme are brokenPosiblemente ocupada @RaphaelFakhri la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Proxy ignores l5d-retry-http and l5d-retry-grpc conditions that follow a comma and spacePosiblemente ocupada @RaphaelFakhri la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 3 días
-
receptorctl version: False version mismatch warning when versions differ only by a leading vAbiertoneeds_triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días