Failed to run diagnostics lintr

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
gowerccommented, May 28, 2020

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 :

"r.lsp.diagnostics": false
1reaction
renkun-kencommented, May 28, 2020

@nathaneastwood The object_usage_linter seems problematic, see https://github.com/jimhester/lintr/issues/482.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found