nvim-orgmode / telescope-orgmode.nvim

Neovim plugin. Telescope.nvim extension that adds orgmode.nvim integration.
MIT License
9 stars 5 forks source link

Installation error on 1.3.0 #22

Closed lyz-code closed 3 days ago

lyz-code commented 3 weeks ago

Hi, after upgrading to 1.2.0 every time I open nvim I see the following error:

Failed to run config for telescope-orgmode.nvim                                                                                                           

...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:10: 'orgmode' extension doesn't exist or isn't installed: ...telescope-orgmode.nvim/lua/telescope-o
  no field package.preload'telescope-orgmode.typehints'                                                                                                   
cache_loader: module telescope-orgmode.typehints not found                                                                                                
cache_loader_lib: module telescope-orgmode.typehints not found                                                                                            
  no file './telescope-orgmode/typehints.lua'                                                                                                             
  no file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1/telescope-orgmode/typehints.lua'                                                    
  no file '/usr/local/share/lua/5.1/telescope-orgmode/typehints.lua'                                                                                      
  no file '/usr/local/share/lua/5.1/telescope-orgmode/typehints/init.lua'                                                                                 
  no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/telescope-orgmode/typehints.lua'                                                       
  no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/telescope-orgmode/typehints/init.lua'                                                  
  no file '~/.local/share/nvim/lazy-rocks/telescope.nvim/share/lua/5.1/telescope-orgmode/typehints.lua'                                           
  no file '~/.local/share/nvim/lazy-rocks/telescope.nvim/share/lua/5.1/telescope-orgmode/typehints/init.lua'                                      
  no file './telescope-orgmode/typehints.so'                                                                                                              
  no file '/usr/local/lib/lua/5.1/telescope-orgmode/typehints.so'                                                                                         
  no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/telescope-orgmode/typehints.so'                                                          
  no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                             
  no file '~/.local/share/nvim/lazy-rocks/telescope.nvim/lib/lua/5.1/telescope-orgmode/typehints.so'                                              
  no file './telescope-orgmode.so'                                                                                                                        
  no file '/usr/local/lib/lua/5.1/telescope-orgmode.so'                                                                                                   
  no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/telescope-orgmode.so'                                                                    
  no file '/usr/local/lib/lua/5.1/loadall.so'                                                                                                             
  no file '~/.local/share/nvim/lazy-rocks/telescope.nvim/lib/lua/5.1/telescope-orgmode.so'                                                        

# stacktrace:                                                                                                                                             
  - /telescope.nvim/lua/telescope/_extensions/init.lua:10 in load_extension                                                                               
  - /telescope.nvim/lua/telescope/_extensions/init.lua:62 in load_extension                                                                               
  - ~/.config/nvim/lua/plugins/orgmode.lua:254 in config                                                                                                  

Rolling back to 1.1.0 makes the issue disappear. Any idea of what might be causing it?

bi0ha2ard commented 3 weeks ago

It's the import of telescope-orgmode.typehints, which doesn't exist. The file was removed in https://github.com/nvim-orgmode/telescope-orgmode.nvim/commit/b1d0fab19fafeb7de0fd78b16d4c023021c01765 but the import was probably left over.

lyz-code commented 3 weeks ago

Makes sense, thanks for clarifying @bi0ha2ard

seflue commented 3 days ago

Sorry guys, somehow I wasn't notified by GitHub about this issue you posted. I actually removed the typehints because I don't need them anymore. This one require statement slipped through, because my local setup didn't complaint. The other day I somehow exposed this issue myself and fixed it immediately. Just now I got aware, that you already found it weeks ago.

lyz-code commented 2 days ago

Thank you so much @seflue ❤