andweeb / presence.nvim

Discord Rich Presence for Neovim
818 stars 65 forks source link

[Gentoo] im getting a lot of errors and i dont know why #58

Open Cryo1l opened 2 years ago

Cryo1l commented 2 years ago
Error executing vim.schedule lua callback: ...are/nvim/plugged/presence.nvim/lua/presence/init.lua:768: bad argument #2 to 'format' (strin
g expected, got nil)                                                                                                                      
stack traceback:                                                                                                                          
        [C]: in function 'format'                                                                                                         
        ...are/nvim/plugged/presence.nvim/lua/presence/init.lua:768: in function 'update_for_buffer'                                      
        ...are/nvim/plugged/presence.nvim/lua/presence/init.lua:946: in function <...are/nvim/plugged/presence.nvim/lua/presence/init.lua:
945>                                                                                                                                      
Press ENTER or type command to continue

how would i fix this?

andweeb commented 2 years ago

Hi @Cryo1l! Yikes, I haven't seen these errors before. Looks like the plugin is having an issue with parsing the filename and extension of the the file you've loaded into your buffer, though I'm not sure why.

I've just recently added an issue template for bugs and errors, would you mind providing the details outlined here, or close this issue and re-open with that new issue template?

notseanray commented 2 years ago

I believe I've resolved this issue in https://github.com/andweeb/presence.nvim/pull/65, please correct me if I am wrong. I'm also a Gentoo user and I love this plugin, it's insanely fast compared to other rich presence solutions.

andweeb commented 2 years ago

Hi @notseanray sorry for the late response, and thanks for the PR!

I've just started reviewing the PR and though you're correct in that it may resolve this issue, I think I'd like some more information to have a better idea on how to best resolve this bug. Would you mind sending the list of logs with this error on Gentoo? I'm curious why and how in Gentoo the filename ends up being nil here.