Open SnO2WMaN opened 2 years ago
terminal.integrated.shellIntegration.enabled: false
(in JSON) fixed this problem
VS Code copies the files from the Nix Store which leads to them having no write permissions which means that every time you open a zsh shell it fails by trying to overwrite the existing ones.
A fix should be released with the next version of VS Code:
https://github.com/microsoft/vscode/commit/342649329315974bc36d084310ae180f55106505
You can temporarily open a terminal by:
rm -rf /tmp/vscode-zsh
(if you are Linux)I thought about submitting a patch to vscode to delete the destination file before copying, something like rm -f
. Maybe we can also fix file permissions during the build process of nix package.
Describe the bug
I am using Nix Flake (and home-manager) to manage my laptop and other settings, but after updating the inputs in flake, zsh suddenly stopped running in VSCode's Integrated Terminal after some time has passed. The problem is that zsh does not start in the Integrated Terminal of VSCode. The problem is that no matter what generation of home-manager I rolled back to, I could not solve this problem.
From the screenshot, I think some setting (about permission) in
pkgs.vscode
is probably wrong, please check it.Expected behavior
Integrated terminal starts with zsh should be able to open but currently cannot.
Screenshots
It is possible to start zsh after starting with bash.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Currently my
nixpkgs
forpkgs
commit rev isgithub:NixOS/nixpkgs/38860c9e91cb00f4d8cd19c7b4e36c45680c89b5
(nixos-unstable
)