Open j4t1nd3r opened 6 months ago
How do you know an extension is not installed?
What does code --list-extensions
output?
Please provide a screenshot of your list of installed extensions.
on issues/vscode-extensions
branch. I initially installed my extensions manually, so I have uninstalled them to test the sudo nixos rebuild flake..
with the following vscode config in home.nix:
vscode = {
enable = true;
extensions = with nix-vscode-extensions.extensions.${pkgs.system}.vscode-marketplace; [
bbenoist.nix
jdinhlife.gruvbox
bbenoist.nix
github.vscode-pull-request-github
];
};
terminal:
vscode:
@AmeerTaweel, could you please have a look?
I am running into this too, is there anything I can do to help this issue move forward?
@j4t1nd3r @jensmeindertsma, this repo provides only extension derivations. Please report Home Manager problems in the home-manager repo.
One (non-optimal) way to fix this is to set programs.vscode.mutableExtensionsDir = false;
. This will force home-manager to generate extensions.json
, but you will not be able to install extensions from the vscode's interface.
The issue is indeed needs to be fixed in home-manager. In case of mutableExtensionsDir = true
it should still patch extensions.json
to add all listed extensions there.
Edit: I should probably post it to the home-manager issue as well :thinking:
@j4t1nd3r are you still having this issue? I had something similar happen, it was a result of using profiles.
Link to my github repo
Original config (on main branch)
I was initially using in home.nix:
My issue
Running
sudo nixos-rebuild switch --flake nix-fwk-system/#fwk-nixos
runs without error. Sometimes rarely an extension installs. If I uninstall the vscode to test reproducibility, rerun thesudo nixos rebuild switch flake...
the extension(s) are not reinstalled.rm ~/.vscode/extensions/extensions.json
before rerunning the rebuild switch flake makes no difference. I raised an issue on home-manager github here I also seeked help from a dedicated NixOS discord. Link to my initial message The response was to switch to nix-vscode-extensions.New config on (side branch)
flake.nix
home.nix
Regarding this new config. I struggled with its config and the discord get it working for me. On the first error free run of
sudo nixos rebuild flake...
, it installedbbenoist.nix
extension.Once again to test reproducibility. I uninstalled the extension within vscode then reran
sudo nixos rebuild flake...
the same issue persists.I now suspect that I have a fundamental misunderstanding here or there is an issue with my general config. Suggestions?