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

[K-Bug] Two configuration declarations in a single module produces an unhelpful error message

Abierto
#4,705 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Área
compilers

Línea de trabajo

Start by saving the provided definition as tmp.k and running kompile tmp.k to reproduce the malformed external cell error. Trace the configuration-declaration validation in the kompile front end; done means two declarations in one module produce a clear diagnostic explaining the one-declaration limit and how to resolve it.

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

Descripción

What component is the issue in?

Front-End

Which command
  • kompile
  • kast
  • krun
  • kprove
  • kprovex
  • ksearch
What K Version?

v7.1.170-0-g5c84d48f69

Operating System

Linux

K Definitions (If Possible)
module TMP
  imports INT
  configuration <extraLocalConfig> 1 </extraLocalConfig>
  configuration <mainConfig> <extraLocalConfig/> </mainConfig>
endmodule
Steps to Reproduce

Save above definition to tmp.k and run kompile tmp.k.

An error message of the form below will be emitted:

[Error] Compiler: Malformed external cell in configuration declaration.
        Source(/home/stephen/rv/tmp.k)
        Location(4,30,4,49)
        4 |       configuration <mainConfig> <extraLocalConfig/> </mainConfig>
          .                                  ^~~~~~~~~~~~~~~~~~~
[Error] Compiler: Had 1 parsing errors.
Expected Results

I expect to get an error that says something like:

A module may only have up to one configuration declaration; please merge the two configuration declarations into one (or) put the two configuration declarations into separate modules.

I just made this on the fly --- there is definitely a better way to word it, but this is just for a start.

Lenguaje dominante
Python
Estrellas
591
Forks
163
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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 runtimeverification/k

Todos los issues de runtimeverification/k

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.