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

Invalid highlight name #440

Closed
hyde-stevenson opened this issue Apr 9, 2024 · 15 comments · Fixed by #441
Closed

Invalid highlight name #440

hyde-stevenson opened this issue Apr 9, 2024 · 15 comments · Fixed by #441

Comments

@hyde-stevenson
Copy link

Hello,

I updated this morning my plugins, and now I get :


Failed to run `config` for nvim-tree.lua

...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:286: Invalid highlight name: 'DevIconTrisquel_GNU-Linux

And sometimes I got the same message with : Invalid highlight name: 'DevIconParabola_GNU-Linux_libre'

Any idea ?

@dannyk3941
Copy link

I'm also getting similar error aftering updating plugins with lazy.vim

Screenshot 2024-04-09 at 5 33 01 PM

Not sure where to go from here

@adjioev
Copy link

adjioev commented Apr 9, 2024

Same issue, below is the full message:

E5248: Invalid character in group name
E5108: Error executing lua ...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:286: Invalid highlight name: 'DevIconParabola_GNU-Linux_libre'
stack traceback:
	[C]: in function 'nvim_set_hl'
	...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:286: in function 'set_up_highlight'
	...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:314: in function 'set_up_highlights'
	...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:410: in function 'setup'
	...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:470: in function 'get_icon'
	.../nvim/lazy/bufferline.nvim/lua/bufferline/utils/init.lua:205: in function 'get_icon'
	...hare/nvim/lazy/bufferline.nvim/lua/bufferline/models.lua:168: in function 'new'
	...are/nvim/lazy/bufferline.nvim/lua/bufferline/buffers.lua:66: in function 'get_components'
	...local/share/nvim/lazy/bufferline.nvim/lua/bufferline.lua:56: in function <...local/share/nvim/lazy/bufferline.nvim/lua/bufferline.lua:54>
	[C]: in function 'ui_attach'
	.../.local/share/nvim/lazy/noice.nvim/lua/noice/ui/init.lua:74: in function 'enable'
	...oev/.local/share/nvim/lazy/noice.nvim/lua/noice/init.lua:61: in function 'enable'
	...oev/.local/share/nvim/lazy/noice.nvim/lua/noice/init.lua:23: in function <...oev/.local/share/nvim/lazy/noice.nvim/lua/noice/init.lua:19>
	[C]: in function 'xpcall'
	...local/share/nvim/lazy/noice.nvim/lua/noice/util/call.lua:149: in function 'try'
	...oev/.local/share/nvim/lazy/noice.nvim/lua/noice/init.lua:19: in function <...oev/.local/share/nvim/lazy/noice.nvim/lua/noice/init.lua:18>

@tp86
Copy link

tp86 commented Apr 9, 2024

Same here, I believe it's because of dashes in icon names introduced in #433

@hasecilu
Copy link
Collaborator

hasecilu commented Apr 9, 2024

Hi, when I made that change originally I used / in the names and and received that same error so I changed the / for the - and didn't get error, just tested maaster again and don't have problem, I'm using Alacritty.

@parkerkain-8451
Copy link

I'm seeing the same issue using kitty as of this morning. Do you think this is terminal specific @hasecilu ?

@hasecilu
Copy link
Collaborator

hasecilu commented Apr 9, 2024

That would be strange, or could be also the _? I'm looking at the code and seems no other names are using _ or -.
I use LazyVim that uses Neotree that uses nvim-web-devicons, not sure if that's relevant.

@meatballs
Copy link

meatballs commented Apr 9, 2024

I'm seeing this on both kitty and gnome terminal on Ubuntu

(Edit - I'm using nvim-tree in case that's relevant)

@hasecilu
Copy link
Collaborator

hasecilu commented Apr 9, 2024

I'll remove both - and _ , could someone test removing -, probable location ~/.local/share/nvim/lazy/nvim-web-devicons/

@GianlucaP106

This comment was marked as duplicate.

@wyankx

This comment was marked as duplicate.

hasecilu added a commit to hasecilu/nvim-web-devicons that referenced this issue Apr 9, 2024
hasecilu added a commit to hasecilu/nvim-web-devicons that referenced this issue Apr 9, 2024
@oldtune

This comment was marked as duplicate.

@hasecilu
Copy link
Collaborator

hasecilu commented Apr 9, 2024

Could you try to update to Neovim 0.9.5 and see if the problem remains? #441 (comment)

@henry-hsieh
Copy link

I have tested on Neovim v0.9.4 and v0.9.5. The v0.9.4 has these errors, but v0.9.5 not.

@GianlucaP106
Copy link

I have also updated to nvim v0.9.5 and this solved the problem. Same conclusion as @henry-hsieh

@hyde-stevenson
Copy link
Author

Yeah the upgrade fixed it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.