ray-x / sad.nvim

Space Age seD in Neovim. A project-wide find and replace plugin for Neovim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

module `go.utils` not found

marcelarie opened this issue · comments

I tried with a minimal config with v0.7.0-dev+678-g0a3826646 and the error it's the same.

After that error Sad does not replace anything.

E5108: Error executing lua ...re/nvim/site/pack/packer/start/sad.nvim/lua/sad/term.lua:1: module 'go.
utils' not found:                                                                                                                      
        no field package.preload['go.utils']No cache entry                                                                             
        no file './go/utils.lua'                                                                                                       
        no file '/home/marcel/programs/neovim/.deps/usr/share/luajit-2.1.0-beta3/go/utils.lua'                                         
        no file '/usr/local/share/lua/5.1/go/utils.lua'                                                                                
        no file '/usr/local/share/lua/5.1/go/utils/init.lua'                                                                           
        no file '/home/marcel/programs/neovim/.deps/usr/share/lua/5.1/go/utils.lua'                                                    
        no file '/home/marcel/programs/neovim/.deps/usr/share/lua/5.1/go/utils/init.lua'                                               
        no file '/home/marcel/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/go/utils.lua'                                     
        no file '/home/marcel/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/go/utils/init.lua'                                
        no file '/home/marcel/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/go/utils.lua'                            
        no file '/home/marcel/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/go/utils/init.lua'                       
        no file './go/utils.so'                                                                                                        
        no file '/usr/local/lib/lua/5.1/go/utils.so'                                                                                   
        no file '/home/marcel/programs/neovim/.deps/usr/lib/lua/5.1/go/utils.so'                                                       
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                    
        no file '/home/marcel/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/go/utils.so'                                        
        no file './go.so'                                                                                                              
        no file '/usr/local/lib/lua/5.1/go.so'                                                                                         
        no file '/home/marcel/programs/neovim/.deps/usr/lib/lua/5.1/go.so'                                                             
        no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                    
        no file '/home/marcel/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/go.so'                                              
stack traceback:                                                                                                                       
        [C]: in function 'require'                                                                                                     
        ...re/nvim/site/pack/packer/start/sad.nvim/lua/sad/term.lua:1: in main chunk                                                   
        [C]: in function 'require'                                                                                                     
        ...re/nvim/site/pack/packer/start/sad.nvim/lua/sad/init.lua:80: in function 'Replace'                                          
        [string ":lua"]:1: in main chunk                                                         

And this one appears with other files too:

E5108: Error executing lua ...re/nvim/site/pack/packer/start/sad.nvim/lua/sad/init.lua:80: loop or previo
us error loading module 'sad.term'                                                                                                      
stack traceback:                                                                                                                        
        [C]: in function 'require'                                                                                                      
        ...re/nvim/site/pack/packer/start/sad.nvim/lua/sad/init.lua:80: in function 'Replace'                                           
        [string ":lua"]:1: in main chunk
commented

Thanks for reporting this. I cross-referenced some codes in my other plugin. Should be fixed now.

Yep the error disappeared. Thanks.

Now the only problem I have it's that after confirming all the changes with <CR> they don't apply. I tried with my config only. Maybe this afternoon I can make another issue with a minimal config.