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

[HELP WANTED] error when called the ' leaderf#Rg#NormalModelFilter ' #1063

Closed
xm-tech opened this issue Apr 16, 2024 · 7 comments
Closed

[HELP WANTED] error when called the ' leaderf#Rg#NormalModelFilter ' #1063

xm-tech opened this issue Apr 16, 2024 · 7 comments

Comments

@xm-tech
Copy link

xm-tech commented Apr 16, 2024

处理 function leaderf#Gtags#NormalModeFilter 时发生错误:
第 1 行:
E859: 无法将返回的 Python 对象转换为 Vim 值, as below:

截屏2024-04-16 16 52 57

the error occurred at the function leaderf#Rg#NormalModeFilter
so i try to update the function as below:

截屏2024-04-16 17 23 54
which displays:
截屏2024-04-16 17 25 11

why winid and key here is not defined

i displayed the value of variables: g:Lf_PyEval && g:Lf_Py
:echo g:Lf_PyEval output : py3eval

while
:echo g:Lf_Py output: E121: 未定义的变量: g:Lf_Py

my env:

vim: 9.0.2121
os: Linux raspberrypi 6.5.0-1013-raspi #16-Ubuntu SMP PREEMPT Thu Mar 14 15:47:52 UTC 2024 armv7l armv7l armv7l GNU/Linux
python: Python 3.11.6

@xm-tech xm-tech changed the title error on called the ' leaderf#Rg#NormalModelFilter ' [HELP] error when called the ' leaderf#Rg#NormalModelFilter ' Apr 16, 2024
@Yggdroot
Copy link
Owner

If you want to access the function arguments, you should use a:xxx, here you should use a:winid.

@xm-tech
Copy link
Author

xm-tech commented Apr 16, 2024

If you want to access the function arguments, you should use a:xxx, here you should use a:winid.

thanks for reply @Yggdroot 🤝,
i just changed the function like this:

截屏2024-04-16 18 51 47

it plays well, no error . but if i remove the comment as below:

截屏2024-04-16 18 55 38

error occurred, and the vim exited along with the error :

截屏2024-04-16 18 57 20

@xm-tech xm-tech changed the title [HELP] error when called the ' leaderf#Rg#NormalModelFilter ' [HELP WANTED] error when called the ' leaderf#Rg#NormalModelFilter ' Apr 16, 2024
@Yggdroot
Copy link
Owner

How to reproduce?

@xm-tech
Copy link
Author

xm-tech commented Apr 17, 2024

How to reproduce?

i think it is hard to reproduce the error, as there are too many env deps,

but still , hope u can try to help me to figure out the problem. below is my install script :

https://github.com/xm-tech/dotfiles-ubuntu.git

make install

@xm-tech
Copy link
Author

xm-tech commented Apr 17, 2024

@Yggdroot
chinese ? 在上海 ?

如果是的话,我可以过来拜访😄

@Yggdroot
Copy link
Owner

没错,中国人。

@Yggdroot
Copy link
Owner

How to reproduce?

i think it is hard to reproduce the error, as there are too many env deps,

but still , hope u can try to help me to figure out the problem. below is my install script :

https://github.com/xm-tech/dotfiles-ubuntu.git

make install

具体我不知道你是在什么情况下出现的这个错误。

试试 如下:
vimrc

set encoding=utf-8
syntax enable
set nocompatible


"{{{
filetype on  
"}}}

set runtimepath^=~/.vim/plugged/LeaderF

vim -u vimrc

然后执行你要执行的命令。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants