File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
base/src/com/google/idea/blaze/base/command/info
scala/src/com/google/idea/blaze/scala/libraries Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2525import com .google .idea .blaze .base .command .BlazeCommandName ;
2626import com .google .idea .blaze .base .command .buildresult .BuildResultHelper ;
2727import com .google .idea .blaze .base .scope .BlazeContext ;
28+ import com .google .idea .blaze .base .settings .Blaze ;
2829import com .google .idea .blaze .base .settings .BuildSystemName ;
2930import com .intellij .openapi .project .Project ;
3031import 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 (
Original file line number Diff line number Diff line change 1313import com .google .idea .blaze .scala .sync .model .BlazeScalaSyncData ;
1414import com .google .idea .common .experiments .BoolExperiment ;
1515import com .google .idea .common .util .Transactions ;
16- import com .google .idea .sdkcompat .general .BaseSdkCompat ;
1716import com .google .idea .sdkcompat .java .AttachSourcesProviderAdapter ;
1817import com .intellij .openapi .application .ApplicationManager ;
1918import com .intellij .openapi .application .TransactionGuard ;
2827import java .util .Collection ;
2928import java .util .List ;
3029import javax .annotation .Nullable ;
30+ import com .intellij .openapi .externalSystem .service .project .IdeModifiableModelsProviderImpl ;
3131
3232public 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 )
You can’t perform that action at this time.
0 commit comments