You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lintr errors whilst trying to lint staged / indexed files in git #1436
It looks like the lintr is trying to execute on staged/indexed files in git but just errors when trying to do so. Worse still is that these errors end up littering the Problems pane and are never cleared up. Only solution seems to be to restart vscode
Gif of issue
Versions
MacOS - 13.3.1 (22E261)
REditorSupport.r - 2.8.2
R - 4.3.1
lintr - 3.1.0
language server - 0.3.16
My understanding is that this refers to a problem where false positives occur because things that aren't actual complete R files are being targeted by linting. It doesn't seem to be related to the fix for the languageserver.
This was addressed in #1697, which is merged into main and included in 3.0.0. The language client excludes Git-indexed documents from its document selectors and clears diagnostics for unsupported schemes such as git://, as well as files that no longer exist. See the current diagnostic middleware.
The suggested languageserver #706 concerns reading .lintr settings and addresses a different problem.
Closing as completed. If Git-indexed diagnostics still appear with 3.0.1 or a current development build, please provide a minimal reproduction and the installed languageserver / lintr versions so we can investigate the remaining case.
Activity
dshemetov commentedon Jun 29, 2024
Having the same issue.
DarianGill commentedon Apr 5, 2025
Same here
ThomasSoeiro commentedon Sep 27, 2026
@Fred-Wu @eitsupi @grantmcdermott Is it fixed by REditorSupport/languageserver#706?
eitsupi commentedon Sep 27, 2026
My understanding is that this refers to a problem where false positives occur because things that aren't actual complete R files are being targeted by linting. It doesn't seem to be related to the fix for the languageserver.
renkun-ken commentedon Oct 6, 2026
This was addressed in #1697, which is merged into
mainand included in 3.0.0. The language client excludes Git-indexed documents from its document selectors and clears diagnostics for unsupported schemes such asgit://, as well as files that no longer exist. See the current diagnostic middleware.The suggested languageserver #706 concerns reading
.lintrsettings and addresses a different problem.Closing as completed. If Git-indexed diagnostics still appear with 3.0.1 or a current development build, please provide a minimal reproduction and the installed
languageserver/lintrversions so we can investigate the remaining case.