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

Issue with create new terminal and Fish shell #13610

Closed
nikitavoloboev opened this issue Nov 12, 2022 · 1 comment
Closed

Issue with create new terminal and Fish shell #13610

nikitavoloboev opened this issue Nov 12, 2022 · 1 comment

Comments

@nikitavoloboev
Copy link

Getting this error whenever I create new terminal in a new project created with cargo new.

image

~/.cargo/env (line 4): 'case' builtin not inside of switch block
case ":${PATH}:" in
^
from sourcing file ~/.cargo/env
        called on line 11 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
        called during startup
source: Error while reading file '/Users/nikiv/.cargo/env'
~/src/cli/ingestor main*
base ❯ 

I found this online: rust-lang/rustup#478 (comment)

However the solution of adding fish_add_path $HOME/.cargo/bin to fish config and opening new terminal didn't work. Still get same error.

@nikitavoloboev
Copy link
Author

Okay was my issue, should not have put source "$HOME/.cargo/env" in my fish config.

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

No branches or pull requests

1 participant