Skip to content

Missing terminal newline lint is not reported in VSCode Problem Pane #1670

@ThomasSoeiro

Description

@ThomasSoeiro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions