EACCESS Read-only Workspace Error on NixOS
See original GitHub issueDescribe the bug
On NixOS, all package files are stored in a read-only file-system. Something in vscode-js-debug
at some point copies a file, from the nix store (which is read-only) into the user’s configuration. This works the first time. But since the permissions on the file are read-only, the next time this is attempted, the previous file cannot be overwritten.
Error activating auto attach: Error: EACCES: permission denied, copyfile ‘/nix/store/s81m8m4p355x54snv6fnc56pw75vlprs-vscode-1.58.0/lib/vscode/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js’ -> ‘/home/ldlework/.config/Code/User/workspaceStorage/ed6365eb04d72d5abb85f7871ffb763d/ms-vscode.js-debug/bootloader.js’
This only happens when workspaces are being used.
Is there a change (here upstream) that could be made? I’ve discussed the issue https://github.com/NixOS/nixpkgs/issues/130590# but NixOS can’t really do anything about an application copying a file out of the store, like making it writable or whatnot.
To Reproduce Steps to reproduce the behavior:
- Use NixOS or Nix
- Install vscode
- Use auto-attach
- Start a node process while in a workspace
- Stop debugging, and repeat 3.
VS Code Version: 1.58.2
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
The next Insiders that’s compatible with the nightly should be out within 24h
Yep