Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior of library files in runtimepath #86

Open
dimchee opened this issue Nov 2, 2022 · 1 comment
Open

Strange behavior of library files in runtimepath #86

dimchee opened this issue Nov 2, 2022 · 1 comment

Comments

@dimchee
Copy link

dimchee commented Nov 2, 2022

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).

@AregevDev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants