Skip to content

How to resolve invalid ELF header #5

Description

@mdrv

First of all, I’m grateful for this plugin you’ve shared. I’d been looking for great WebSockets module written in Lua, but they don’t work nicely with Neovim (most likely memory leak/async issue).

My first attempts using this plugin were not so great either, but I resolved it by adding config=true on lazy.nvim plugin initialization (which is not mentioned in README) and recompiling the websocket_ffi.so binary on rust directory, then replace the existing one.

This was the error I got previously:

E5108: Error executing lua: vim/loader.lua:0: /home/mdrv/.local/share/nvim/lazy/websocket.nvim/lua/websocket/../../rust/lua/websocket_ffi.so: invalid ELF header
stack traceback:
        [C]: in function 'error'
        vim/loader.lua: in function <vim/loader.lua:0>
        [C]: in function 'require'
        .../share/nvim/lazy/websocket.nvim/lua/websocket/client.lua:5: in main chunk
        [C]: in function 'require'
        /home/mdrv/.config/nvim/init.lua:2577: in function </home/mdrv/.config/nvim/init.lua:2576>

It would be helpful to describe the cause or method to resolve the invalid ELF header, since some users might also stumble upon this issue as well.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions