jalvesaq / zotcite

Neovim plugin for integration with Zotero
GNU General Public License v3.0
177 stars 15 forks source link

Error in Quarto #101

Closed 10b14224cc closed 2 weeks ago

10b14224cc commented 2 weeks ago

I get the following error when opening a Quarto document:


BufReadPost Autocommands for "*"..script nvim_exec2() called at BufReadPost Autocommands for "*":0..function provider#python3#Call[1]..re
mote#host#Require[10]..provider#python3#Require[1]..provider#Poll, line 7                                                                
Vim(if):Error invoking 'poll' on channel 6:^@Invalid channel: 6                                                                          
BufReadPost Autocommands for "*"..script nvim_exec2() called at BufReadPost Autocommands for "*":0..function provider#python3#Call[1]..re
mote#host#Require[10]..provider#python3#Require, line 1: Vim(return):E5108: Error executing lua BufReadPost Autocommands for "*"..script 
nvim_exec2() called at BufReadPost Autocommands for "*":0..function provider#python3#Call[1]..remote#host#Require[10]..provider#python3#R
equire[1]..provider#Poll, line 17: Failed to load python3 host. You can try to see what happened by starting nvim with $NVIM_PYTHON_LOG_F
ILE set and opening the generated log file. Also, the host stderr is available in messages.                                              
stack traceback:                                                                                                                         
        [C]: at 0x6293986ff33c                                                                                                           
        [C]: at 0x6293986ff33c                                                                                                           
        [C]: in function 'pcall'                                                                                                         
        /usr/share/nvim/runtime/lua/vim/provider/python.lua:132: in function </usr/share/nvim/runtime/lua/vim/provider/python.lua:125>   
        [C]: in function 'nvim_exec2'                                                                                                    
        vim/_editor.lua: in function 'cmd'                                                                                               
        ...le/.local/share/nvim/lazy/zotcite/lua/zotcite/config.lua:95: in function 'global_init'                                        
        ...le/.local/share/nvim/lazy/zotcite/lua/zotcite/config.lua:176: in function 'init'                                              
        [string ":lua"]:1: in main chunk                                                                                                 
Error detected while processing BufReadPost Autocommands for "*":                                                                        
E5108: Error executing lua ...le/.local/share/nvim/lazy/zotcite/lua/zotcite/config.lua:104: attempt to index local 'info' (a userdata val
ue)                                                                                                                                      
stack traceback:                                                                                                                         
        ...le/.local/share/nvim/lazy/zotcite/lua/zotcite/config.lua:104: in function 'global_init'                                       
        ...le/.local/share/nvim/lazy/zotcite/lua/zotcite/config.lua:176: in function 'init'                                              
        [string ":lua"]:1: in main chunk                                                                                                 
Press ENTER or type command to continue   
jalvesaq commented 2 weeks ago

Is everything OK with Neovim's Python provider, according to :checkhealth?

10b14224cc commented 2 weeks ago

I had to update pynvim

jalvesaq commented 2 weeks ago

Thanks for the feedback!