could not find 'gopls
安装go tools
安装以上后用vim打开go代码,使用函数跳转时会出现:
E718: Funcref required
vim-go: could not find 'gopls'. Run :GoInstallBinaries to fix it
或者说guru等不存在的错误,这时按照提示在vim中执行GoInstallBinaries会出现:
Error downloading github.com/zmb3/gogetdoc
Error downloading github.com/stamblerre/gocode
...
下载不成功,原因是这里网站连不上,需要找资源下载来手动安装。
比较重要的模块是:guru/gopls 在使用时主要是提示这两个模块,因此先安装。
guru
1、建立路径:mkdir -p $GOPATH/github.com/Go-zh/
2、 在$GOPATH/github.com/Go-zh/ 目录下执行git clone https://github.com/Go-zh/tools.git
3、执行安装:
go install github.com/Go-zh/tools/cmd/guru
#以下模块也包含了,顺带一起安装
go install github.com/Go-zh/tools/cmd/goimports
go install github.com/Go-zh/tools/cmd/gorename
gopls
执行安装:
go install github.com/Go-zh/tools/cmd/gopls
---------------------
作者:yefengzhichen
来源:CSDN
原文:https://blog.csdn.net/yefengzhichen/article/details/90050921
版权声明:本文为博主原创文章,转载请附上博文链接!
相关文章
- Mysql远程连接报错:SQL Error (1130): Host '192.168.61.128' is not allowed to connect to this MySQL server
- Spring mvc-异常javax.servlet.ServletException: Could not resolve view with name 'xxx' in servlet with name 'spring'
- symfony2已有数据表导入实体时报错 Doctrine does not support reverse engineering from tables that don't have a primary key
- Type 'Insus.NET.PictureObject' in Assembly 'App_Code, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
- javax.el.PropertyNotFoundException: Property 'studentAge' not found on type com.hs.model.StudentModel
- [SrpingBoot]初步搭建springboot应用,报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedd[转载]
- fastjson反序列化LocalDateTime失败的问题java.time.format.DateTimeParseException: Text '2019-05-24 13:52:11' could not be parsed at index 10
- Spring data jpa hibernate:查询异常java.sql.SQLException: Column '列名' not found
- Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
- Failed to apply plugin [id 'com.android.application'] 和 Could not find com.android.tools.build:gradle:2.XX的最正确的解决方法
- fatal: repository 'xxxx' not found
- mac下执行 appium-doctor 出现 “Could not detect Mac OS X Version from sw_vers output: '10.12 '” 解决方法
- 使用springboot整合mybatis时出现Could not autowire. No beans of 'UserMapper' type found的解决办法
- spring boot多模块引用,bean注入问题:A component required a bean of type 'utils.JwtTokenUtil' that could not b
- Do not access Object.prototype method 'hasOwnProperty' from target object.eslintno-prototype-builtins
- 1 of ORDER BY clause is not in SELECT list, references column 'xxx' which is not in SELECT list
- CRITICAL **: Couldn't acquire global lock, snapshots will not be consistent: Access denied
- 重启服务器“AH00558: apache2: Could not reliably determine the server's fully qualified domain name”问题的解决
- Python错误TypeError: write() argument must be str, not bytes
- vscode command 'c_cpp.configuration edit json' not found 解决办法
- springcloud config配置采坑 Could not resolve placeholder 'from' in value "${from}报错,巨坑!
- 我的Android进阶之旅------>解决Error: specified for property 'mergedManifest' does not exist.