Public bug reported:

I just installed the powerline apt package on Ubuntu 17.10 and followed
the documentation to install it for the Fish prompt, then I got the
error below after trying to launch Fish. The {repository_root} of this
ubuntu package I am using in my config. file is "/usr/share", which is
where the powerline bindings for Fish are located at. Powerline version
is 2.5-1.1.

/usr/share/powerline/bindings/fish/powerline-setup.fish (line 35): function: 
Illegal function name '--on-variable'
                function --on-variable fish_key_bindings 
_powerline_set_default_mode
                        if test x$fish_key_bindings != xfish_vi_key_bindings
                ^
in function “powerline-setup”
        called on line 14 of file ~/.config/fish/config.fish

from sourcing file ~/.config/fish/config.fish
        called during startup

/usr/share/powerline/bindings/fish/powerline-setup.fish (line 42): function: 
Illegal function name '--on-variable'
                function --on-variable POWERLINE_COMMAND _powerline_update
                        set -l addargs "--last-exit-code=\$status"
                ^
in function “powerline-setup”
        called on line 14 of file ~/.config/fish/config.fish

from sourcing file ~/.config/fish/config.fish
        called during startup

/usr/share/powerline/bindings/fish/powerline-setup.fish (line 78): 
                _powerline_set_default_mode
                ^
in function “powerline-setup”
        called on line 14 of file ~/.config/fish/config.fish

from sourcing file ~/.config/fish/config.fish
        called during startup

/usr/share/powerline/bindings/fish/powerline-setup.fish (line 79): 
                _powerline_update
                ^
in function “powerline-setup”
        called on line 14 of file ~/.config/fish/config.fish

from sourcing file ~/.config/fish/config.fish
        called during startup

I already filed a bug
(https://github.com/powerline/powerline/issues/1850) in the powerline
project page and they told me to report a bug for this ubuntu package.
Can you fix this error?

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: powerline 2.5-1.1
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct 23 12:53:51 2017
InstallationDate: Installed on 2017-10-22 (1 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
SourcePackage: powerline
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: powerline (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful third-party-packages

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1726441

Title:
  powerline version from repository is not compatible with fish version

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/powerline/+bug/1726441/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to