2019-01-03 10:37 阅读 74


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 "".

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?


enter image description here

enter image description here

enter image description here

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    drygauost253590142 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 "" to autocomplete. I ran the command

    go get ""

    Restarted GoClipse and it works perfectly.

    Hope it helps someone else.

    点赞 评论 复制链接分享