github-notifications.nvim icon indicating copy to clipboard operation
github-notifications.nvim copied to clipboard

E5108: Error executing lua ...ns.nvim/lua/github-notifications/telescope/previewer.lua:23: attempt to concatenate field 'url' (a userdata value)

Open amaanq opened this issue 2 years ago • 1 comments

As per the title, I get this error for some github notifications, not all..no idea why

E5108: Error executing lua ...ns.nvim/lua/github-notifications/telescope/previewer.lua:23: attempt to concatenate field 'url' (a userdata value) stack traceback: ...ns.nvim/lua/github-notifications/telescope/previewer.lua:23: in function 'define_preview' ...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:386: in function 'preview' ...pack/packer/opt/telescope.nvim/lua/telescope/pickers.lua:1075: in function 'refresh_previewer' ...pack/packer/opt/telescope.nvim/lua/telescope/pickers.lua:1028: in function 'set_selection' ...pack/packer/opt/telescope.nvim/lua/telescope/pickers.lua:792: in function 'move_selection' .../packer/opt/telescope.nvim/lua/telescope/actions/set.lua:39: in function 'run_replace_or_original' ...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'shift_selection' ...packer/opt/telescope.nvim/lua/telescope/actions/init.lua:87: in function 'run_replace_or_original' ...k/packer/opt/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func' ...ack/packer/opt/telescope.nvim/lua/telescope/mappings.lua:341: in function 'execute_keymap' [string ":lua"]:1: in main chunk

amaanq avatar Oct 08 '22 15:10 amaanq

Hey @amaanq, pretty sure Github don't expose the URL for certain types of notifications. There's a better way of handling this than my fix in the hooks branch; which is just not to handle them lol - but currently don't have the time to implement a proper solution.

In the mean time, you should be able to use the hooks branch, but feel free to try implement a more rigorous solution to this.

rlch avatar Oct 10 '22 00:10 rlch