Intellij idea 从Bazel插件获取IntelliJ中的BlazeInfoException

Intellij idea 从Bazel插件获取IntelliJ中的BlazeInfoException,intellij-idea,bazel,Intellij Idea,Bazel,我刚刚安装了IntelliJ的Bazel插件,我一直遇到这样的异常: com.google.idea.blaze.base.command.info.BlazeInfoException: blaze info failed with exit code: -1 java.util.concurrent.ExecutionException: com.google.idea.blaze.base.command.info.BlazeInfoException: blaze info faile

我刚刚安装了IntelliJ的Bazel插件,我一直遇到这样的异常:

com.google.idea.blaze.base.command.info.BlazeInfoException: blaze info failed with exit code: -1
java.util.concurrent.ExecutionException: 
com.google.idea.blaze.base.command.info.BlazeInfoException: blaze info failed with exit code: -1
  at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:502)
  [...]
  at com.google.idea.blaze.base.async.FutureUtil$Builder.lambda$run$0(FutureUtil.java:93)
  [...]
  at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:170)
  at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
  at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
  at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
  at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
  at com.google.idea.blaze.base.async.executor.BlazeExecutor$3.call(BlazeExecutor.java:108)
  at com.google.idea.blaze.base.async.executor.BlazeExecutor$3.call(BlazeExecutor.java:105)
  [...]
Caused by: com.google.idea.blaze.base.command.info.BlazeInfoException: blaze info failed with exit code: -1
  at com.google.idea.blaze.base.command.info.BlazeInfoRunnerImpl.runBlazeInfo(BlazeInfoRunnerImpl.java:105)
  at com.google.idea.blaze.base.command.info.BlazeInfoRunnerImpl.lambda$runBlazeInfo$2(BlazeInfoRunnerImpl.java:75)
  ... 6 more    
编辑:我在MacOS El Capitan 10.11.6、Java JRE 1.8.0上使用IntelliJ 2017.3,Bazel版本为0.8.1-homebrew(插件版本为2017.11.20.0.4)。当我尝试设置一个新的Java项目(一个只有一个类和一个包含类似Java_二进制文件的构建文件的Hello World)时,会出现这个错误,当我单击Bazel sync按钮时,它就会出现

Bazel控制台中的输出为:

Syncing project: Sync (incremental)...
Updating VCS...
Running Bazel info...
Command:  info --tool_tag=ijwb:IDEA:community --curses=no --color=no --experimental_ui=no --progress_in_terminal_title=no --

==== TIMING REPORT ====

Sync: 47ms
BazelInfo: 4ms

Timing summary:

BlazeInvocation: 4ms
Sync failed
Command: git diff --name-status --no-renames abc8913346474d12ad45226503438848011929ae

有人知道它是什么和/或如何修复吗?谢谢

多亏了你,我找到了答案


IntelliJ>Settings>Other Settings>Bazel Settings中,“Bazel二进制位置”字段为空。对于我的案例,我输入了/usr/local/bin/bazel,现在它可以工作了

多亏了你,我找到了答案


IntelliJ>Settings>Other Settings>Bazel Settings中,“Bazel二进制位置”字段为空。对于我的案例,我输入了/usr/local/bin/bazel,现在它可以工作了

您使用的是什么操作系统,以及哪个Bazel版本?你在IntelliJ中做了什么来看到这个错误?嗨,László,哦,是的,对不起,我在帖子中添加了这些细节。谢谢您使用的是什么操作系统,以及哪个Bazel版本?你在IntelliJ中做了什么来看到这个错误?嗨,László,哦,是的,对不起,我在帖子中添加了这些细节。谢谢