8000 "exec format error" when starting language server · Issue #320 · odoo/odoo-ls · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
"exec format error" when starting language server #320
Open
@felixpohlmann

Description

@felixpohlmann

**Your setup**
Version: Darwin daadd29b-3c74-415f-9c57-2eecb5f4fea8.fritz.box 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64
Operating System: NEOVIM

Describe the bug
The language server can't be started properly.

To Reproduce
Download language server and try to run it like this
➜ ~/.local/share/nvim/odoo/odoo_ls_server
zsh: exec format error: /Users/felixpohlmann/.local/share/nvim/odoo/odoo_ls_server

Expected behavior
When using the neovim plugin "whenrow/odoo-ls.nvim" using this configuration:

return {
  "whenrow/odoo-ls.nvim",
  dependencies = { "neovim/nvim-lspconfig" },
  ft = { "python", "xml", "javascript", "css" }, -- Load for Odoo file types
  config = function()
    local odools = require "odools"
    local h = os.getenv "HOME"

    local current_dir = vim.fn.getcwd()
    local odoo_path = vim.fn.resolve(current_dir .. "/../odoo")

    odools.setup {
      odoo_path = odoo_path, -- Path to your main Odoo installation
      python_path = "/usr/bin/python3", -- Adjust to your Python path

      server_path = h .. "/.local/share/nvim/odoo/odoo_ls_server",
      addons = {
        current_dir .. "/custom/addons", -- Your custom addons path
        -- Add other addon paths if needed
      },
      additional_stubs = {
        h .. "/.local/share/nvim/odoo/typeshed/stubs",
      },
      root_dir = current_dir, -- Your project root
      settings = {
        autoRefresh = true,
        autoRefreshDelay = nil,
        diagMissingImportLevel = "warning", -- Can be "none", "warning", "error"
      },
    }
  end,
}

I would expect it to start up but sincerely it does not work.

Maybe i did a mistake in the setup but i can't get it to work.

Thanks for the help in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0