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

Most upvoted comments

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.