easyjson icon indicating copy to clipboard operation
easyjson copied to clipboard

file is not in GOPATH

Open andrey-tikhov opened this issue 5 years ago • 3 comments

Not the first one. Not the last one I believe.

Here's what I'm trying to execute. andrey-C02WT10GHV2T:easyjsonply andrey$ easyjson -all experiments.go Error parsing experiments.go: file '/Users/andrey/go/src/easyjsonply/experiments.go' is not in GOPATH '/Users/andrey/go/src/easyjsonply'

here's the output of printenv | grep GOPATH andrey-C02WT10GHV2T:easyjsonply andrey$ printenv | grep GOPATH _INTELLIJ_FORCE_SET_GOPATH=/Users/andrey/go/src/easyjsonply GOPATH=/Users/andrey/go/src/easyjsonply

Struggling to understand what's going on :/

Everything is executed inside the Goland terminal

andrey-tikhov avatar Dec 29 '20 10:12 andrey-tikhov

Did you ever solve this? Im running into an identical problem and its quite confusing to say the least.

MartB avatar Apr 27 '21 08:04 MartB

I think I didn't, ended up using ffjson

andrey-tikhov avatar Apr 27 '21 10:04 andrey-tikhov

Heh, i "fixed" it by getting rid of the repository and cloning it again, thus removing all the vendor / go mod stuff. Might be some slight incompatibilty.

MartB avatar Apr 27 '21 13:04 MartB