I'm using IntelliJ with the go plugin to write my application.

go version go1.7beta2 darwin/amd64
OSX El Capitan 10.11.5
2016.1.3
/usr/local/go
/Users/ufk/projects/go
go

but when I try to Run the program using Intellij, which also compiles it, i get the following error:

/usr/local/go/pkg/tool/darwin_amd64/link: cannot open file /usr/local/go/pkg/darwin_amd64/github.com/codegangsta/negroni.a: open /usr/local/go/pkg/darwin_amd64/github.com/codegangsta/negroni.a: no such file or directory
$GOPATH

so what am i missing ?

thanks

update

Hi :)

I noticed something new... I have 2 go projects, one of them is the JSON Api Server, and the other is for the web server. The project that is causing issues is the Api Server. now, the web server also uses and imports negroni, but the problem occurs only on the Api Server Project.

so I decided to go wild and delete the .idea and iml file from the Api Server, reopen it with intellij, and see what happens... welp, what happens is that now it complains about a different module.

/usr/local/go/pkg/tool/darwin_amd64/link: cannot open file /usr/local/go/pkg/darwin_amd64/github.com/jingweno/negroni-gorelic.a: open /usr/local/go/pkg/darwin_amd64/github.com/jingweno/negroni-gorelic.a: no such file or directory

the thing is.. that my web server project also uses negroni-gorelic and things are fine!

I tried downgrading go from 1.7beta2 to 1.6.2, deleting the content of the modules ($GOPATH/pkg and in src directory github.com and golang.org) then I got all the modules again.. tried to compile with intellij and the results are the same.

so... hope this helps to further investigate the issue.