5
6

More than 5 years have passed since last update.

golang-goclipseの環境設定メモ

Last updated at Posted at 2015-02-07

goclipseは非常に使い易いですが、環境設定が上手く行かないと補完出来ないなどの問題がありましたので、設定時のメモを残します。

gcc,gdb環境

一部のgo のbuildには、gccが必要になります。またDebugにはgdbが必要ですが、Windows環境で上手く動かないものもあります。

win-builds http://win-builds.org/ が非常に簡単に Install出来、相性が良かったです。

win-builds1.jpg

画面から必要なものを選んで、ボタンを押すだけです。

コード補完について

gocodeを使えば上手く補完出来ます。このInstall方法は下記の通りです。

go get -u github.com/nsf/gocode

go build github.com/nsf/gocode

これで作成された gocode.exeをEclipseで指定すれば補完される様になります。

テストの実行について

EclipseのExternal Toolに登録しておくと簡単です。

Locationに go.exeを設定します。

working DirectoryにGOPATHのDirectoryを設定します。

Argument.のサンプルは下記の通りです。

test -v github.com/mikeshimura/...

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6