Skip to content

Commit

Permalink
CLion 2020.1 compatibility
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 378666515
  • Loading branch information
Googler authored and copybara-github committed Jun 10, 2021
1 parent 6daf992 commit 16d6867
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 60 deletions.
11 changes: 5 additions & 6 deletions clwb/src/com/google/idea/blaze/clwb/run/BlazeCidrLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
import com.google.idea.blaze.clwb.CidrGoogleTestUtilAdapter;
import com.google.idea.blaze.clwb.ToolchainUtils;
import com.google.idea.blaze.cpp.CppBlazeRules;
import com.google.idea.sdkcompat.clion.CidrConsoleBuilderAdapter;
import com.google.idea.sdkcompat.clion.CidrLauncherAdapter;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.configuration.EnvironmentVariablesData;
import com.intellij.execution.configurations.CommandLineState;
Expand All @@ -65,6 +63,7 @@
import com.jetbrains.cidr.cpp.execution.CLionRunParameters;
import com.jetbrains.cidr.cpp.toolchains.CPPDebugger.Kind;
import com.jetbrains.cidr.execution.CidrConsoleBuilder;
import com.jetbrains.cidr.execution.CidrLauncher;
import com.jetbrains.cidr.execution.TrivialInstaller;
import com.jetbrains.cidr.execution.debugger.CidrDebugProcess;
import com.jetbrains.cidr.execution.debugger.CidrLocalDebugProcess;
Expand All @@ -81,7 +80,7 @@
* Handles running/debugging cc_test and cc_binary targets in CLion. Sets up gdb when debugging, and
* uses the Google Test infrastructure for presenting test results.
*/
public final class BlazeCidrLauncher extends CidrLauncherAdapter {
public final class BlazeCidrLauncher extends CidrLauncher {
private final Project project;
private final BlazeCommandRunConfiguration configuration;
private final BlazeCidrRunConfigState handlerState;
Expand Down Expand Up @@ -322,7 +321,7 @@ private CidrConsoleBuilder createConsoleBuilder(@Nullable BlazeTestUiSession tes
// hook up the test tree UI
return new GoogleTestConsoleBuilder(configuration.getProject(), testUiSession);
}
return new CidrConsoleBuilderAdapter(configuration.getProject());
return new CidrConsoleBuilder(configuration.getProject(), null, null);
}

private ImmutableList<String> getGdbStartupCommands(File workspaceRootDirectory) {
Expand All @@ -340,11 +339,11 @@ private boolean useTestUi() {
return BlazeCommandName.TEST.equals(handlerState.getCommandState().getCommand());
}

private final class GoogleTestConsoleBuilder extends CidrConsoleBuilderAdapter {
private final class GoogleTestConsoleBuilder extends CidrConsoleBuilder {
@Nullable private final BlazeTestUiSession testUiSession;

private GoogleTestConsoleBuilder(Project project, @Nullable BlazeTestUiSession testUiSession) {
super(project);
super(project, null, null);
this.testUiSession = testUiSession;
addFilter(new BlazeCidrTestOutputFilter(project));
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 16d6867

Please sign in to comment.