-
Notifications
You must be signed in to change notification settings - Fork 312
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
Protobuf Bug Breaks Plugin, Fixable By Update #2265
Comments
Had the same issue, the same fix worked for me, thanks! |
Glad it was handy :) Uploading my (working) Android Studio build for anyone else who might find it handy. |
Update: Because I needed this change--and some others--to make the the plugin run, I made a fork. While we're waiting for an official response, check it out if you want this fix and others. https://github.com/hedronvision/bazelbuild-intellij (Would be delighted to submit a PR, but I think I shouldn't until I hear from maintainers, based on the contribution guidelines. But you can see the diff corresponding to the change in the commit auto-linked above.) |
Note that this is tagged as |
Confirming I also ran into this today, and @cpsauer's fix worked (thank you so much for the plugin update Chris--this saved me a considerable amount of time). If the team would like a project to repro this on, feel free to use https://github.com/oppia/oppia-android. Trying to 'partially syncing' the top-level '/model' folder (which contains our protos) will consistently hit this issue. Note: don't try to build the whole project since it requires not-yet released Bazel changes to properly build, but that shouldn't affect reproing this issue. |
Issue #2265 described a bug which broke the plugin due to an already fixed protobuf issue protocolbuffers/protobuf#7827 the issue author created a fork in https://github.com/hedronvision/bazelbuild-intellij. PiperOrigin-RevId: 363130962
Thanks for raising this @cpsauer and thanks for providing the example @BenHenning, we are currently looking into testing and integrating the suggested changes upstream. |
Issue #2265 described a bug which broke the plugin due to an already fixed protobuf issue protocolbuffers/protobuf#7827 the issue author created a fork in https://github.com/hedronvision/bazelbuild-intellij. PiperOrigin-RevId: 363130962
Issue #2265 described a bug which broke the plugin due to an already fixed protobuf issue protocolbuffers/protobuf#7827 the issue author created a fork in https://github.com/hedronvision/bazelbuild-intellij. PiperOrigin-RevId: 363188004
@vsiva can you help direct this to the right person? |
Closing this issue as #2437 was merged and the fix will be available in the next release. Thanks everyone for the help here! |
Hello Bazel Intelij Plugin Folks,
TL;DR: Sync ingestion broken. Fixable by updating rules_proto to commit 40298556293ae502c66579620a7ce867d5f57311 in WORKSPACE.
More detail: I'd come back the the plugin after a little hiatus (and Android Studio, OS, bazel, plugin, etc. updates) and found something odd indeed. Syncing seemed to finish...but fail, but rendering the plugin broken. Sad times. Console looked like
Weird, okay. So I launched Android Studio from the command line to look at some logs. Many many instances like the following:
Aha! So some strange internal issue to the protobuf dependency. Looks like this one, which lists at least protobufs between 3.12.2 and 3.14 (exclusive) as problematic (this plugin is currently pointing to something even older, 3.10).
Anyway, sure enough, if we change the version of rules_proto in the plugin WORKSPACE to a version out of that range, the issue goes away. rules_proto doesn't support 3.14 yet, so in my test, I moved it up to the last working version it did support (commit 40298556293ae502c66579620a7ce867d5f57311 which is protobuf 3.11.3). Huzzah!
My setup details: Latest stable releases of macOS, bazel, plugin, and Android Studio. Android Studio logs list "JDK: 1.8.0_242-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o".
Thanks for the work you do!
Chris
(ex-Googler)
The text was updated successfully, but these errors were encountered: