Describe the bug
Missing terminal newline lint is not reported in VSCode Problem Pane
To Reproduce
- Create a new file (
Ctrl+N)
- Select the R language (
Ctrl+K M and select R)
- Write
x <- 1 in the editor
- Do not insert a terminal newline
- Save the file as
test.R (Ctrl+S)
- The Problems Pane (
Ctrl+Shift+M) reports that No problems have been detected in the workspace
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
Describe the bug
Missing terminal newline lint is not reported in VSCode Problem Pane
To Reproduce
Ctrl+N)Ctrl+K Mand selectR)x <- 1in the editortest.R(Ctrl+S)Ctrl+Shift+M) reports thatNo problems have been detected in the workspacelintr::lint()reports the lint as expected: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):