Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bobslee opened this issue Apr 2, 2024 · 5 comments

Comments

@bobslee
Copy link

bobslee commented Apr 2, 2024

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) ?

@sleepy-monax
Copy link
Member

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

@bobslee
Copy link
Author

bobslee commented Apr 3, 2024

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.

@fda-odoo
Copy link
Collaborator

fda-odoo commented Apr 3, 2024

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!

@yao-big
Copy link

yao-big commented Apr 8, 2024

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

@fda-odoo
Copy link
Collaborator

fda-odoo commented Apr 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants