|
1 | 1 | # Changelog |
2 | 2 |
|
| 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 | + |
3 | 65 | ## 0.4.1 - 2025/12/02 |
4 | 66 |
|
5 | 67 | Small patch that address crashes we got from your reports |
|
0 commit comments