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

Missing terminal newline lint is not reported in VSCode Problem Pane

Abierto
#772 6 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
r, vscode
Área
cli, devtools

Línea de trabajo

The issue is about the trailing_blank_lines_linter not appearing in the VSCode Problems Pane. Start by examining how lints are reported from the language server to the editor, likely in the server's diagnostic handling. Look for the code that formats or filters lints before sending them to VSCode. Check if this specific linter is being omitted or if its severity is misconfigured. Run the linter on a test file without a terminal newline and trace the diagnostic output. Verify the fix by testing in VSCode with the modified language server.

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

Descripción

bug

Describe the bug

Missing terminal newline lint is not reported in VSCode Problem Pane

To Reproduce

  1. Create a new file (Ctrl+N)
  2. Select the R language (Ctrl+K M and select R)
  3. Write x <- 1 in the editor
  4. Do not insert a terminal newline
  5. Save the file as test.R (Ctrl+S)
  6. The Problems Pane (Ctrl+Shift+M) reports that No problems have been detected in the workspace
  7. lintr::lint() reports the lint as expected:
lintr::lint(
  filename = "test.R",
  linters = lintr::trailing_blank_lines_linter(),
  parse_settings = FALSE
)
# xxx/test.R:1:7: style: [trailing_blank_lines_linter] Add a terminal newline.
# x <- 1
#       ^

Can you fix this issue by yourself? (We appreciate the help)

No

Expected behavior

The lint should be reported in VSCode Problem Pane.

Environment (please complete the following information):

  • OS: Windows 11
  • VSCode Version: VSCodium 1.107.18627
  • R Version: 4.4.0
  • vscode-R version: 2.86
Lenguaje dominante
R
Estrellas
675
Forks
118
Merge medio
1 d 11 h
PR fusionados (30 d)
11

Preparar el entorno

Aún no hemos revisado los archivos de configuración de este proyecto. 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 REditorSupport/languageserver

Todos los issues de REditorSupport/languageserver

Issues similares

Más issues de R

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.