errors with auto completion
Version: deno 2.0.0
steps to reproduce:
curl -fsSL https://deno.land/install.sh | sh
when having bash selected there's a warning
but after restarting my console i get this error
~/.deno/env (line 4): “case” builtin not inside of switch block
case ":${PATH}:" in
^~~^
from sourcing file ~/.deno/env
called on line 8 of file ~/.profile
from sourcing file ~/.profile
called on line 23 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
called during startup
.: Error while reading file '/home/givemefox/.deno/env'
this is the env file
#!/bin/sh
# deno shell setup; adapted from rustup
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
*:"/home/givemefox/.deno/bin":*)
;;
*)
# Prepending path in case a system-installed deno executable needs to be overridden
export PATH="/home/givemefox/.deno/bin:$PATH"
;;
esac
Which shell are you running? Are you running fish by chance and installed the bash bindings? You can check which shell you are running with this command:
echo $0
Which shell are you running? Are you running
fishby chance and installed thebashbindings? You can check which shell you are running with this command:echo $0
Are you on macOS? So far everything points to the fish shell being used, which is not compatible with all syntaxes of bash. So having installed the bash completions are probably causing this.
im using arch linux this command does work when i switch to bash tho
Are you on macOS? So far everything points to the
fishshell being used, which is not compatible with all syntaxes of bash. So having installed thebashcompletions are probably causing this.
Are you on macOS? So far everything points to the
fishshell being used, which is not compatible with all syntaxes of bash. So having installed thebashcompletions are probably causing this.
and even when only checking the fish completions the same issue is still present
and when i change the .profile line file from $HOME/.deno/env to env.fish it works
just add the line to the fish config instead of the .profile file
What does your config.fish look like? From the looks of it you may be sourcing .profile (which is written in sh/bash) from your config.fish.
it seems to be working fine now!