Skip to content

[IMP] Add server version management and auto download#6

Open
macocianradu wants to merge 1 commit into
odoo:mainfrom
macocianradu:main
Open

[IMP] Add server version management and auto download#6
macocianradu wants to merge 1 commit into
odoo:mainfrom
macocianradu:main

Conversation

@macocianradu

@macocianradu macocianradu commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Removed the lsp and refactored the config into a lua plugin with
modules which configures and enables the lsp on setup().

The lua modules handle fetching the latest version from the github
repo, checking whether there is a newer version than the one installed
and expose an :OdooLsInstall function for users to install the newest
ls server on demand.

The module can be configured to either get the latest stable version
from github, the latest version including prereleases, or fixed to a
specific version tag

@fda-odoo

fda-odoo commented May 5, 2026

Copy link
Copy Markdown
Collaborator

That's a nice addition to the neovim plugin !
I'll let @Whenrow review it, but I would mention that we could allow user to choose between last release or pre-release version (odd or even minor version - 1.0, 1.2 are releases, 1.1, 1.3 are pre-release)
It would allow neovim users to easily test next branches in advance too.
However I know that github is not providing a route as /latest to get latest pre-release, so it would be harder to write

@macocianradu

Copy link
Copy Markdown
Contributor Author

That's a nice addition to the neovim plugin ! I'll let @Whenrow review it, but I would mention that we could allow user to choose between last release or pre-release version (odd or even minor version - 1.0, 1.2 are releases, 1.1, 1.3 are pre-release) It would allow neovim users to easily test next branches in advance too. However I know that github is not providing a route as /latest to get latest pre-release, so it would be harder to write

I could setup a config parameter for the version where the user can input the specific version number they want, which defaults to latest (stable). And setting it to 'nigthly' could could just get the last version from https://api.github.com/repos/odoo/odoo-ls/releases

Removed the lsp and refactored the config into a lua plugin with
modules which configures and enables the lsp on `setup()`.

The lua modules handle fetching the latest version from the github
repo, checking whether there is a newer version than the one installed
and expose an :OdooLsInstall function for users to install the newest
ls server on demand.

The module can be configured to either get the latest stable version
from github, the latest version including prereleases, or fixed to a
specific version tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants