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

bug: fish shell prints realpath: Unknown option '--no-symlinks' #1782

Open
SeriousBug opened this issue Sep 21, 2024 · 0 comments
Open

bug: fish shell prints realpath: Unknown option '--no-symlinks' #1782

SeriousBug opened this issue Sep 21, 2024 · 0 comments
Labels

Comments

@SeriousBug
Copy link

SeriousBug commented Sep 21, 2024

Describe the Bug

asdf's initialization script throws an error when using fish.

~/.asdf/asdf.fish (line 1): 
builtin realpath --no-symlinks (dirname (status filename))
^
in command substitution
        called on line 2 of file ~/.asdf/asdf.fish
from sourcing file ~/.asdf/asdf.fish
        called on line 1 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
        called during startup

(Type 'help realpath' for related documentation)

This is with versions:

codespace:/home/codespace> ~/.asdf/bin/asdf --version
v0.14.1-f00f759
codespace:/home/codespace> fish --version
fish, version 3.1.0

Steps to Reproduce

  • Install asdf, following the instructions on the website to source ~/.asdf/asdf.fish inside ~/.config/fish/config.fish
  • Don't set ASDF_DIR globally
  • Start a new shell.

Expected Behaviour

The error should not be thrown.

Actual Behaviour

The error is thrown.

Environment

I couldn't grab this with fish shell, where I'm getting the error, because the initialization of asdf fails.

OS:
Linux codespaces-ebfa50 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

BASH VERSION:
5.0.17(1)-release

ASDF VERSION:
v0.14.1-f00f759

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/codespace/.asdf
ASDF_DIR=/home/codespace/.asdf
ASDF_CONFIG_FILE=/home/codespace/.asdfrc

ASDF INSTALLED PLUGINS:
air                          https:/pdemagny/asdf-air main 4c5826e
bat                          https://gitlab.com/wt0f/asdf-bat.git master 64022b1
bottom                       https:/carbonteq/asdf-btm.git master fd8a55a
bun                          https:/cometkim/asdf-bun.git main f383312
delta                        https:/andweeb/asdf-delta.git master 501318b
dust                         https:/looztra/asdf-dust.git master 11bdb8a
eza                          https:/lwiechec/asdf-eza.git master 11f578d
fd                           https://gitlab.com/wt0f/asdf-fd.git master 17d56e0
golang                       https:/asdf-community/asdf-golang.git master f80bd84
jq                           https:/lsanwick/asdf-jq.git master addae51
lazygit                      https:/nklmilojevic/asdf-lazygit.git main 78e04f1
neovim                       https:/richin13/asdf-neovim.git master d6118ad
nodejs                       https:/asdf-vm/asdf-nodejs.git master c36e6f0
pnpm                         https:/jonathanmorley/asdf-pnpm.git master 184f8cb
ripgrep                      https://gitlab.com/wt0f/asdf-ripgrep.git master e836665
xh                           https:/NeoHsu/asdf-xh master fb8d3e7

asdf plugins affected (if relevant)

No response

@SeriousBug SeriousBug added the bug label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant