载入项目之后,代码区域出现一条竖线,如何去掉呢?
File -> Settings->Editor->General->Appearance勾选掉红圈处选择并提交更改
调试代码,载入调试速度很慢
File -> Settings->Build, Execution, Deployment ->Debugger勾选掉红圈处选择并提交更改
调试时提示Version of Delve is too old for this version of Go
证明dlv插件版本太老,需要在终端输入
go get -u github.com/go-delve/delve/cmd/dlv
如果无法下载,则去https://github.com/go-delve/delve地址git clone源码
git clone https://github.com/go-delve/delve.git
再在终端上执行
go install github.com/go-delve/delve/cmd/dlv
执行后在$GOPATH/go/bin下查看有没有dlv.exe生成,若生成成功,在Goland上打开
Help->Edit Custom Properties在打开的文件里输入
dlv.path=你的GOPATH路径/go/bin/dlv.exe