8000 bug: No errors shown if loading from dir= fails · Issue #1773 · folke/lazy.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bug: No errors shown if loading from dir= fails #1773
Closed
NixOS/nixpkgs
#362369
@pinpox

Description

@pinpox

Did you check docs and existing issues?

  • I have read all the lazy.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of lazy.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.10.1

Operating system/version

Nixos unstable

Describe the bug

When loading a plugin via the dir= directive, there is no error shown if this fails. The plugin will just silently not be there, instead of showing an error message.

Example plugin definition:

	{
		dir = pluginpaths .. "/outline.nvim",
		config = function()
			-- Example mapping to toggle outline
			vim.keymap.set("n", "<leader>o", "<cmd>Outline<CR>", { desc = "Toggle Outline" })

			require("outline").setup({
				-- Your setup opts here (leave empty to use defaults)
			})
		end,
	},

If for some reason (e.g. a typo) the path in dir= is missing outline.nvim it will just not load the plugin, without showing any errors.

Steps To Reproduce

Try to load non-existent plugin from dir=

Expected Behavior

A error is shown

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
	 { dir = "/does/not/exist" }
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0