IDE indexing broken for go_proto_library with custom compilers #7010
Labels
awaiting-maintainer
Awaiting review from Bazel team on issues
lang: go
Go rules integration
product: GoLand
GoLand plugin
type: bug
Description of the bug:
Hi everyone, I wonder if someone could help me with this issue:
I have custom proto plugins, and my BUILD file looks like this:
where my_plugin will generate some codes in a different importpath.
bazel build
is happy (that is, if a target depends on cache_go_proto_my_plugin, it can successfully use the import path without a problem). But GoLand with bazel plugin would only indexmy.example.com/proj/cachepb
but notmy.example.com/proj/cachepb/cacheservice
.Interestingly, GoLand shows the import as green text with red wavy underline showing
unused import
. If I type cacheservice, it pops up completion entries correctly. But if you writefoo := cacheservice.SomeFunc()
, theSomeFunc()
is marked as red. You can't jump to SomeFunc andfoo.<TAB>
doesn't work.What could be the problem and how can I debug this?
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Creating an MWE is not easy. Let's see if there are things I could try before I create an MWE.
Which Intellij IDE are you using? Please provide the specific version.
#GO-243.21565.208
What programming languages and tools are you using? Please provide specific versions.
No response
What Bazel plugin version are you using?
tried latest stable version and DEV version
Have you found anything relevant by searching the web?
Nope
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: