Vigemus / iron.nvim

Interactive Repl Over Neovim
BSD 3-Clause "New" or "Revised" License
1.01k stars 81 forks source link

iron.core not found with LazyVim #352

Closed gwd666 closed 1 year ago

gwd666 commented 1 year ago

After installing the plugin, when starting nvim it seems that the search for plugin components is not happening in the "usual" places?

I get following startup messages and Iron.... commands are also not available for command execution.

Failed to load `plugins.iron`

~/.config/nvim/lua/plugins/iron.lua:1: module 'iron.core' not found:
^Ino field package.preload['iron.core']
cache_loader: module iron.core not found
cache_loader_lib: module iron.core not found
^Ino file './iron/core.lua'
^Ino file '/__w/neovim/neovim/.deps/usr/share/luajit-2.1/iron/core.lua'
^Ino file '/usr/local/share/lua/5.1/iron/core.lua'
^Ino file '/usr/local/share/lua/5.1/iron/core/init.lua'
^Ino file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/iron/core.lua'
^Ino file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/iron/core/init.lua'
^Ino file './iron/core.so'
^Ino file '/usr/local/lib/lua/5.1/iron/core.so'
^Ino file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/iron/core.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file './iron.so'
^Ino file '/usr/local/lib/lua/5.1/iron.so'
^Ino file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/iron.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'

# stacktrace:
  - .config/nvim/lua/plugins/iron.lua:1
  - .config/nvim/lua/config/lazy.lua:9
  - .config/nvim/init.lua:26

I was expecting a lookup in ~/.local/share/nvim/lazy/iron.nvim/lua/... where the core.lua file resides (ie can be found in that folder), but it somehow drifts off to /usr/local/lib/lua...? Is it intended this way? Or do I need to change something in the setup or elsewhere (eg some global search path settings)? Sorry if it's an obvious error, but I am rather new to lua and neovim config.

Infos: I am running Neovim 0.9.4 from nvim-appimage with a fairly "out-of-the-box" LazyVim setup on WSL2 Ubuntu22.04.

Greetings. PS: thnx for the awesome plugin - funny details on the side - having less trouble on Windows then on Ubuntu here, basically with identical setup.

gwd666 commented 1 year ago

Closing it - nuked .local/share/nvim and .config/nvim