8000 Bad CPU type in executable macos_odoo_ls_server · Issue #308 · odoo/odoo-ls · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bad CPU type in executable macos_odoo_ls_server #308
Open
@Yorften

Description

@Yorften

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

  1. On an Intel-based Mac running macOS Ventura, install the Odoo Language Server extension v0.6.2 in VS Code.
  2. Clone or open any Odoo 18.0 codebase folder.
  3. Ensure your Python interpreter is set to a valid Odoo-18.0 virtual environment.
  4. Reload VS Code or open the workspace; the extension will attempt to spawn the odoo-ls server.
  5. 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

Screenshots
Image

Additional context
I configured odoo-ls with a cloned odoo 18.0 and a python venv.

Metadata

Metadata

Assignees

Labels

packagingRelated to packaging

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0