Skip to content

bug: attempt to call field (a nil value) #403

@ghost

Description

Neovim version (nvim -v)

NVIM v0.11.0

Neovim distribution

N/A

Operating system

Fedora 42 Workstation

Terminal emulator / GUI

Gnome Terminal

Describe the bug

I think it would be better to show you the errors I'm getting.

Image

Screencast.From.2025-04-20.13-42-59.mp4

Expected behavior

I don't know, maybe render .md files without errors.

Healthcheck output

==============================================================================
render-markdown:                     require("render-markdown.health").check()

render-markdown.nvim [version] ~
- OK plugin 8.3.1
- OK neovim >= 0.11

render-markdown.nvim [configuration] ~
- OK valid

render-markdown.nvim [treesitter] ~
- OK markdown: parser installed
- OK markdown_inline: parser installed
- WARNING latex: parser not installed
  - ADVICE:
    - Disable latex support to avoid this warning
    - require('render-markdown').setup({ latex = { enabled = false } })
- OK html: parser installed
- OK markdown: highlight enabled

render-markdown.nvim [icons] ~
- OK using: mini.icons

render-markdown.nvim [executables] ~
- WARNING latex2text: not installed
  - ADVICE:
    - Disable latex support to avoid this warning
    - require('render-markdown').setup({ latex = { enabled = false } })

render-markdown.nvim [conflicts] ~
- ERROR headlines: installed
- ERROR markview: installed
- ERROR Failed to run healthcheck for "render-markdown" plugin. Exception:
  ...lazy/render-markdown.nvim/lua/render-markdown/health.lua:50: attempt to call field 'get_client' (a nil value)

Plugin configuration

local render_markdown = {
	"https://github.com/MeanderingProgrammer/render-markdown.nvim",
	enabled = true, ---@type boolean
	dependencies = {
		"https://github.com/nvim-tree/nvim-web-devicons",
		"https://github.com/nvim-treesitter/nvim-treesitter",
	},
	opts = {
		completions = {
			lsp = { enabled = true },
			blink = { enabled = true },
		},
	},
	config = function(_, opts)
		require("render-markdown").setup(opts)
	end,
}

return render_markdown

Plugin error log

N/A

Confirmations

  • I have updated this plugin to the latest version using my plugin manager
  • I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.

Additional information

The weird part is that, this bug doesn't happen all the time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions