Closed Ghilteras closed 3 years ago
Hard to help without more info about your project setup. Add the parent of the github.com
directory as a project source path, or add it to the list of import parths.
@jvolkman the syntax I pasted works, it's just the plugin that does not resolve the external links, I think it's a bug because it should be able to resolve them. I'm not sure what you mean by project setup, what specific info are you looking for? Also how do I add the parent github.com
directory as a source path? There is no github directory, it's an external import
The protobuf compiler doesn't support downloading remote files, so they must be on your machine somewhere. github.com
is the name of a directory. Maybe it's under $HOME/go/src
or something? Anyway, protoc
knows where it is and the protobuf plugin also needs to know. The easiest way is to probably just add a path under settings -> languages -> protocol buffers following instructions here.
@jvolkman the path where the package lives is in $home/go/src
but adding file:///Users/apantano/go/pkg/mod/github.com/gogo/protobuf@v1.3.2/gogoproto
to settings -> languages -> protocol buffers does not solve the issue.
This is on the latest goland stable 2021.1.3
I get a
cannot resolve import
error here ^