Skip to content

Commit c48e268

Browse files
committed
0.6.0
1 parent 7432825 commit c48e268

File tree

4 files changed

+65
-3
lines changed

4 files changed

+65
-3
lines changed

changelog.md

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

3+
## 0.6.0 - 2025/15/04 - Entrypoints and NOQA Update
4+
5+
### Key features
6+
7+
- OdooLS is now able to run on any python file, even if this python file is not part of your odoo setup. It will then run
8+
like a classical LSP and provide you hover, autocompletion, gotodefinition, etc... but without any odoo knowledge.
9+
- As the core structure should now be in its nearly final form and because of the previous point, OdooLS now has a base test suite to ensure we are keeping every feature stable patch after patch ! These will grow in the future.
10+
- Support for #noqa directive, on file, classes, function or line, with or without error codes
11+
- OdooLS can now handle Walrus operator ⊹╰(⌣ʟ⌣)╯⊹
12+
- OdooLS now has improved inferencer engine and can parse way more expressions and statements
13+
- Various cache and algorithm improvements speed up the server by ~30%, but these ~30% are lost with new features and required parsing...
14+
- OdooLs is now 50% faster on Windows due to disk access improvements. It is nearly not impacting Linux and Macos distribution however.
15+
- Memory usage has been improved by ~6%
16+
- In the end, building time is 10% slower due to new features
17+
- Handle {workspaceFolder:directory} variable in path configurations.
18+
19+
### Server
20+
21+
- Introduce EntryPoints. OdooLS will now provide features for a file depending on its entrypoint: It can be the main entryPoints (usually the odoo project, with odoo/__main__.py), or a single-file entrypoint, the current file. Depending on this context, the server
22+
can act diffently and then work on any python file, even out of the odoo structure. Temporary files are not yet handled however, we
23+
still rely on the disk path to identify a file (will change in next updates)
24+
- Improve Evaluations by handling following Expressions and Statements:
25+
- Number literals: Float and Complex
26+
- If blocks
27+
- unary operators
28+
- constants (ellipsis and None)
29+
- basic FString
30+
- typing.Self
31+
- Make results unique in model name hover
32+
- Add a cache to import resolver, speeding up the process.
33+
- Add traceback to error info in crash report
34+
- Use Yarn instead of String to store small names of symbols to speed up and improve memory usage
35+
- Add hover and gotodef feature to decorators (@api.depends,...), to related fields, comodel_name and model strings before arguments.
36+
- Update Ruff Parser to 0.11.4
37+
- Improve reactivity of server on typing in 'adaptive' mode
38+
- Support for NOQA
39+
- Odoo step has been merged with Arch Eval step, resulting in a process in 3 steps instead of 4.
40+
41+
### Server Fixs
42+
43+
- A module is now automatically (re)imported if reloaded or created if it is in addons path.
44+
- Fix dependency graph on inheritance and imports.
45+
- Fix TestCursor hook behaviour to show right Cursor class in tests directories
46+
- Fix BorrowError on FileManager clear method
47+
- Hover and GotoDefinition features are now working in .pyi files
48+
- Evaluation should correctly take into account all base classes of an object/model
49+
- Fix this changelog filename to be able to publish on VsCodium
50+
- Fix infinite loop on variable evaluation
51+
52+
### Vscode Fixs
53+
54+
- Prevent throwing an error notification when the client is stopping
55+
- Improve reactivity of the server if an interruption is coming during processing or shutdown event
56+
57+
#### New diagnostics / odoo helpers
58+
59+
- Check that the manifest doesn't contain the same key twice
60+
- In a compute function, check that you don't assign another variable that the one you are computing
61+
- Check that comodel_name on related fields is valid
62+
- Check that related field is the same type
63+
- New errors to express the invalid dot notation in strings used for related, domains...
64+
365
## 0.4.1 - 2025/12/02
466

567
Small patch that address crashes we got from your reports

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.4.1"
3+
version = "0.6.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.4.1";
7+
pub const EXTENSION_VERSION: &str = "0.6.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.4.1",
5+
"version": "0.6.0",
66
"publisher": "Odoo",
77
"repository": {
88
"type": "git",

0 commit comments

Comments
 (0)