nvim-oxi icon indicating copy to clipboard operation
nvim-oxi copied to clipboard

Strange behavior of library files in runtimepath

Open dimchee opened this issue 3 years ago • 1 comments

After following crate setup section in examples, everything worked, until I tried standard plugin refresh without neovim restart. The problem can be simulated with next lua snippet:

-- crash.lua
vim.o.rtp = '.,' .. vim.o.rtp
package.loaded.foo = nil
Foo = require'foo'
package.loaded.foo = nil
Foo = require'foo'

Which on execution crashes, and reports: Illegal instruction (core dumped). I tried different neovim versions - every version crashes. I suspect neovim has problem with loading library files (which can be further tested with compiled C library). Another thing I found out is that runtimepath has strange behavior when shared object files are concerned (Order of finding plugins is not respected). I am posting this Issue here because I think it affects usage of this plugin more than neovim itself. Maybe I can dig deeper (I am not very experienced but would like to help).

dimchee avatar Nov 02 '22 23:11 dimchee

I am having the same issue. I am using the crate setup example on Windows and Neovim crashes when loading the DLL file.

AregevDev avatar Dec 24 '23 08:12 AregevDev