diff --git a/base/src/com/google/idea/blaze/base/command/buildresult/OutputArtifactParser.java b/base/src/com/google/idea/blaze/base/command/buildresult/OutputArtifactParser.java index c1ad45f8f0c..9fb5e58d814 100644 --- a/base/src/com/google/idea/blaze/base/command/buildresult/OutputArtifactParser.java +++ b/base/src/com/google/idea/blaze/base/command/buildresult/OutputArtifactParser.java @@ -75,6 +75,8 @@ default String getBlazeOutRelativePath( BuildEventStreamProtos.File file, String configurationMnemonic) { List pathPrefixList = file.getPathPrefixList(); if (pathPrefixList.size() <= 1) { + if (file.getUri().contains("/external/")) + return file.getUri().substring(file.getUri().indexOf("/external/")); // fall back to using the configuration mnemonic // TODO(brendandouglas): remove this backwards compatibility code after September 2019 return configurationMnemonic + "/" + file.getName();