{"id":21930439,"url":"https://github.com/desdaemon/odoo-lsp","last_synced_at":"2026-04-22T08:00:51.954Z","repository":{"id":189370490,"uuid":"680327518","full_name":"Desdaemon/odoo-lsp","owner":"Desdaemon","description":"Language server for Odoo Python/JS/XML","archived":false,"fork":false,"pushed_at":"2026-04-15T14:44:17.000Z","size":3721,"stargazers_count":60,"open_issues_count":28,"forks_count":6,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-04-15T16:38:01.042Z","etag":null,"topics":["intellisense","javascript","lsp-server","odoo","odoo-tooling","python","tower-lsp","xml"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Desdaemon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-18T23:10:15.000Z","updated_at":"2026-04-09T08:22:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"71f4f10c-e43e-48c3-9621-6c8c6464bae3","html_url":"https://github.com/Desdaemon/odoo-lsp","commit_stats":null,"previous_names":["desdaemon/odoo-lsp"],"tags_count":157,"template":false,"template_full_name":"IWANABETHATGUY/tower-lsp-boilerplate","purl":"pkg:github/Desdaemon/odoo-lsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Fodoo-lsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Fodoo-lsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Fodoo-lsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Fodoo-lsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Desdaemon","download_url":"https://codeload.github.com/Desdaemon/odoo-lsp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desdaemon%2Fodoo-lsp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32126709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["intellisense","javascript","lsp-server","odoo","odoo-tooling","python","tower-lsp","xml"],"created_at":"2024-11-28T23:09:28.292Z","updated_at":"2026-04-22T08:00:51.941Z","avatar_url":"https://github.com/Desdaemon.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# odoo-lsp\n\n[![nightly](https://github.com/Desdaemon/odoo-lsp/actions/workflows/nightly.yml/badge.svg)](https://github.com/Desdaemon/odoo-lsp/actions/workflows/nightly.yml)\n[![test](https://github.com/Desdaemon/odoo-lsp/actions/workflows/test.yml/badge.svg)](https://github.com/Desdaemon/odoo-lsp/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/Desdaemon/odoo-lsp/graph/badge.svg?token=6Y9WYWZ07G)](https://codecov.io/gh/Desdaemon/odoo-lsp)\n[![docs.rs](https://img.shields.io/docsrs/odoo-lsp)](https://docs.rs/odoo-lsp)\n[![VS Marketplace](https://vsmarketplacebadges.dev/version-short/desdaemon.odoo-lsp.svg)](https://marketplace.visualstudio.com/items?itemName=Desdaemon.odoo-lsp)\n[![Open VSX](https://img.shields.io/open-vsx/v/desdaemon/odoo-lsp?label=Open%20VSX)](https://open-vsx.org/extension/Desdaemon/odoo-lsp)\n\n## Features\n\n### Completion, definition and references for models, XML IDs and model fields\n\nWorks for `record`s, `template`s, `env.ref()` and other structures.\nFor VSCode, also includes schema-based validation and completions for Odoo XML.\n\n[![model demo](https://raw.githubusercontent.com/Desdaemon/odoo-lsp/main/static/model.gif)](https://asciinema.org/a/604545)\n\n### Browse models and XML records as workspace symbols\n\n[![symbols demo](https://raw.githubusercontent.com/Desdaemon/odoo-lsp/main/static/symbols.gif)](https://asciinema.org/a/604560)\n\n### Syntax enhancements\n\nProvides syntax highlighting in VSCode for Python, JavaScript, and XPath expressions in Odoo XML.\n\nhttps://github.com/Desdaemon/odoo-lsp/assets/36768030/6003d5fe-9617-41df-ae3d-a704af77455c\n\nFor more features check out the [wiki].\n\n## Install\n\nThe VSCode extension handles downloading the latest releases automatically; other editors need `odoo-lsp` on the path.\nNightly binaries are also available for major platforms, please check [Releases] for the latest downloads.\n\n```bash\n# One-line\ncurl -L https://github.com/Desdaemon/odoo-lsp/releases/latest/download/odoo-lsp-x86_64-unknown-linux-musl.tgz | tar -xzvf -\n\n# Apple Silicon\ncurl -L https://github.com/Desdaemon/odoo-lsp/releases/latest/download/odoo-lsp-aarch64-apple-darwin.tgz | tar -xzvf -\n\n# With cargo-binstall\ncargo binstall odoo-lsp\n\n# Install from source\ncargo install odoo-lsp\n\n# Update in-place, optionally with --nightly\nodoo-lsp self-update\n```\n\n## Setup\n\nFor detailed usage instructions please check the [wiki] (work in progress).\n\n### VSCode\n\nodoo-lsp is available from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Desdaemon.odoo-lsp) and the\n[Open VSX Registry](https://open-vsx.org/extension/Desdaemon/odoo-lsp). Alternatively, you can grab the latest nightly builds from [Releases].\n\n### Zed\n\nodoo-lsp is available from the [Zed extensions registry](https://zed.dev/extensions/odoo-lsp).\nFor more details read the extension-specific [README](./crates/extension-zed/README.md).\n\n### Helix\n\nSee [.helix/languages.toml](./examples/.helix/languages.toml)\n\n1. Ensure that you have `odoo-lsp` on your path\n2. Determine your Helix runtime folder, e.g. `~/.config/helix/` on Linux\n3. Modify `languages.toml` in your Helix runtime folder (create one if none exists) to include these lines:\n\n```toml\n[language-server]\n# Update the path to match your setup\nodoo-lsp.command = \"odoo-lsp\"\n\n[[language]]\nname = \"xml\"\nlanguage-servers = [\"odoo-lsp\"]\nroots = [\".odoo_lsp\", \".odoo_lsp.json\"]\n\n[[language]]\nname = \"python\"\nroots = [\n   \".odoo_lsp\", \".odoo_lsp.json\",\n   # add the default roots here\n]\n# Order is important here\nlanguage-servers = [\n   \"odoo-lsp\",\n   # add the default language servers here\n   \"pylsp\",\n   # and any you need\n]\n```\n\n4. Alternatively, modify `$ROOT/.helix/languages.toml` where `$ROOT` is your Odoo modules root to include the above lines.\n\n### Neovim (v0.11+)\n\nAdd a custom definition for nvim-lspconfig:\n\n```lua\n-- in ~/.config/nvim/lsp/odoo_lsp.lua\nvim.lsp.config['odoo_lsp'] = {\n  cmd = { \"odoo-lsp\" },\n  filetypes = { \"javascript\", \"xml\", \"python\" },\n  root_markers = { { \".odoo_lsp\", \".odoo_lsp.json\" }, \".git\" },\n}\n```\n\nThen in your LSP configuration, for example [LazyVim](https://www.lazyvim.org/):\n\n```lua\n-- in ~/.config/nvim/lua/plugins/lsp.lua\nreturn {\n  {\n    'neovim/nvim-lspconfig',\n    opts = {\n      servers = {\n        odoo_lsp = {},\n        -- enable these as needed\n        -- pyright = {},\n      }\n    },\n  },\n}\n```\n\nFor versions before v0.11, see [examples/init.lua](examples/init.lua).\n\n## Troubleshooting\n\nRun your editor with the `RUST_LOG` environment variable like below, e.g. for VSCode:\n\n```shell\nRUST_LOG=odoo_lsp=debug code ..\n```\n\nThis will enable debug logs for the _LSP server_ itself, which can be seen via your editor's logging mechanism.\nPlease include these logs when opening an issue.\n\n## Development\n\nDon't know where to start? Run `cargo doc --bin odoo-lsp` for a quick overview of the codebase. All contributions welcome!\n\n### VSCode extension\n\nOnce you have made your changes, run `pnpm install-for-vscode` to build and install the extension locally.\n\n[wiki]: https://github.com/Desdaemon/odoo-lsp/wiki\n[Releases]: https://github.com/Desdaemon/odoo-lsp/releases\n[lsp-zero.nvim]: https://github.com/VonHeikemen/lsp-zero.nvim\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesdaemon%2Fodoo-lsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesdaemon%2Fodoo-lsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesdaemon%2Fodoo-lsp/lists"}