nvim-telescope / telescope-symbols.nvim

MIT License
193 stars 11 forks source link

`:Telescope symbols` throws `attempt to call field 'create' (a nil value)` #5

Closed joshfrench closed 3 years ago

joshfrench commented 3 years ago

Expected behavior: A telescope picker

Actual behavior: E5108: Error executing lua .../nvim/plugged/telescope.nvim/lua/telescope/pickers.lua:302: attempt to call field 'create' (a nil value)

To reproduce:

Environment:

fdschmidt93 commented 3 years ago

If you get this error, this should not be specific to telescope-symbols but apply to any picker.

See https://github.com/nvim-telescope/telescope.nvim/issues/1105

In brief, please check that telescope.nvim and plenary.nvim are both up to date and that no stale version, in particular of plenary, are in your runtimepath.

lua print(vim.inspect(require"plenary.popup")) should look like this. If not, it's one of the aforementioned issues.

{                                                                                                                                                                                      
  _callbacks = {},
  _hidden = {},
  _pos_map = {
    botleft = "SW",
    botright = "SE",
    topleft = "NW",
    topright = "NE"
  },
  create = <function 1>,
  execute_callback = <function 2>
}
joshfrench commented 3 years ago

@fdschmidt93 Thanks, that did the trick!