From 92ebf13eaf3a5fcc664bb02070e609ff4d883ac9 Mon Sep 17 00:00:00 2001 From: Anton Bragin Date: Fri, 1 Jul 2022 18:13:45 +0200 Subject: [PATCH] DS-3620 Don't send remote Jupyter server modules on the start of Python console GitOrigin-RevId: b0035e80011300b34331282b21cfe2f06645d8d8 --- python/src/com/jetbrains/python/run/PythonScripts.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/run/PythonScripts.kt b/python/src/com/jetbrains/python/run/PythonScripts.kt index 6e68d615689d..18e835eb5840 100644 --- a/python/src/com/jetbrains/python/run/PythonScripts.kt +++ b/python/src/com/jetbrains/python/run/PythonScripts.kt @@ -226,7 +226,11 @@ fun TargetEnvironmentRequest.ensureProjectAndModuleDirsAreOnTarget(project: Proj } for(module in modules) { ModuleRootManager.getInstance(module).contentRoots.forEach { - addPathToVolume(it.toNioPath()) + try { + addPathToVolume(it.toNioPath()) + } + catch (_: UnsupportedOperationException) { + } } } project.basePath?.let { addPathToVolume(Path.of(it)) }