Missing terminal newline lint is not reported in VSCode Problem Pane
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- r, typescript, vscode
研究方向
首先使用 lintr::lint() 和 trailing_blank_lines_linter() 重現缺少結尾換行符的情況,然後將其結果與 VSCode Problems Pane 的輸出進行比較。追蹤 VSCode 擴充功能的 lint 整合,以確定為什麼會省略此診斷;對於所提供的 test.R 情境,當 lint 在 Problems Pane 中獲得回報時即表示完成。
由索引模型根據 Issue 內容生成。
描述
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 Mand selectR) - Write
x <- 1in the editor - Do not insert a terminal newline
- Save the file as
test.R(Ctrl+S) - The Problems Pane (
Ctrl+Shift+M) reports thatNo 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
- 主要語言
- TypeScript
- 星號
- 1.2k
- 分支
- 139
- 平均合併
- 19 小時 50 分鐘
- 30 天內合併 PR
- 27
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
REditorSupport/vscode-R 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 72/100
REditorSupport/vscode-R#1785 · 2 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
REditorSupport/vscode-R#1687 · 4 則留言 · 3 個 reaction ·
維護者通常 1 天內回覆
-
bug confirmed
難度 4/5 3-5 天 新手友好度 55/100
REditorSupport/vscode-R#1802 · 3 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 48/100
REditorSupport/vscode-R#1799 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 48/100
REditorSupport/vscode-R#1791 · 2 則留言 ·
維護者通常 1 天內回覆
查看 REditorSupport/vscode-R 的全部 Issue
相似的 Issue
-
bug via-triage
難度 2/5 1-3 小時 新手友好度 78/100
pingdotgg/t3code#14452 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
solana-foundation/program-examples#747 · 1 則留言 ·
維護者通常 9 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
remotion-dev/remotion#11847 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
openwatersio/slackwater#355 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 74/100
melgarafael/DeskcommCRM#1998 · 3 則留言 ·
維護者通常 1 天內回覆