-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 autocomplete stopped working on 8.1.4 #2567
Comments
Happy to review a PR. |
Oh no. I'm sorry causing that one. The problem is it depends how the generated completion scripts gets loaded. # does indeed not work without ;
$ eval (env _FOO_BAR_COMPLETE=fish_source foo-bar)
# works
$ eval "$(env _FOO_BAR_COMPLETE=fish_source foo-bar)"
# also works
$ _FOO_BAR_COMPLETE=fish_source foo-bar | source If you look in the fish repo, the |
If all three work with semicolon, then it's probably best to use that as well as update the docs to use the most idiomatic approach. |
I have updated my PR to also include the update for docs to follow the fish repo recommendation. |
Fish autocomplete stopped working in 8.1.4. By using git bisect I was able to identify fist commit that caused the issue - bcd3faa
I believe the issue was caused by removing line endings with ';'. Adding them back resolves issue for me.
When executing the
eval (env _FOO_BAR_COMPLETE=fish_source foo-bar)
I getfish: Expected end of the statement, but found end of the input
Environment:
The text was updated successfully, but these errors were encountered: