You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steve Powell edited this page Jun 19, 2014
·
1 revision
INTELLIJ support on Mac OSX
Install Community Edition of INTELLIJ, and install the Golang.org plugin.
Then set up GOROOT and GOPATH in the /etc/launchd.conf file (which may need to be created by root) so as to get
INTELLIJ to see these vars when started. These should be set to the same as they are in the host
system. The Mac can be rebooted or issue
egrep -v '^\s*#' /etc/launchd.conf | launchctl
to make the new settings "take" straight away. Then restart INTELLIJ.
Create a new Go project for INTELLIJ, do not create a new src folder, but point to the src folder for libcontainer:
~/dev/go/github.com/docker/libcontainer
(for me).
There is more to do: the source files for the Go project need to be set:
go to the module/project settings, and navigate to the SDK settings
clear the stuff in the ClassPath section -- this is not needed
make sure the $GOROOT/src/pkg (in full, not using the env var, I don't think) is present