oh-my-fish / plugin-foreign-env

Run foreign bash scripts and capture exported environment variables
MIT License
221 stars 15 forks source link

missing command 'fenv.parse.divider' #1

Closed jney closed 9 years ago

jney commented 9 years ago

I just installed fenv but got the following error :

fish: Unknown command 'fenv.parse.divider'
in command substitution
        called on line 26 of file ~/src/oh-my-fish/plugins/foreign-env/fenv.main.fish

in function 'fenv.main'
        called on line 26 of file ~/src/oh-my-fish/plugins/foreign-env/fenv.fish
        with parameter list 'export PYTHON=python2'

in function 'fenv'
        called on standard input
        with parameter list 'export PYTHON=python2'

fish: Unknown command 'fenv.parse.before'
in command substitution
        called on line 26 of file ~/src/oh-my-fish/plugins/foreign-env/fenv.main.fish

in function 'fenv.main'
        called on line 26 of file ~/src/oh-my-fish/plugins/foreign-env/fenv.fish
        with parameter list 'export PYTHON=python2'

in function 'fenv'
        called on standard input
        with parameter list 'export PYTHON=python2'

fish: Unknown command 'fenv.parse.after'
in command substitution
        called on line 26 of file ~/src/oh-my-fish/plugins/foreign-env/fenv.main.fish

in function 'fenv.main'
        called on line 26 of file ~/src/oh-my-fish/plugins/foreign-env/fenv.fish
        with parameter list 'export PYTHON=python2'

in function 'fenv'
        called on standard input
        with parameter list 'export PYTHON=python2'

fish: Unknown command 'fenv.parse.diff'
in command substitution
        called on line 26 of file ~/src/oh-my-fish/plugins/foreign-env/fenv.main.fish

in function 'fenv.main'
        called on line 26 of file ~/src/oh-my-fish/plugins/foreign-env/fenv.fish
        with parameter list 'export PYTHON=python2'

in function 'fenv'
        called on standard input
        with parameter list 'export PYTHON=python2'

I'm using fish 2.2.0 on OSX

bpinto commented 9 years ago

I noticed that multiple functions are defined in a single file, you might want the functions in their own individual file. This would prevent this from happening.

derekstavis commented 9 years ago

Yeah, if I call the function fenv.parse.divider then it works afterwards.

derekstavis commented 9 years ago

Can you update the plugin and try again @jney ?

derekstavis commented 9 years ago

Assuming this as fixed.

jney commented 8 years ago

@derekstavis sorry I missed your message. Will check that and make a return if any trouble. Thanks