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

Missing terminal newline lint is not reported in VSCode Problem Pane

Aperta
#772 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
r, vscode
Ambito
cli, devtools

Direzione di ricerca

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.

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

Descrizione

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
Lingua principale
R
Stelle
675
Fork
118
Merge medio
1g 11h
PR unite (30g)
11

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. 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 REditorSupport/languageserver

Tutte le issue di REditorSupport/languageserver

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.