GoClipse / goclipse

Eclipse IDE for the Go programming language:
http://goclipse.github.io/
Eclipse Public License 1.0
841 stars 290 forks source link

Error while installing guru.exe #225

Closed venkysmv85 closed 7 years ago

venkysmv85 commented 7 years ago

Hi ,

Query 1: When i go to eclipse --> window --> preferences --> guru --> Click Download. It throws error: image "go: missing Git command. See https://golang.org/s/gogetcmd package golang.org/x/tools/cmd/guru: exec: "git": executable file not found in %PATH%"

I opened GIT Bash and run command : go get -u golang.org/x/tools/cmd/guru Following is what i get: image

Query 2: Request to verify my project directory: image

Even though the src or pkg is not present i could see .exe getting generated for my project. Am i building the project correctly?

bruno-medeiros commented 7 years ago

Query 1: You need git in your %PATH%. The GIT Bash probably adds the git path to %PATH% on it's own, but that only works for the Git Bash. Open the Windows shell (cmd.exe) and try to call git there. If it's not found, that's the problem, you need to add it to %PATH%, otherwise calling go from Eclipse won't find it either.

Query 2: It is not necessary that a Go project has a src and pkg dir. The Eclispe project can also be located in the src dir of the GOPATH, which seems to be the case above. Seems like project Shiva is located inside C:\Users\vsangepu\Documents\GoProjects\src, and C:\Users\vsangepu\Documents\GoProjects\ is the GOPATH