-
-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proper way to import go_proto_library gRPC generated service Go file in VSCode? #3228
Comments
Have you set up VSCode to use the LSP plugin? https://github.com/bazelbuild/rules_go/wiki/Editor-setup#visual-studio-code |
Thanks for this. I think I may be running into a similar issue as this. Right now, my
Yet I get a notification like
even after adding |
Have the same issue. I'm using emacs, this is my dir-locals.el:
|
What version of rules_go are you using?
v0.32.0
What version of gazelle are you using?
v0.25.0
What version of Bazel are you using?
Build label: 5.2.0
Does this issue reproduce with the latest releases of all the above?
Yes
What did you do?
Successfully used rules_go to build a gRPC service:
However, I'm not sure how to import the resulting file. The generated file is nested under
bazel_bin
and under the original proto file path. Just importing this generated file based on the path specified in theoption go_package
field in the proto doesn't seem to work. For example, if I specifyoption go_package = github.com/test/path/to/proto
, and if I then try to doimport github.com/test/path/to/proto
in my Go file after building the proto, this does not build.What did you expect to see?
A successful import.
What did you see instead?
Is there a way around this? Is there a better IDE to use?
The text was updated successfully, but these errors were encountered: