fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.31k stars 117 forks source link

Unknown function: yarp#py3 #211

Closed yefeiyu closed 3 years ago

yefeiyu commented 3 years ago

Setup

Browser: osx Editor: vim

Description

Error detected while processing /Users/****/.vim/plugged/vim-ghost/plugin/vim_compat.vim:
line 5: E117: Unknown function: yarp#py3

fregante commented 3 years ago

Sorry, that's probably related to vim or the vim plugin you're using. There's no yarp anywhere in the browser side. Try opening an issue in the vim ghost text repository.

emezeta commented 2 years ago

When opening anything in vim, it just says:

Error detected while processing /home/my_home/.vim/plugged/vim-ghost/plugin/vim_compat.vim: line 5: E117: Unknown function: yarp#py3 E15: Invalid expression: yarp#py3('ghost_wrapper')

before starting in its usual command mode.

as can be seen by looking at line 5 of

~/.vim/plugged/vim-ghost/plugin/vim_compat.vim

file, you will find the yarp there.

tecfu commented 1 year ago

The error message is because vim-ghost depends on the following nvim plugin: https://github.com/SpaceVim/nvim-yarp

To fix the issue using vim-plug:

Plug 'roxma/vim-hug-neovim-rpc'
Plug 'SpaceVim/nvim-yarp'
Plug 'raghur/vim-ghost'

See also: https://github.com/raghur/vim-ghost/issues/42