安装YouCompleteMe时 install.py脚本报错?
大家好
我安装vim的插件YouCompleteMe时,进入目录.vim/bundle/YouCompleteMe执行:
python3 install.py --ts-completer --java-completer --verbose
最后得到如下错误:
running egg_infowriting src/watchdog.egg-info/PKG-INFO
writing dependency_links to src/watchdog.egg-info/dependency_links.txt
writing entry points to src/watchdog.egg-info/entry_points.txt
writing requirements to src/watchdog.egg-info/requires.txt
writing top-level names to src/watchdog.egg-info/top_level.txt
reading manifest file 'src/watchdog.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.h' under directory 'src'
writing manifest file 'src/watchdog.egg-info/SOURCES.txt'
Cached tar file does not match checksum. Removing...
Downloading jdt.ls from https://download.eclipse.org/jdtls/milestones/1.9.0...
Extracting jdt.ls to /my40/deepzhc/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository...
Traceback (most recent call last):
File "/my40/deepzhc/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 1256, in <module>
Main()
File "/my40/deepzhc/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 1237, in Main
EnableJavaCompleter( args )
File "/my40/deepzhc/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 1032, in EnableJavaCompleter
with tarfile.open( file_name ) as package_tar:
File "/usr/lib/python3.7/tarfile.py", line 1580, in open
raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
这是其中的build.py
补充 jdt.ls各版本的下载列表
我知道原因了,用Py脚本下载那个压缩包,到目录查看只有22KB,所以我用浏览器下载后放进cache目录。重新执行install.py,但是仍然会download覆盖我手动下载的完整压缩包。怎么办呢?
回答:
最后发现是1019行,编码校验时不匹配,所以把我手动下载的文件给删了,我把这个操作注释掉,成功安装。但是,编码校验会不符合是否有重大安全隐患呢?
顺便问一下,ycm是否有Php的补全插件?谢谢!
以上是 安装YouCompleteMe时 install.py脚本报错? 的全部内容, 来源链接: utcz.com/p/938633.html