Creates a ProblemViewScope to avoid deadlock
@@ -22,6 +22,7 @@ import com.google.idea.blaze.base.scope.BlazeContext;
import com.google.idea.blaze.base.scope.BlazeScope;
import com.google.idea.blaze.base.scope.Scope;
import com.google.idea.blaze.base.scope.ScopedOperation;
+import com.google.idea.blaze.base.scope.scopes.ProblemsViewScope;
import com.google.idea.blaze.base.scope.scopes.ProgressIndicatorScope;
import com.google.idea.blaze.base.scope.scopes.ToolWindowScope;
import com.google.idea.blaze.base.settings.BlazeUserSettings.FocusBehavior;
@@ -125,7 +126,10 @@ public class QuerySyncManager {
.showSummaryOutput()
.setPopupBehavior(FocusBehavior.ALWAYS)
.build();
- context.push(new ProgressIndicatorScope(indicator)).push(scope);
+ context
+ .push(new ProgressIndicatorScope(indicator))
+ .push(scope)
+ .push(new ProblemsViewScope(project, FocusBehavior.ALWAYS));
operation.execute(context);
// TODO cancel on exceptions
BlazeSyncStatus.getInstance(project)
