Skip to content

Commit 1e1d1c8

Browse files
mildagleWixBuildServer
authored andcommitted
Fix build after changes
Fix rebase
1 parent 925b15b commit 1e1d1c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

base/src/com/google/idea/blaze/base/command/info/BlazeInfoRunnerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.google.idea.blaze.base.command.BlazeCommandName;
2626
import com.google.idea.blaze.base.command.buildresult.BuildResultHelper;
2727
import com.google.idea.blaze.base.scope.BlazeContext;
28+
import com.google.idea.blaze.base.settings.Blaze;
2829
import com.google.idea.blaze.base.settings.BuildSystemName;
2930
import com.intellij.openapi.project.Project;
3031
import java.io.InputStream;
@@ -39,10 +40,10 @@ public ListenableFuture<byte[]> runBlazeInfoGetBytes(
3940
BlazeContext context,
4041
List<String> blazeFlags,
4142
String key) {
43+
String binaryPath = Blaze.getBuildSystemProvider(project).getBinaryPath(project);
4244
boolean isExecutable = ExternalTask.builder().args("which", binaryPath).build().run() == 0;
4345
if (!isExecutable) {
4446
BazelBinaryNotFoundNotification.show(binaryPath);
45-
throw new BlazeInfoException(-1, binaryPath + " cannot be executed");
4647
}
4748
return BlazeExecutor.getInstance()
4849
.submit(

scala/src/com/google/idea/blaze/scala/libraries/BlazeScalaAttachSourceProvider.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.google.idea.blaze.scala.sync.model.BlazeScalaSyncData;
1414
import com.google.idea.common.experiments.BoolExperiment;
1515
import com.google.idea.common.util.Transactions;
16-
import com.google.idea.sdkcompat.general.BaseSdkCompat;
1716
import com.google.idea.sdkcompat.java.AttachSourcesProviderAdapter;
1817
import com.intellij.openapi.application.ApplicationManager;
1918
import com.intellij.openapi.application.TransactionGuard;
@@ -28,6 +27,7 @@
2827
import java.util.Collection;
2928
import java.util.List;
3029
import javax.annotation.Nullable;
30+
import com.intellij.openapi.externalSystem.service.project.IdeModifiableModelsProviderImpl;
3131

3232
public class BlazeScalaAttachSourceProvider extends AttachSourcesProviderAdapter {
3333

@@ -141,8 +141,7 @@ private static void attachSources(
141141
ApplicationManager.getApplication()
142142
.runWriteAction(
143143
() -> {
144-
IdeModifiableModelsProvider modelsProvider =
145-
BaseSdkCompat.createModifiableModelsProvider(project);
144+
IdeModifiableModelsProvider modelsProvider = new IdeModifiableModelsProviderImpl(project);
146145
for (BlazeLibrary blazeLibrary : librariesToAttachSourceTo) {
147146
// Make sure we don't do it twice
148147
if (AttachedSourceJarManager.getInstance(project)

0 commit comments

Comments
 (0)