我最近将ripgrep添加到了我的vim 插件列表中,安装后,每当我加载 vim 时,我就开始收到此错误消息:
Error detected while processing /Users/my_macbook/.vim/plugged/vim-ripgrep/plugin/vim-ripgrep.vim:
line 149: E1208: -complete used without -nargs
Press ENTER or type command to continue
Run Code Online (Sandbox Code Playgroud)
打开有问题的文件并查看第 148-149 行可以发现:
148 command! -nargs=* -complete=file Rg :call s:Rg(<q-args>)
149 command! -complete=file RgRoot :call s:RgShowRoot()
Run Code Online (Sandbox Code Playgroud)
我真的超出了我的深度,特别是考虑到这个错误是通过简单安装插件生成的;我对底层文件 ( vim-ripgrep.vim) 进行了 0 处更改。
有没有人在安装 ripgrep 后遇到类似的长期错误,如果是的话,你是如何解决的?
这是我第一次在 Stack Overflow 上发帖,因此对于任何不经意的畏缩,我深表歉意。
我正在尝试在运行 macOS Mojave 版本 10.14.6 的 Macbook Pro(2013 年末)上安装 twint。
当我运行命令时:
pip3 install twint==2.1.4 fire tqdm
Run Code Online (Sandbox Code Playgroud)
一切似乎都很好……直到我的机器进入 pycares 部分。
那时,我收到了这个令人难以置信的长错误消息:
Building wheel for pycares (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xn/8s6c14ws39v8x7gn13dpjj680000gp/T/pip-install-rsphcstm/pycares_e62e234778824ea1834667778e68b769/setup.py'"'"'; __file__='"'"'/private/var/folders/xn/8s6c14ws39v8x7gn13dpjj680000gp/T/pip-install-rsphcstm/pycares_e62e234778824ea1834667778e68b769/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/xn/8s6c14ws39v8x7gn13dpjj680000gp/T/pip-wheel-nw_89tid
cwd: /private/var/folders/xn/8s6c14ws39v8x7gn13dpjj680000gp/T/pip-install-rsphcstm/pycares_e62e234778824ea1834667778e68b769/
Complete output (105 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.9
creating build/lib.macosx-10.14-x86_64-3.9/pycares
copying …Run Code Online (Sandbox Code Playgroud)