Skip to content

nvim-web-devicons.lua:202: attempt to index upvalue 'user_icons' (a nil v alue) #575

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

Closed
benner opened this issue Apr 6, 2025 · 4 comments · Fixed by #576
Closed

nvim-web-devicons.lua:202: attempt to index upvalue 'user_icons' (a nil v alue) #575

benner opened this issue Apr 6, 2025 · 4 comments · Fixed by #576

Comments

@benner
Copy link

benner commented Apr 6, 2025

Description

Newest commit gives error during nvim start

Neovim version

% nvim --version
NVIM v0.11.0
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

nvim-web-devicons version

09d9caa

Operating system and version

Pop!_OS 22.04 LTS

Windows variant

No response

Expected behavior

Empty :messages :-)

Actual behavior

:messages:

Error detected while processing TermResponse Autocommands for "*"..OptionSet Autocommands for "background":                                  
Error executing lua callback: ...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:202: attempt to index upvalue 'user_icons' (a nil v
alue)                                                                                                                                        
stack traceback:                                                                                                                             
        ...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:202: in function 'apply_user_icons'                                      
        ...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons.lua:455: in function <...re/nvim/lazy/nvim-web-devicons/lua/nvim-web-devicons
.lua:453>                                                                                                                                    
        [C]: in function '__newindex'                                                                                                        
        vim/_defaults.lua: in function ''                                                                                                    
        vim/_defaults.lua: in function <vim/_defaults.lua:0>   
@alex-courtis
Copy link
Member

Thanks for raising @benner

Reverted the change.

@dsaenztagarro I'd be grateful if you looked at this one.

@dsaenztagarro
Copy link
Contributor

@alex-courtis didn't see your comment here! sure, I will review and, if you agree, open a new PR like the previous one, but being sure that the error reported is reproduced and fixed accordingly!!!

@dsaenztagarro
Copy link
Contributor

@alex-courtis this is ready for you to review! All details in the PR!

alex-courtis added a commit that referenced this issue Apr 7, 2025
* fix: ensure icon overrides apply after refresh

* Don't apply icons without setup

* org filetype newly added to nvim

---------

Co-authored-by: Alexander Courtis <[email protected]>
@alex-courtis
Copy link
Member

Many thanks for reporting the issue so quickly @benner

Fix is merged, please advise if the issue persists.

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.

3 participants