Releases: odoo/odoo-ls
Releases · odoo/odoo-ls
0.2.7 - alpha
Changelog
0.2.7 - 2024/31/10
Server
- Now include macos binary (arm processors)
- Any requests (Hover, autocompletion, ...) is now able to cut any running rebuild, resulting in a way more reactive experience.
- Basic autocompletion implementation. The server should be able to parse ast and understand what you want to autocomplete. However, the results could be incomplete or incorrect at this point, we will improve that in the next versions
- Use hashs to detect if opened files are differents than the disk version to avoid useless computations.
- Prevent file update if the change is leading to syntaxically wrong ast. The index will be rebuilt only if user fix the syntax errors. It avoid useless computations
- Update file cache immediatly, even if reload are delayed by settings. It allows autocompletion to be aware of changes.
- Delay the symbol cleaning to the file reload and not on update, to not drop symbols that could be used by autocompletion or other requests
- Now handle setups where odoo community path or addons path are paths that are in sys.path.
- Fix evaluation of classes having a base class with the same name.
- Fix parsing of empty modules with only a manifest file
- Basic With statement evaluation
- Improve Hover informations for imports expressions (especially for files, packages, namespaces)
- use root_uri as fallback if no workspace_folder is provided (root_uri is deprecated though)
- Implement a profiling setup with iai-callgrind
- various cleaning
New diagnostics / odoo helpers
- Add deprecation warning on any use/import of odoo.tests.common.Form after Odoo 17.0
- Autocompletion of Model names in self.env[""] expressions. Autocompleted model names will indicates if a new dependency is required. This comes with a new settings allowing you to choose between 'only available models' or 'all models with an hint'
0.2.6 - alpha
Alpha package - will not be pusblished on marketplace as it is
0.2.6 - 2024/01/10
Server
- Add Function body evaluation. This is the major content of this update. The server has now the required structure to parse function
body and infer the return value of a function. This feature is rudimentary and a lot of function will still have a return value of None,
but the code is ready to support new python expressions! - fix python path acquisition from vscode settings
- Ignore git file update to avoid useless reload of the index.
- Add various new diagnostics
- fix deadlock that can sometimes occurs in some file update.
- Add support for dynamic symbols. Dynamic symbols are symbols that are added on an object after its declaration
- improve dependency graph to support models
- Server now reacts to WorkspaceDidChangedWatchedFiles, and will restart automatically on Odoo version change
- Better logs for investigations: used settings, build name, etc...
0.2.4
0.2.4 - 2023/01/10
Fixs
- Fix crash on get_loaded_part_tree if addon path has not been found
- Fix crash on autocompletion if opened file is not found (out of workspace for example)
- Allow path to Odoo community to end with a /
- Fix crash when hovering Relational field declaration
- Fix crash when creating a symbol that was previously missing
- Fix infinite log generation on BrokenPipeError
0.2.3
0.2.3 - 2023/12/19
Last update of 2023 ! We wish you all an happy new year !
VsCode
The rework of the client to work with the Python Extension is delayed to 0.2.4
- New option to choose which missing import should be diagnosed. 3 options are available: none, only odoo imports, all
Server
- Support a new configuration option to choose which missing import should be diagnosed. The option is called "diagMissingImportLevel" and can take 3 values: "all", "only_odoo" or "none".
- The server can now identify a 'type alias' as it should be. It should now be correctly displayed where it is relevant. Best example of type alias is "AbstractModel", that is a type alias of "BaseModel".
- Server is now able to override
__get__
functions behaviour in its core, and the odoo implementation define all return values for all fields. It means that from now:
self.name
will be displayed as an str, butMyModel.name
will be displayed as a fields.Char.
This value is used to for the autocompletion, and so you won't have suggestions from fields class after using a field in a function (likeself.name.???
)
Fixs
- Prevent BrokenPipeError to log indefinitely if the server is disconnected from client. This fix improve the one of the last version to handle last (hopefully) not catched situation.
- Update int to proper enums in module.py for the 'severity' option of diagnostics
0.2.2
0.2.1
0.2.1 - 2023/11/15
This version contains various fixs based on the reports we got. No new features here.
Server
- Fix log file hell. No more log file that will fill up your hard disk.
- Fix a crash that can occur if a model is declared ouside of a module (really?)
- Fix crash that can occur if the configuration is wrong. Handle it properly
- Allow creation of full path instead of only a new file. if you have a directory test, you can create test/dummy/file.py in on command instead of 2 (directory + file) without having the extension crashing
- Fix crash on some file edit due to the thread queue that was missing some context
- Fix character index on Hover and Definition feature that created a crash if you hover the last character of the file
BETA - 0.2.0
First beta version of this tool. You can install it through marketplace if you prefer by selecting "pre-release" in the selection dropdown.
This is a BETA version: it can crash, it can show invalid data and it still miss a lot of features.
Do not hesitate to report any issue you would have with it.