SmiteshP/nvim-gps

unable to setup nvim-gps

Closed this issue · 5 comments

have tried installing it with vundle and this errors shows up on opening neovim after doing the required setup.

Error detected while processing /home/userName/.config/nvim/autoload/plugged/nvim-gps/plugin/nvim-gps.vim:
line 1:
E5108: Error executing lua [string ":lua"]:1: module 'nvim-gps.internal' not found:
no field package.preload['nvim-gps.internal']
no file './nvim-gps/internal.lua'
no file '/usr/share/luajit-2.1.0-beta3/nvim-gps/internal.lua'
no file '/usr/local/share/lua/5.1/nvim-gps/internal.lua'
no file '/usr/local/share/lua/5.1/nvim-gps/internal/init.lua'
no file '/usr/share/lua/5.1/nvim-gps/internal.lua'
no file '/usr/share/lua/5.1/nvim-gps/internal/init.lua'
no file './nvim-gps/internal.so'
no file '/usr/local/lib/lua/5.1/nvim-gps/internal.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/nvim-gps/internal.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './nvim-gps.so'
no file '/usr/local/lib/lua/5.1/nvim-gps.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/nvim-gps.so'
no file '/usr/local/lib/lua/5.1/loadall.so'

Hmm... this is weird. Are you lazy loading the plugin?
Also can you make sure that this file is actually missing? For you it should be in /home/userName/.config/nvim/autoload/plugged/nvim-gps/lua/nvim-gps/internal.lua

No I am not lazyloading the plugin, and yes that file does exist

I am not sure whats causing this issue. I have structed my plugin like any other plugin 🤔
Works fine for me when I install it with packer. Maybe its something to do with how vundle handles installing plugins. I will look into it.

Could you try adding this line somewhere in your init.vim

set rtp+=/home/userName/.config/nvim/autoload/plugged/nvim-gps

yeah now that I have done this, it works fine. Thanks! Though it is a bit curious why vundle wasn't able to handle this. Probably mention this in the readme?

I am glad it worked! Yep, it is weird. I will have to look into this, whether I am missing something.