Search in sources :

Example 6 with GetArtifactsException

use of com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException in project intellij by bazelbuild.

the class BlazeApkDeployInfoProtoHelper method readDeployInfoProtoForTarget.

public AndroidDeployInfo readDeployInfoProtoForTarget(Label target, BuildResultHelper buildResultHelper, Predicate<String> pathFilter) throws GetDeployInfoException {
    ImmutableList<File> deployInfoFiles;
    try {
        deployInfoFiles = BlazeArtifact.getLocalFiles(buildResultHelper.getBuildArtifactsForTarget(target, pathFilter));
    } catch (GetArtifactsException e) {
        throw new GetDeployInfoException(e.getMessage());
    }
    if (deployInfoFiles.isEmpty()) {
        Logger log = Logger.getInstance(BlazeApkDeployInfoProtoHelper.class.getName());
        try {
            ParsedBepOutput bepOutput = buildResultHelper.getBuildOutput();
            log.warn("Local execroot: " + bepOutput.getLocalExecRoot());
            log.warn("All output artifacts:");
            for (OutputArtifact outputArtifact : bepOutput.getAllOutputArtifacts(path -> true)) {
                log.warn(outputArtifact.getKey() + " -> " + outputArtifact.getRelativePath());
            }
            log.warn("All local artifacts for " + target + ":");
            List<OutputArtifact> allBuildArtifacts = buildResultHelper.getBuildArtifactsForTarget(target, path -> true);
            List<File> allLocalFiles = BlazeArtifact.getLocalFiles(allBuildArtifacts);
            for (File file : allLocalFiles) {
                String path = file.getPath();
                log.warn(path);
                if (pathFilter.test(path)) {
                    log.warn("Note: " + path + " passes pathFilter but was not recognized!");
                }
            }
        } catch (GetArtifactsException e) {
            log.warn("Error occured when gathering logs:", e);
        }
        throw new GetDeployInfoException("No deploy info proto artifact found.  Was android_deploy_info in the output groups?");
    }
    if (deployInfoFiles.size() > 1) {
        throw new GetDeployInfoException("More than one deploy info proto artifact found: " + deployInfoFiles.stream().map(File::getPath).collect(Collectors.joining(", ", "[", "]")));
    }
    try (InputStream inputStream = new FileInputStream(deployInfoFiles.get(0))) {
        return AndroidDeployInfo.parseFrom(inputStream);
    } catch (IOException e) {
        throw new GetDeployInfoException(e.getMessage());
    }
}
Also used : FileInputStream(java.io.FileInputStream) InputStream(java.io.InputStream) ParsedBepOutput(com.google.idea.blaze.base.command.buildresult.ParsedBepOutput) IOException(java.io.IOException) Logger(com.intellij.openapi.diagnostic.Logger) FileInputStream(java.io.FileInputStream) GetArtifactsException(com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException) OutputArtifact(com.google.idea.blaze.base.command.buildresult.OutputArtifact) File(java.io.File)

Example 7 with GetArtifactsException

use of com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException in project intellij by bazelbuild.

the class CommandLineBlazeCommandRunner method run.

@Override
public BlazeBuildOutputs run(Project project, BlazeCommand.Builder blazeCommandBuilder, BuildResultHelper buildResultHelper, WorkspaceRoot workspaceRoot, BlazeContext context) {
    int retVal = ExternalTask.builder(workspaceRoot).addBlazeCommand(blazeCommandBuilder.build()).context(context).stderr(LineProcessingOutputStream.of(BlazeConsoleLineProcessorProvider.getAllStderrLineProcessors(context))).build().run();
    BuildResult buildResult = BuildResult.fromExitCode(retVal);
    if (buildResult.status == Status.FATAL_ERROR) {
        return BlazeBuildOutputs.noOutputs(buildResult);
    }
    try {
        context.output(PrintOutput.log("Build command finished. Retrieving BEP outputs..."));
        Interner<String> stringInterner = Optional.ofNullable(context.getScope(SharedStringPoolScope.class)).map(SharedStringPoolScope::getStringInterner).orElse(null);
        return BlazeBuildOutputs.fromParsedBepOutput(buildResult, buildResultHelper.getBuildOutput(stringInterner));
    } catch (GetArtifactsException e) {
        IssueOutput.error("Failed to get build outputs: " + e.getMessage()).submit(context);
        return BlazeBuildOutputs.noOutputs(buildResult);
    }
}
Also used : BuildResult(com.google.idea.blaze.base.sync.aspects.BuildResult) GetArtifactsException(com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException) SharedStringPoolScope(com.google.idea.blaze.base.scope.scopes.SharedStringPoolScope)

Example 8 with GetArtifactsException

use of com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException in project intellij by bazelbuild.

the class FastBuildServiceImpl method buildDeployJar.

private FastBuildState.BuildOutput buildDeployJar(BlazeContext context, Label label, FastBuildParameters buildParameters, BuildResultHelper resultHelper) {
    Label deployJarLabel = createDeployJarLabel(label);
    context.output(new StatusOutput("Building base deploy jar for fast builds: " + deployJarLabel.targetName()));
    BlazeInfo blazeInfo = getBlazeInfo(context, buildParameters);
    FastBuildAspectStrategy aspectStrategy = FastBuildAspectStrategy.getInstance(Blaze.getBuildSystemName(project));
    Stopwatch timer = Stopwatch.createStarted();
    BlazeCommand.Builder command = BlazeCommand.builder(buildParameters.blazeBinary(), BlazeCommandName.BUILD).addTargets(label).addTargets(deployJarLabel).addBlazeFlags(buildParameters.buildFlags()).addBlazeFlags(resultHelper.getBuildFlags());
    aspectStrategy.addAspectAndOutputGroups(command, /* additionalOutputGroups...= */
    "default");
    int exitCode = ExternalTask.builder(WorkspaceRoot.fromProject(project)).addBlazeCommand(command.build()).context(context).stderr(LineProcessingOutputStream.of(BlazeConsoleLineProcessorProvider.getAllStderrLineProcessors(context))).build().run();
    BuildResult result = BuildResult.fromExitCode(exitCode);
    context.output(FastBuildLogOutput.keyValue("deploy_jar_build_result", result.status.toString()));
    context.output(FastBuildLogOutput.milliseconds("deploy_jar_build_time_ms", timer));
    if (result.status != Status.SUCCESS) {
        throw new FastBuildTunnelException(new BlazeBuildError("Blaze failure building deploy jar"));
    }
    Predicate<String> filePredicate = file -> file.endsWith(deployJarLabel.targetName().toString()) || aspectStrategy.getAspectOutputFilePredicate().test(file);
    try {
        ImmutableList<File> deployJarArtifacts = BlazeArtifact.getLocalFiles(resultHelper.getBuildArtifactsForTarget(deployJarLabel, filePredicate));
        checkState(deployJarArtifacts.size() == 1);
        File deployJar = deployJarArtifacts.get(0);
        ImmutableList<File> ideInfoFiles = BlazeArtifact.getLocalFiles(resultHelper.getArtifactsForOutputGroup(aspectStrategy.getAspectOutputGroup(), filePredicate));
        // if targets are built with multiple configurations, just take the first one
        // TODO(brendandouglas): choose a consistent configuration instead
        ImmutableMap<Label, FastBuildBlazeData> blazeData = ideInfoFiles.stream().map(aspectStrategy::readFastBuildBlazeData).collect(toImmutableMap(FastBuildBlazeData::label, i -> i, (i, j) -> i));
        return BuildOutput.create(deployJar, blazeData, blazeInfo);
    } catch (GetArtifactsException e) {
        throw new RuntimeException("Blaze failure building deploy jar: " + e.getMessage());
    }
}
Also used : ExternalTask(com.google.idea.blaze.base.async.process.ExternalTask) BlazeInfoRunner(com.google.idea.blaze.base.command.info.BlazeInfoRunner) BuildResult(com.google.idea.blaze.base.sync.aspects.BuildResult) AndroidBlazeRules(com.google.idea.blaze.java.AndroidBlazeRules) GetArtifactsException(com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException) ProjectViewManager(com.google.idea.blaze.base.projectview.ProjectViewManager) Future(java.util.concurrent.Future) ScopedTask(com.google.idea.blaze.base.scope.ScopedTask) FileUtil(com.intellij.openapi.util.io.FileUtil) ProjectComponent(com.intellij.openapi.components.ProjectComponent) ChangedSources(com.google.idea.blaze.java.fastbuild.FastBuildChangedFilesService.ChangedSources) ImmutableSetMultimap(com.google.common.collect.ImmutableSetMultimap) BlazeConsoleLineProcessorProvider(com.google.idea.blaze.base.console.BlazeConsoleLineProcessorProvider) Blaze(com.google.idea.blaze.base.settings.Blaze) BuildOutput(com.google.idea.blaze.java.fastbuild.FastBuildState.BuildOutput) ImmutableMap(com.google.common.collect.ImmutableMap) CancellationException(java.util.concurrent.CancellationException) Predicate(java.util.function.Predicate) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) FutureUtil(com.google.idea.blaze.base.async.FutureUtil) Set(java.util.Set) BuildSystemName(com.google.idea.blaze.base.settings.BuildSystemName) BuildResultHelper(com.google.idea.blaze.base.command.buildresult.BuildResultHelper) Preconditions.checkState(com.google.common.base.Preconditions.checkState) MoreExecutors.directExecutor(com.google.common.util.concurrent.MoreExecutors.directExecutor) BlazeArtifact(com.google.idea.blaze.base.command.buildresult.BlazeArtifact) FastBuildLogOutput(com.google.idea.blaze.java.fastbuild.FastBuildLogDataScope.FastBuildLogOutput) BlazeCommandName(com.google.idea.blaze.base.command.BlazeCommandName) ImmutableMap.toImmutableMap(com.google.common.collect.ImmutableMap.toImmutableMap) List(java.util.List) LineProcessingOutputStream(com.google.idea.blaze.base.async.process.LineProcessingOutputStream) Status(com.google.idea.blaze.base.sync.aspects.BuildResult.Status) BlazeBuildError(com.google.idea.blaze.java.fastbuild.FastBuildException.BlazeBuildError) BuildResultHelperProvider(com.google.idea.blaze.base.command.buildresult.BuildResultHelperProvider) ProjectViewSet(com.google.idea.blaze.base.projectview.ProjectViewSet) WorkspaceRoot(com.google.idea.blaze.base.model.primitives.WorkspaceRoot) BlazeInfo(com.google.idea.blaze.base.command.info.BlazeInfo) BlazeContext(com.google.idea.blaze.base.scope.BlazeContext) ListenableFuture(com.google.common.util.concurrent.ListenableFuture) Stopwatch(com.google.common.base.Stopwatch) BlazeCommandRunConfigurationType(com.google.idea.blaze.base.run.BlazeCommandRunConfigurationType) StatusOutput(com.google.idea.blaze.base.scope.output.StatusOutput) Kind(com.google.idea.blaze.base.model.primitives.Kind) ImmutableList(com.google.common.collect.ImmutableList) Project(com.intellij.openapi.project.Project) Nullable(javax.annotation.Nullable) Files(java.nio.file.Files) IOException(java.io.IOException) FutureCallback(com.google.common.util.concurrent.FutureCallback) JavaBlazeRules(com.google.idea.blaze.java.JavaBlazeRules) File(java.io.File) ExecutionException(java.util.concurrent.ExecutionException) Futures(com.google.common.util.concurrent.Futures) ExecutorType(com.google.idea.blaze.base.run.ExecutorType) Label(com.google.idea.blaze.base.model.primitives.Label) BlazeFlags(com.google.idea.blaze.base.command.BlazeFlags) ProgressiveTaskWithProgressIndicator(com.google.idea.blaze.base.async.executor.ProgressiveTaskWithProgressIndicator) BlazeInvocationContext(com.google.idea.blaze.base.command.BlazeInvocationContext) BlazeCommand(com.google.idea.blaze.base.command.BlazeCommand) EventType(com.google.idea.blaze.base.scope.scopes.TimingScope.EventType) BlazeCommand(com.google.idea.blaze.base.command.BlazeCommand) Label(com.google.idea.blaze.base.model.primitives.Label) StatusOutput(com.google.idea.blaze.base.scope.output.StatusOutput) Stopwatch(com.google.common.base.Stopwatch) BlazeInfo(com.google.idea.blaze.base.command.info.BlazeInfo) BuildResult(com.google.idea.blaze.base.sync.aspects.BuildResult) GetArtifactsException(com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException) BlazeBuildError(com.google.idea.blaze.java.fastbuild.FastBuildException.BlazeBuildError) File(java.io.File)

Example 9 with GetArtifactsException

use of com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException in project intellij by bazelbuild.

the class GenerateDeployableJarTaskProvider method getDeployableJar.

/**
 * Builds a deployable jar for the given target, and returns the corresponding output artifact.
 *
 * @throws ExecutionException if the build failed, or the output artifact cannot be found.
 */
private static File getDeployableJar(RunConfiguration configuration, ExecutionEnvironment env, Label target) throws ExecutionException {
    Project project = env.getProject();
    try (BuildResultHelper buildResultHelper = BuildResultHelperProvider.createForLocalBuild(project)) {
        SaveUtil.saveAllFiles();
        ListenableFuture<BuildResult> buildOperation = runBazelBuild(project, target, buildResultHelper, BlazeInvocationContext.runConfigContext(ExecutorType.fromExecutor(env.getExecutor()), configuration.getType(), true));
        try {
            BuildResult result = buildOperation.get();
            if (result.status != BuildResult.Status.SUCCESS) {
                throw new ExecutionException("Bazel failure building deployable jar");
            }
        } catch (InterruptedException | CancellationException e) {
            buildOperation.cancel(true);
            throw new RunCanceledByUserException();
        } catch (java.util.concurrent.ExecutionException e) {
            throw new ExecutionException(e);
        }
        List<File> outputs = BlazeArtifact.getLocalFiles(buildResultHelper.getBuildArtifactsForTarget(target.withTargetName(target.targetName() + "_deploy.jar"), file -> true));
        if (outputs.isEmpty()) {
            throw new ExecutionException(String.format("Failed to find deployable jar when building %s", target));
        }
        return outputs.get(0);
    } catch (GetArtifactsException e) {
        throw new ExecutionException(String.format("Failed to find deployable jar when building %s: %s", target, e.getMessage()));
    }
}
Also used : ExternalTask(com.google.idea.blaze.base.async.process.ExternalTask) BlazeIcons(icons.BlazeIcons) ProblemsViewScope(com.google.idea.blaze.base.scope.scopes.ProblemsViewScope) BuildResult(com.google.idea.blaze.base.sync.aspects.BuildResult) GetArtifactsException(com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException) ProjectViewManager(com.google.idea.blaze.base.projectview.ProjectViewManager) RunCanceledByUserException(com.intellij.execution.RunCanceledByUserException) ScopedTask(com.google.idea.blaze.base.scope.ScopedTask) BlazeConsoleScope(com.google.idea.blaze.base.scope.scopes.BlazeConsoleScope) ExecutionEnvironment(com.intellij.execution.runners.ExecutionEnvironment) BeforeRunTaskProvider(com.intellij.execution.BeforeRunTaskProvider) SaveUtil(com.google.idea.blaze.base.util.SaveUtil) BeforeRunTask(com.intellij.execution.BeforeRunTask) BlazeConsoleLineProcessorProvider(com.google.idea.blaze.base.console.BlazeConsoleLineProcessorProvider) Blaze(com.google.idea.blaze.base.settings.Blaze) CancellationException(java.util.concurrent.CancellationException) Icon(javax.swing.Icon) BuildResultHelper(com.google.idea.blaze.base.command.buildresult.BuildResultHelper) LocalFileSystem(com.intellij.openapi.vfs.LocalFileSystem) BlazeArtifact(com.google.idea.blaze.base.command.buildresult.BlazeArtifact) BlazeCommandName(com.google.idea.blaze.base.command.BlazeCommandName) IssueOutputFilter(com.google.idea.blaze.base.issueparser.IssueOutputFilter) List(java.util.List) LineProcessingOutputStream(com.google.idea.blaze.base.async.process.LineProcessingOutputStream) BuildResultHelperProvider(com.google.idea.blaze.base.command.buildresult.BuildResultHelperProvider) ProjectViewSet(com.google.idea.blaze.base.projectview.ProjectViewSet) WorkspaceRoot(com.google.idea.blaze.base.model.primitives.WorkspaceRoot) ExecutionUtil(com.intellij.execution.runners.ExecutionUtil) ToolWindowScope(com.google.idea.blaze.base.scope.scopes.ToolWindowScope) BlazeContext(com.google.idea.blaze.base.scope.BlazeContext) RunConfiguration(com.intellij.execution.configurations.RunConfiguration) ListenableFuture(com.google.common.util.concurrent.ListenableFuture) DataContext(com.intellij.openapi.actionSystem.DataContext) ExecutionException(com.intellij.execution.ExecutionException) StatusOutput(com.google.idea.blaze.base.scope.output.StatusOutput) ImmutableList(com.google.common.collect.ImmutableList) Project(com.intellij.openapi.project.Project) Nullable(javax.annotation.Nullable) Key(com.intellij.openapi.util.Key) File(java.io.File) ExecutorType(com.google.idea.blaze.base.run.ExecutorType) Label(com.google.idea.blaze.base.model.primitives.Label) BlazeUserSettings(com.google.idea.blaze.base.settings.BlazeUserSettings) BlazeIssueParser(com.google.idea.blaze.base.issueparser.BlazeIssueParser) BlazeFlags(com.google.idea.blaze.base.command.BlazeFlags) ProgressiveTaskWithProgressIndicator(com.google.idea.blaze.base.async.executor.ProgressiveTaskWithProgressIndicator) BlazeInvocationContext(com.google.idea.blaze.base.command.BlazeInvocationContext) ApplicationConfiguration(com.intellij.execution.application.ApplicationConfiguration) BlazeCommand(com.google.idea.blaze.base.command.BlazeCommand) RunCanceledByUserException(com.intellij.execution.RunCanceledByUserException) Project(com.intellij.openapi.project.Project) BuildResult(com.google.idea.blaze.base.sync.aspects.BuildResult) BuildResultHelper(com.google.idea.blaze.base.command.buildresult.BuildResultHelper) GetArtifactsException(com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException) CancellationException(java.util.concurrent.CancellationException) ExecutionException(com.intellij.execution.ExecutionException) File(java.io.File)

Example 10 with GetArtifactsException

use of com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException in project intellij by bazelbuild.

the class BlazePyRunConfigurationRunner method getExecutableToDebug.

/**
 * Builds blaze python target and returns the output build artifact.
 *
 * @throws ExecutionException if the target cannot be debugged.
 */
private static PyExecutionInfo getExecutableToDebug(ExecutionEnvironment env) throws ExecutionException {
    BlazeCommandRunConfiguration configuration = BlazeCommandRunConfigurationRunner.getConfiguration(env);
    Project project = configuration.getProject();
    BlazeProjectData blazeProjectData = BlazeProjectDataManager.getInstance(project).getBlazeProjectData();
    if (blazeProjectData == null) {
        throw new ExecutionException("Not synced yet, please sync project");
    }
    Label target = getSingleTarget(configuration);
    ImmutableList<String> args = getPythonArgsFor(blazeProjectData, target);
    String validationError = BlazePyDebugHelper.validateDebugTarget(env.getProject(), target);
    if (validationError != null) {
        throw new WithBrowserHyperlinkExecutionException(validationError);
    }
    SaveUtil.saveAllFiles();
    // present locally
    try (BuildResultHelper buildResultHelper = BuildResultHelperProvider.createForLocalBuild(project)) {
        ListenableFuture<BuildResult> buildOperation = BlazeBeforeRunCommandHelper.runBlazeCommand(BlazeCommandName.BUILD, configuration, buildResultHelper, BlazePyDebugHelper.getAllBlazeDebugFlags(configuration.getProject(), target), ImmutableList.of(), BlazeInvocationContext.runConfigContext(ExecutorType.fromExecutor(env.getExecutor()), configuration.getType(), true), "Building debug binary");
        try {
            BuildResult result = buildOperation.get();
            if (result.status != BuildResult.Status.SUCCESS) {
                throw new ExecutionException("Blaze failure building debug binary");
            }
        } catch (InterruptedException | CancellationException e) {
            buildOperation.cancel(true);
            throw new RunCanceledByUserException();
        } catch (java.util.concurrent.ExecutionException e) {
            throw new ExecutionException(e);
        }
        List<File> candidateFiles;
        try {
            candidateFiles = BlazeArtifact.getLocalFiles(buildResultHelper.getBuildArtifactsForTarget(target, file -> true)).stream().filter(File::canExecute).collect(Collectors.toList());
        } catch (GetArtifactsException e) {
            throw new ExecutionException(String.format("Failed to get output artifacts when building %s: %s", target, e.getMessage()));
        }
        if (candidateFiles.isEmpty()) {
            throw new ExecutionException(String.format("No output artifacts found when building %s", target));
        }
        File file = findExecutable(target, candidateFiles);
        if (file == null) {
            throw new ExecutionException(String.format("More than 1 executable was produced when building %s; " + "don't know which one to debug", target));
        }
        LocalFileSystem.getInstance().refreshIoFiles(ImmutableList.of(file));
        return new PyExecutionInfo(file, args);
    }
}
Also used : BlazeCommandRunConfigurationRunner(com.google.idea.blaze.base.run.confighandler.BlazeCommandRunConfigurationRunner) BuildResult(com.google.idea.blaze.base.sync.aspects.BuildResult) GetArtifactsException(com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException) BlazeCommandRunConfiguration(com.google.idea.blaze.base.run.BlazeCommandRunConfiguration) RunProfileState(com.intellij.execution.configurations.RunProfileState) UrlFilter(com.intellij.execution.filters.UrlFilter) PyIdeInfo(com.google.idea.blaze.base.ideinfo.PyIdeInfo) BlazeProjectData(com.google.idea.blaze.base.model.BlazeProjectData) RunCanceledByUserException(com.intellij.execution.RunCanceledByUserException) ExecutionEnvironment(com.intellij.execution.runners.ExecutionEnvironment) GeneralCommandLine(com.intellij.execution.configurations.GeneralCommandLine) TargetExpression(com.google.idea.blaze.base.model.primitives.TargetExpression) SaveUtil(com.google.idea.blaze.base.util.SaveUtil) ExecutionResult(com.intellij.execution.ExecutionResult) Splitter(com.google.common.base.Splitter) PyDebugConsoleBuilder(com.jetbrains.python.console.PyDebugConsoleBuilder) TextConsoleBuilder(com.intellij.execution.filters.TextConsoleBuilder) CancellationException(java.util.concurrent.CancellationException) CommandLinePatcher(com.jetbrains.python.run.CommandLinePatcher) BuildResultHelper(com.google.idea.blaze.base.command.buildresult.BuildResultHelper) Collectors(java.util.stream.Collectors) FileOperationProvider(com.google.idea.blaze.base.io.FileOperationProvider) BlazeProjectDataManager(com.google.idea.blaze.base.sync.data.BlazeProjectDataManager) LocalFileSystem(com.intellij.openapi.vfs.LocalFileSystem) BlazeArtifact(com.google.idea.blaze.base.command.buildresult.BlazeArtifact) BlazeCommandName(com.google.idea.blaze.base.command.BlazeCommandName) PythonRunConfiguration(com.jetbrains.python.run.PythonRunConfiguration) BlazeBeforeRunCommandHelper(com.google.idea.blaze.base.run.BlazeBeforeRunCommandHelper) List(java.util.List) PySdkUtils(com.google.idea.blaze.python.PySdkUtils) BuildResultHelperProvider(com.google.idea.blaze.base.command.buildresult.BuildResultHelperProvider) ConsoleView(com.intellij.execution.ui.ConsoleView) WorkspaceRoot(com.google.idea.blaze.base.model.primitives.WorkspaceRoot) ExecutionUtil(com.intellij.execution.runners.ExecutionUtil) TargetKey(com.google.idea.blaze.base.ideinfo.TargetKey) PythonDebugLanguageConsoleView(com.jetbrains.python.console.PythonDebugLanguageConsoleView) EnvironmentVariablesData(com.intellij.execution.configuration.EnvironmentVariablesData) ListenableFuture(com.google.common.util.concurrent.ListenableFuture) ExecutionException(com.intellij.execution.ExecutionException) PythonConfigurationType(com.jetbrains.python.run.PythonConfigurationType) AtomicReference(java.util.concurrent.atomic.AtomicReference) ArrayList(java.util.ArrayList) Strings(com.google.common.base.Strings) ImmutableList(com.google.common.collect.ImmutableList) TargetIdeInfo(com.google.idea.blaze.base.ideinfo.TargetIdeInfo) Project(com.intellij.openapi.project.Project) ParametersListUtil(com.intellij.util.execution.ParametersListUtil) Nullable(javax.annotation.Nullable) ProgramRunner(com.intellij.execution.runners.ProgramRunner) Filter(com.intellij.execution.filters.Filter) StringUtil(com.intellij.openapi.util.text.StringUtil) Key(com.intellij.openapi.util.Key) Executor(com.intellij.execution.Executor) BlazeCommandRunConfigurationCommonState(com.google.idea.blaze.base.run.state.BlazeCommandRunConfigurationCommonState) ProcessGroupUtil(com.google.idea.blaze.base.util.ProcessGroupUtil) Sdk(com.intellij.openapi.projectRoots.Sdk) File(java.io.File) ProcessHandler(com.intellij.execution.process.ProcessHandler) BlazeCommandRunProfileState(com.google.idea.blaze.base.run.confighandler.BlazeCommandGenericRunConfigurationRunner.BlazeCommandRunProfileState) PythonScriptCommandLineState(com.jetbrains.python.run.PythonScriptCommandLineState) ExecutorType(com.google.idea.blaze.base.run.ExecutorType) BlazeTargetFilter(com.google.idea.blaze.base.run.filter.BlazeTargetFilter) Label(com.google.idea.blaze.base.model.primitives.Label) BlazeFlags(com.google.idea.blaze.base.command.BlazeFlags) VisibleForTesting(com.google.common.annotations.VisibleForTesting) BlazeInvocationContext(com.google.idea.blaze.base.command.BlazeInvocationContext) WithBrowserHyperlinkExecutionException(com.google.idea.blaze.base.run.WithBrowserHyperlinkExecutionException) PathUtil(com.intellij.util.PathUtil) Collections(java.util.Collections) WithBrowserHyperlinkExecutionException(com.google.idea.blaze.base.run.WithBrowserHyperlinkExecutionException) Label(com.google.idea.blaze.base.model.primitives.Label) RunCanceledByUserException(com.intellij.execution.RunCanceledByUserException) Project(com.intellij.openapi.project.Project) BuildResult(com.google.idea.blaze.base.sync.aspects.BuildResult) BuildResultHelper(com.google.idea.blaze.base.command.buildresult.BuildResultHelper) GetArtifactsException(com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException) CancellationException(java.util.concurrent.CancellationException) BlazeProjectData(com.google.idea.blaze.base.model.BlazeProjectData) ExecutionException(com.intellij.execution.ExecutionException) WithBrowserHyperlinkExecutionException(com.google.idea.blaze.base.run.WithBrowserHyperlinkExecutionException) File(java.io.File) BlazeCommandRunConfiguration(com.google.idea.blaze.base.run.BlazeCommandRunConfiguration)

Aggregations

GetArtifactsException (com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException)13 File (java.io.File)11 BuildResultHelper (com.google.idea.blaze.base.command.buildresult.BuildResultHelper)10 BuildResult (com.google.idea.blaze.base.sync.aspects.BuildResult)9 WorkspaceRoot (com.google.idea.blaze.base.model.primitives.WorkspaceRoot)8 ImmutableList (com.google.common.collect.ImmutableList)7 ListenableFuture (com.google.common.util.concurrent.ListenableFuture)7 BlazeCommandName (com.google.idea.blaze.base.command.BlazeCommandName)7 BlazeProjectData (com.google.idea.blaze.base.model.BlazeProjectData)7 CancellationException (java.util.concurrent.CancellationException)7 BlazeInvocationContext (com.google.idea.blaze.base.command.BlazeInvocationContext)6 BlazeArtifact (com.google.idea.blaze.base.command.buildresult.BlazeArtifact)6 BuildResultHelperProvider (com.google.idea.blaze.base.command.buildresult.BuildResultHelperProvider)6 Label (com.google.idea.blaze.base.model.primitives.Label)6 ExecutorType (com.google.idea.blaze.base.run.ExecutorType)6 SaveUtil (com.google.idea.blaze.base.util.SaveUtil)6 Project (com.intellij.openapi.project.Project)6 Nullable (javax.annotation.Nullable)6 BlazeCommand (com.google.idea.blaze.base.command.BlazeCommand)5 StatusOutput (com.google.idea.blaze.base.scope.output.StatusOutput)5