From 471222f0baac22ec23ccc854c8e2fe1d9100decd Mon Sep 17 00:00:00 2001 From: Nikita Kudrin Date: Tue, 4 Feb 2025 12:22:07 +0200 Subject: [PATCH] [starter eel] AT-1851 Support both WSL and Docker eel file system registration GitOrigin-RevId: 2d0c5e849863a665c672c31491b967204bedaea2 --- .../com/intellij/execution/ijent/nio/IjentNioFsRegistry.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/execution/ijent/nio/IjentNioFsRegistry.kt b/platform/platform-impl/src/com/intellij/execution/ijent/nio/IjentNioFsRegistry.kt index 60f8b3771f51..dfa23ae1dcc8 100644 --- a/platform/platform-impl/src/com/intellij/execution/ijent/nio/IjentNioFsRegistry.kt +++ b/platform/platform-impl/src/com/intellij/execution/ijent/nio/IjentNioFsRegistry.kt @@ -43,7 +43,10 @@ fun CoroutineScope.registerIjentNioFs(ijent: IjentApi, root: String, internalNam service.register(root, ijent.descriptor, internalName, true, false) { underlyingProvider, previousFs -> // Compute a path before custom fs registration. Usually should represent a non-existent local path - val localPath = Path(root).also { check(!it.exists()) } + val localPath = Path(root).also { + // on WSL this path exists + //check(!it.exists()) + } IjentEphemeralRootAwareFileSystemProvider( root = localPath,