Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.intellij.openapi.util.io.FileUtil;
import java.io.File;
import java.io.IOException;
import java.nio.file.NoSuchFileException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Objects;
Expand Down Expand Up @@ -98,6 +99,8 @@ public File decode(ArtifactLocation artifactLocation) {
if (pathResolver.getWorkspacePath(realFile) != null) {
return realFile;
}
} catch (NoSuchFileException ignore) {
// this is ok as it might not exist
} catch (IOException ioException) {
LOG.warn("Failed to resolve real path for " + artifactLocation.getExecutionRootRelativePath() +
"\n" + ioException.getClass().getSimpleName() + ": " + ioException.getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.intellij.openapi.diagnostic.Logger;
import java.io.File;
import java.io.IOException;
import java.nio.file.NoSuchFileException;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.VisibleForTesting;

Expand Down Expand Up @@ -131,6 +132,8 @@ public ImmutableList<File> resolveToExternalWorkspaceWithSymbolicLinkResolution(
if (workspacePathResolver.getWorkspacePath(realPath) != null) {
return ImmutableList.of(realPath);
}
} catch (NoSuchFileException ignore) {
// this is ok as it might not exist
} catch (IOException ioException) {
LOG.warn("Failed to resolve real path for " + pathInExecutionRoot, ioException);
}
Expand Down