Marskey/telescope-sg

Not working with error: attempt to get length of local 'icon' (a nil value)

Closed this issue · 5 comments

I get this error in :messages :

[telescope] [WARN  11:04:31] /Users/.../.local/share/nvim/lazy/telescope.nvim/lua/telescope/pickers.lua:489: Fin
der failed with msg:  ...lazy/telescope-sg/lua/telescope/_extensions/ast_grep.lua:99: attempt to get length of local
'icon' (a nil value)

The Telescope picker window is empty:

Screenshot 2023-10-05 at 11 10 40

did u install nvim-tree/nvim-web-devicons?
and what the version of telescope you installed

did u install nvim-tree/nvim-web-devicons? and what the version of telescope you installed

It was 0.1.1 hardcoded in my config! I updated Telescope to 0.1.3 and now everything is working, thank you!

One more question:
"if" works fine:
Screenshot 2023-10-05 at 18 51 52

"if not" fails to output anything:
Screenshot 2023-10-05 at 18 52 39

It is sg that return nothing, not telescope-sg' issue

CLOSED since there is no other questions