Description
Your setup
Version: 0.6.2
Operating System: MacOS Ventura (Intel-based iMac)
IDE / Integration:** VS Code – official Odoo Language Server extension
Describe the bug
When running the Odoo Language Server on an Intel-based macOS machine, the bundled macos_odoo_ls_server
binary fails to launch with a CPU‐architecture mismatch. The output in the “Odoo Language Server” panel reads:
Error: spawn Unknown system error -86 at ChildProcess.spawn (node:internal/child_process:420:11) at Object.spawn (node:child_process:796:9) at /Users/karizma/.vscode/extensions/odoo.odoo-0.6.2/client/out/main.js:113:32891 at async Dh.createConnection (/Users/karizma/.vscode/extensions/odoo.odoo-0.6.2/client/out/main.js:113:12653) at async Dh.start (/Users/karizma/.vscode/extensions/odoo.odoo-0.6.2/client/out/main.js:113:2940)
macOS reports “bad CPU type in executable” (EF_BADARCH, error code –86), indicating the shipped binary is compiled for ARM64 rather than x86_64.
To Reproduce
- On an Intel-based Mac running macOS Ventura, install the Odoo Language Server extension v0.6.2 in VS Code.
- Clone or open any Odoo 18.0 codebase folder.
- Ensure your Python interpreter is set to a valid Odoo-18.0 virtual environment.
- Reload VS Code or open the workspace; the extension will attempt to spawn the
odoo-ls
server. - Observe the spawn failure and the “Unknown system error –86” in the extension output.
Expected behavior
The Odoo Language Server should launch without any problems
Additional context
I configured odoo-ls
with a cloned odoo 18.0 and a python venv.