Failed to run diagnostics lintr
See original GitHub issueDescribe the bug
I couldn’t decide if this was a languageserver issue or not, sorry. Every time I open a new file, the top line shows the error Failed to run diagnostics: lintr.
Expected behavior I expect the files lints to be correctly checked and any issues display in the problems tab.
Environment (please complete the following information):
- OS: macOS
- Version: 1.45.1 Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a Date: 2020-05-14T08:33:47.663Z Electron: 7.2.4 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Darwin x64 19.4.0
- R Version: 3.6.3
- vscode-R version: 1.3.0
- languageserver version: 0.3.5
- lintr version: 2.0.1
Additional context I see the following in the diagnostics but I am not sure if it is related.
diagnostics_task: <callr_status_error: callr subprocess failed: attempt to apply non-function>
in process
-->
<callr_remote_error in linters[[linter]](expr):
attempt to apply non-function>
in process 78394
I know this is all very vague, please let me know if you need any additional information.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Failed to run diagnostics lintr · Issue #343 - GitHub
Every time I open a new file, the top line shows the error Failed to run diagnostics: lintr . Expected behavior. I expect...
Read more >anyone know why lintr is marking the first string of my jupyter r ...
i just set up R to work with Jupyter notebooks in vscode but it is marking the first string of my kernels in...
Read more >README - lintr
Create configuration file for lintr # Source this file in package root directory # List here files to exclude from lint checking, as...
Read more >Tutorial · Scalafix - Scala Center
Use Diagnostic to report linter errors. Let's say we want to report an error message when an argument is a literal instead of...
Read more >Editor setup
In that window: click “Code” on the left; click “Diagnostics” tab; check “Show diagnostics for R”. To lint a source file test.R type...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Not sure what a solution is but you can disable lintr to suppress the error message I think by setting this setting in your json settings file :
@nathaneastwood The
object_usage_linterseems problematic, see https://github.com/jimhester/lintr/issues/482.