odoo-ls
odoo-ls copied to clipboard
NixOS (nixpkgs) crash: OSError: [Errno 30] Read-only file system: /nix/store/...
Your setup Version: 0.2.4 Operating System: NixOS (nixpkgs) 23.11 IDE: VS Code (official extension).
Describe the bug
OSError: [Errno 30] Read-only file system: /nix/store/...
Suggestion Perhaps configure the log directory (by a setting) ?
The language server should store its logs in $XDG_STATE_HOME/odoo-ls/
Ok I see.
But as the screenshot shows, the path is read-only.
The extension is installed on NixOS, where the /nix/store is readonly.
So a configurable path for the logs would be great.
Hello. Thank you for the feedback. The next version of this extension, written in Rust, do not have this log file actually. All logs are redirected to the vscode output window. But if we have to add a new file log, we will do it in a way to avoid this issue!
@fda-odoo May I ask if it's suitable to use Trust to write it
@yao-big We think so. We need some performances that we can't get with Python, and Rust was the best candidate for it.