Skip to content

Commit b6d15aa

Browse files
committed
0.8.0
1 parent 2858df9 commit b6d15aa

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed

changelog.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# Changelog
22

3+
## 0.8.0 - 2025/04/07 - Configuration files and XML Support (part 1)
4+
5+
This update introduces two new big changes in OdooLS.
6+
7+
First, we updated the way OdooLS is configured for a more porwerful, flexible, and IDE-independant way. Unfortunately, it implies that all your existing configurations are lost with this update. We are sorry for that, but we hope you will love way more the new system when you'll have adopted it ! Do not hesitate to give us your feedback, questions or anything you want to say about it on our [github](https://github.com/odoo/odoo-ls/discussions). As it is quite different, you can get lost at the first time. Do not hesitate to read our wiki about [configuration files](https://github.com/odoo/odoo-ls/wiki/Configuration-files).
8+
9+
Secondly, the update introduces all the basic parsing for XML files. This part 1 only includes XML loading, parsing and validation against Odoo RNG file. There is features about XML files here (no hover, gotodefinition, etc...) as it will be released in part 2. This update focus on including XML and CSV files in the server cache and ensure that everything is running fine now that we have different file extensions and language. As always, we would be really happy if you can send us any error or issue you encounter with these new features.
10+
11+
Let's go with this update more in detail now!
12+
13+
### Server
14+
15+
- New configuration system. Configurations are not stored in settings.json anymore, but in configuration files on disk.
16+
- OdooLS can now detect Odoo and run even without any configuration file.
17+
- When loading a manifest, search and load data files (csv/xml). If not found, raise a diagnostic.
18+
- When loading an XML file, display diagnostic on syntax errors
19+
- Validate XML files against RelaxNG file. This validation is not using the file actively but is hardcoded in the server. We did this as
20+
there is no real implementation of RelaxNG in Rust and that we included a lot of hooks and additional checks on the validation based on the python code of Odoo too (more will come in part 2).
21+
- New structure to support dynamic member variable declaration, like in
22+
```python
23+
class cl:
24+
pass
25+
cl.new_variable = 5
26+
```
27+
This is actually mainly used for new Odoo changes on master, and is not dynamically supported in custom code.
28+
- Support for invalid AST. Now an invalid AST should not prevent the server from providing features as definition, hover, etc...
29+
- Allow hooks to applied on some version of odoo only. Fix most of the issues related to hooks for branches > 18.1 of Odoo.
30+
- Various small optimization updates.
31+
32+
### VsCode
33+
34+
- Update the interface to not show configurations but give a way to change active profile.
35+
- Provide Semantic token for CSV file. If you don't have the RainbowCsv extension installed, OdooLS will colorize your csv files for you.
36+
37+
### Fixs
38+
39+
- Fix import of multi-level elements, as in `import a.b.c`
40+
- Allow name completion in some nested expressions.
41+
- Autocompletion is now better localized, and can not suggest variables declared later in a bloc.
42+
- Fix various borrow errors.
43+
344
## 0.6.3 - 2025/23/05 - Bugfixs
445

546
### Fixs

server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "odoo_ls_server"
3-
version = "0.6.3"
3+
version = "0.8.0"
44
edition = "2021"
55
authors = ["Odoo"]
66
readme = "../README.md"

server/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use core::fmt;
44
use byteyarn::{yarn, Yarn};
55

66
pub const EXTENSION_NAME: &str = "Odoo";
7-
pub const EXTENSION_VERSION: &str = "0.6.3";
7+
pub const EXTENSION_VERSION: &str = "0.8.0";
88

99
pub const DEBUG_ODOO_BUILDER: bool = false;
1010
pub const DEBUG_MEMORY: bool = false;

vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "odoo",
33
"displayName": "Odoo",
44
"description": "Language Server for Odoo projects",
5-
"version": "0.6.3",
5+
"version": "0.8.0",
66
"publisher": "Odoo",
77
"repository": {
88
"type": "git",

0 commit comments

Comments
 (0)