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 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记