nix-community / emacs-overlay

Bleeding edge emacs overlay [maintainer=@adisbladis]
508 stars 168 forks source link

compile mode Bash not found #445

Closed EduardoSilvaDiniz closed 2 weeks ago

EduardoSilvaDiniz commented 1 month ago

i'm having trouble using compile mode, i'm getting the error

“/nix/store/pd228xy0lni9xbghrpxig5v0cyh2bwps-emacs-git-20240915.0/bin/emacs: /bin/bash: No such file or directory”.

I tried to fix it by defining another shell but the problems persist.

(setq explicit-shell-file-name “/bin/zsh”)
(setq shell-file-name “/bin/zsh”)

but compile mode still can't find the shell, even if I switch to zsh. project mode doesn't work either.

“/nix/store/pd228xy0lni9xbghrpxig5v0cyh2bwps-emacs-git-20240915.0/bin/emacs: /bin/zsh: No such file or directory”

my emacs home manager configuration

{pkgs, ...}: {
  programs.emacs = {
    enable = true;
    package = pkgs.emacs-git;
    extraPackages = epkgs:
      with epkgs; [
        treesit-grammars.with-all-grammars
        vterm
        mu4e
      ];
  };
  home.packages = import ./lsps.nix {inherit pkgs;};
}

Captura de tela de 2024-10-24 11-19-50

adisbladis commented 2 weeks ago

If you're on NixOS /bin/bash doesn't exist by design. That would be /run/current-system/sw/bin/bash.