jmbuhr / quarto-nvim-kickstarter

Neovim configuration to show my plugins in action.
MIT License
221 stars 52 forks source link

Perpetual Error Pop-up when Editing *.qmd Files #111

Closed murek-m closed 5 months ago

murek-m commented 5 months ago

When editing *.qmd files a persistent error message keeps popping up. The error message indicates a failure in running diagnostics with the following details:

Failed to run diagnostics: ! in callr subprocess.
Caused by error: 
! Linter 'object_length_linter' failed in test.qmd.otter.R: path[1]="test.qmd.otter.R": No such file or directory
Screenshot 2024-05-03 at 23 02 01

Environment: macOS Sonoma 14.4.1 (23E224) iTerm: v3.4.23 NVim: v0.9.5 Quarto NVim Kickstarter: v3.8.0

jmbuhr commented 5 months ago

See https://github.com/jmbuhr/otter.nvim/issues/116 for two solutions.

murek-m commented 5 months ago

Creating a ~/.lintr worked. Thanks!

LJFRIESE commented 2 months ago

Hey, I'm experience a similar, but possibly distinct error.

All .qmd files are receiving the following error:

{path}{file}.qmd|1 col 1 error| Failed to run diagnostics: ! in callr subprocess. Caused by error in loadNamespace(x): ! there is no package called 'lintr'

Everything else about setting up quarto seems to be working, but this is sticking. I have tried adding the .lintr file in a variety of places, from the nvim config home to the .rproj directory. I'm on Windows 10.

edit

My r-languageserver installation from mason was corrupted in a variety of ways without giving any indication of it except this error. The install process failed in some way and so there were several packages missing required by the r-languageserver. I resolved this by manually deleting the mason/packages/r-languageserver folder because mason couldn't even uninstall it.