Open
Description
**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
Labels
No labels