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

fish: Unknown command: fenv #1701

Closed
toonn opened this issue Jan 7, 2021 · 1 comment · Fixed by #1703
Closed

fish: Unknown command: fenv #1701

toonn opened this issue Jan 7, 2021 · 1 comment · Fixed by #1703

Comments

@toonn
Copy link
Contributor

toonn commented Jan 7, 2021

Issue description

It seems like the fish module has regressed. After updating my channels (nixpkgs-unstable and home-manager master) a home-manager switch (via the nix-darwin module) resulted in the following errors during activation:

Activating home-manager configuration for toonn
fish: Unknown command: fenv
/etc/fish/nixos-env-preinit.fish (line 7): 
    fenv source /nix/store/xda74vl5nkcdhmhd6hgwffa949yxrh7c-set-environment
    ^
from sourcing file /etc/fish/nixos-env-preinit.fish
	called on line 16 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/share/fish/__fish_build_paths.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/share/fish/__fish_build_paths.fish
	called on line 66 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/share/fish/config.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/share/fish/config.fish
	called during startup
fish: Unknown command: fenv
/etc/fish/config.fish (line 6): 
  fenv source /etc/fish/foreign-env/shellInit > /dev/null
  ^
from sourcing file /etc/fish/config.fish
	called on line 39 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
	called during startup
fish: Unknown command: fenv
/etc/fish/config.fish (line 20): 
  fenv source /etc/fish/foreign-env/loginShellInit > /dev/null
  ^
from sourcing file /etc/fish/config.fish
	called on line 39 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
	called during startup
Starting home manager activation

Every new shell I start repeats these because they're part of the rc file equivalent for fish:

/etc/fish/nixos-env-preinit.fish (line 7): 
    fenv source /nix/store/xda74vl5nkcdhmhd6hgwffa949yxrh7c-set-environment
    ^
from sourcing file /etc/fish/nixos-env-preinit.fish
	called on line 16 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/share/fish/__fish_build_paths.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/share/fish/__fish_build_paths.fish
	called on line 66 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/share/fish/config.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/share/fish/config.fish
	called during startup
r/etc/fish/config.fish (line 6): 
  fenv source /etc/fish/foreign-env/shellInit > /dev/null
  ^
from sourcing file /etc/fish/config.fish
	called on line 39 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
	called during startup
/etc/fish/config.fish (line 20): 
  fenv source /etc/fish/foreign-env/loginShellInit > /dev/null
  ^
from sourcing file /etc/fish/config.fish
	called on line 39 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
	called during startup
/etc/fish/config.fish (line 37): 
  fenv source /etc/fish/foreign-env/interactiveShellInit > /dev/null
  ^
from sourcing file /etc/fish/config.fish
	called on line 39 of file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
from sourcing file /nix/store/4bi8kzwknl52xxmr89rjig9kh8wzfwpq-fish-3.1.2/etc/fish/config.fish
	called during startup
~/.config/fish/config.fish (line 8): 
  fenv source /Users/toonn/.nix-profile/etc/profile.d/hm-session-vars.sh > /dev/null
  ^
from sourcing file ~/.config/fish/config.fish
	called during startup
m ⏎                                                                             Welcome to fish, the friendly interactive shell
toonn@terra ~>

Meta

Maintainer CC

Technical details

 - system: `"x86_64-darwin"`
 - host os: `Darwin 17.7.0, macOS 10.13.6`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.10`
 - channels(toonn): `"darwin, home-manager, nixpkgs-21.03pre261714.44c443a7a60"`
 - nixpkgs: `/Users/toonn/.nix-defexpr/channels/nixpkgs`
@toonn
Copy link
Contributor Author

toonn commented Jan 7, 2021

The store path containing fenv is missing for me "/nix/store/78fgsh2lfp0ck2kfpm9xw0z7z4mydxzb-fishplugin-foreign-env-git-20200209/share/fish-foreign-env".

rycee pushed a commit to meck/home-manager that referenced this issue Jan 7, 2021
rycee pushed a commit that referenced this issue Jan 9, 2021
@rycee rycee closed this as completed in e835812 Jan 9, 2021
pacien added a commit to pacien/nixpkgs that referenced this issue Jan 10, 2021
The fish-foreign-env and the fishPlugins.foreign-env packages aren't
compatible due to changes in directory layout.

It's better to remove the alias so that the evaluation explicitly fails
instead of allowing silent runtime breakage.

GitHub: see NixOS#107834 (comment)
GitHub: see LnL7/nix-darwin#269
GitHub: see nix-community/home-manager#1701
GitHub: see nix-community/home-manager#1702
malte-v pushed a commit to malte-v/home-manager that referenced this issue Feb 24, 2021
aakropotkin pushed a commit to aakropotkin/home-manager that referenced this issue Feb 28, 2021
cab404 pushed a commit to cab404/home-manager that referenced this issue Apr 23, 2021
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

Successfully merging a pull request may close this issue.

1 participant