vim go 环境搭建问题

1,693 阅读1分钟

cannot find gopls

1, 问题复现

2,解决办法
1、建立路径:mkdir -p $GOPATH/github.com/Go-zh/

2、 在$GOPATH/github.com/Go-zh/ 目录下执行git clone github.com/Go-zh/tools…
3、执行安装
go install github.com/Go-zh/tools/cmd/guru
go install github.com/Go-zh/tools/cmd/gopls

fillstruct not found.

1, 问题复现

2,解决办法
go get -u github.com/davidrjenni/reftools/cmd/fillstruct

motion not found, errcheck not found, impl not found, golangci-lint not found

1, 问题复现

2, 解决办法

  • 2.1 go get github.com/fatih/motion

ycm 安装

1,问题

2, 解决办法

Plugin 'ycm-core/YouCompleteMe'

1, 问题

However, it failed, and the error information shows as follow. CMake Error: The source directory "/home/rivalak/.cache/vimfiles/repos/github.com/Valloric/YouCompleteMe/third_party/ycmd/third_party/cregex" does not appear to contain CMakeLists.txt.

2, 解决办法

#Delete "cregex" folder
rm -fr YouCompleteMe/third_party/ycmd/third_party/cregex
#Execute below command in "YouCompleteMe/third_party/ycmd/third_party" directory
git submodule update --init --recursive