Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): validate non-string plugin #1797

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix(core): validate non-string plugin #1797

wants to merge 1 commit into from

Conversation

Lilja
Copy link

@Lilja Lilja commented Nov 1, 2024

Description

plugin[1] is assumed to be a string in this case. I did not add a proper plugin:

return {
  { 
    dev = {
      path = "/Users/lilja/open-source/telescope.nvim"
    } 
  }
}

Old error:

Error detected while processing /Users/lilja/dotfiles/nvim/init.lua:
Failed to load `plugins.telescope`

...al/share/nvim/lazy/lazy.nvim/lua/lazy/core/fragments.lua:109: attempt to call method 'find' (a nil value)

New error:

Error detected while processing /Users/lilja/dotfiles/nvim/init.lua:
Invalid plugin spec { {
    dev = {
      path = "/Users/lilja/open-source/telescope.nvim"
    }
  },
  config = <function 1>,
  dependencies = { "nvim-lua/plenary.nvim", "smartpde/telescope-recent-files", "camgraff/telescope-tmux.nvim", "KadoBOT/nvim-spotify", "natecraddock/telescope-zf-native.nvim", "nvim-telescope/telescope-file-browse
r.nvim", { "Lilja/telescope-swap-files" } }
}

@Lilja Lilja changed the title fix(core): Validate non-string plugin fix(core): validate non-string plugin Nov 1, 2024
Copy link
Contributor

github-actions bot commented Dec 2, 2024

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added stale and removed stale labels Dec 2, 2024
Copy link
Contributor

github-actions bot commented Jan 3, 2025

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants