bazel: Bazel crash when run from IntelliJ plugin
When I try to sync from the IntelliJ plugin, I get this error:
Syncing project...
Updating VCS...
Running Bazel info...
Command: /home/ulfjack/Software/bazel info --tool_tag=ijwb:IDEA:community --curses=no --color=no --noexperimental_ui --noprogress_in_terminal_title --
Server terminated abruptly (error code: 14, error message: '', log file: '/home/ulfjack/.cache/bazel/_bazel_ulfjack/2cd6dd7b44f5e35bddec3984f7fcd2e4/server/jvm.out')
Sync failed
==== TIMING REPORT ====
Sync: 387ms
BazelInfo: 367ms
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (25 by maintainers)
Commits related to this issue
- Safe-guard against broken client environments The code previously threw StringIndexOutOfBoundsException if the client env contained just a variable name with no '=' or value. Fixed #3196. Change-Id... — committed to ulfjack/bazel by deleted user 7 years ago
- Safe-guard against broken client environments The code previously threw StringIndexOutOfBoundsException if the client env contained just a variable name with no '=' or value. Fixed #3196. Change-Id... — committed to ulfjack/bazel by deleted user 7 years ago
- Safe-guard against broken client environments The code previously threw StringIndexOutOfBoundsException if the client env contained just a variable name with no '=' or value. Fixed #3196. Change-Id... — committed to ulfjack/bazel by ulfjack 7 years ago
- Workaround broken client env, issue #3196 Root cause still unknown. — committed to ulfjack/bazel by ulfjack 7 years ago
https://github.com/ulfjack/bazel/commit/ab25e22f73e72d503470d76d24430da637a26478 should work around the issue. I didn’t try it since it only happens on my other laptop, which I don’t have with me right now.
No update on the Bazel side. I have a small patch that’d technically make it work, but maybe we should file a bug against the intellij plugin instead, since it’s passing a weird environment to Bazel.