dorkahemp972157683 2019-01-03 10:37
浏览 79
已采纳

如何使自动完成(GoCode)与我的所有导入配合使用?

After installing the GoCode autocompletion daemon in GoClipse, it works for the more general imports (fmt and such), but not for more specific ones.

I do believe my GoClipse is properly set up, since it works with some imports already. The specific import I am trying to make it work for is "github.com/hyperledger/fabric/core/chaincode/shim".

There must be something I have to do to make those imports work, but I haven't figured it out yet. I can always code without autocompletion, but eh.

Does anyone know how to make it work? Thanks a bunch.

Note: I'd post images to illustrate my problem, but well: "You need at least 10 reputation to post images".

Edit : It also doesn't autocomplete local variables. Is it related? Or is it working as intended?

Screenshots:

enter image description here

enter image description here

enter image description here

  • 写回答

1条回答 默认 最新

  • drygauost253590142 2019-01-09 15:07
    关注

    Alright, So I digged and found the solution to my problem. I basically needed to locally install the import on my machine.

    This is easily done with the go get command

    For example, for the specific problem I had, I wanted the import "github.com/hyperledger/fabric/core/chaincode/shim" to autocomplete. I ran the command

    go get "github.com/hyperledger/fabric/core/chaincode/shim"

    Restarted GoClipse and it works perfectly.

    Hope it helps someone else.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 怎样才能让鼠标沿着线条的中心线轨迹移动
  • ¥60 用visual studio编写程序,利用间接平差求解水准网
  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?