odoo-ls icon indicating copy to clipboard operation
odoo-ls copied to clipboard

NixOS (nixpkgs) crash: OSError: [Errno 30] Read-only file system: /nix/store/...

Open bobslee opened this issue 1 year ago • 5 comments

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/...

image

Suggestion Perhaps configure the log directory (by a setting) ?

bobslee avatar Apr 02 '24 14:04 bobslee

The language server should store its logs in $XDG_STATE_HOME/odoo-ls/

sleepy-monax avatar Apr 03 '24 09:04 sleepy-monax

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.

bobslee avatar Apr 03 '24 09:04 bobslee

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 avatar Apr 03 '24 09:04 fda-odoo

@fda-odoo May I ask if it's suitable to use Trust to write it

yao-big avatar Apr 08 '24 07:04 yao-big

@yao-big We think so. We need some performances that we can't get with Python, and Rust was the best candidate for it.

fda-odoo avatar Apr 08 '24 16:04 fda-odoo