After Uninstalling a Prompt Output Command (ie Node), Tide Still Thinks It Exists
9p4 opened this issue · 0 comments
9p4 commented
Describe the bug
After uninstalling Node (or kubectl, or any other command that Tide uses to create the prompt), Tide throws an error trying to rebuild the prompt.
When developing using Nix or nvm, this is a fairly common occurrence.
Steps to reproduce
- Open a directory with a
package.json
file WITHOUT Node installed - Install Node in the same terminal, watch Tide get the "node" prompt
- Uninstall Node
- See error
fish: Unknown command: node
/nix/store/y09z2270pz79rsfnrwd9cs0n707iz41f-source/functions/_tide_item_node.fish (line 1):
node --version | string trim --chars=v
^~~^
in command substitution
called on line 3 of file /nix/store/y09z2270pz79rsfnrwd9cs0n707iz41f-source/functions/_tide_item_node.fish
in function '_tide_item_node'
called on line 11 of file /nix/store/y09z2270pz79rsfnrwd9cs0n707iz41f-source/functions/_tide_1_line_prompt.fish
in function '_tide_1_line_prompt'
in command substitution
/nix/store/y09z2270pz79rsfnrwd9cs0n707iz41f-source/functions/_tide_item_node.fish (line 3): Unknown command
_tide_print_item node $tide_node_icon' ' (node --version | string trim --chars=v)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
in function '_tide_item_node'
called on line 11 of file /nix/store/y09z2270pz79rsfnrwd9cs0n707iz41f-source/functions/_tide_1_line_prompt.fish
in function '_tide_1_line_prompt'
in command substitution
Environment
Output of tide bug-report
:
fish version: 3.6.1
tide version: 5.5.1
term: xterm-256color
os: NixOS 23.05 Stoat
terminal emulator: Foot
fish startup: 36.02 millis
fisher plugins: