file is not in GOPATH
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
Did you ever solve this? Im running into an identical problem and its quite confusing to say the least.
I think I didn't, ended up using ffjson
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.