Skip to content

Commit 1f88f6c

Browse files
committed
Filter unwanted classpath entries to prevent errors from dataframe
(cherry picked from 9536e9a1b3c92cf56ecc004f08ec8e1f5032ca68 in ktnb-intellij-sdk -> integrations/intellij-platform/)
1 parent a4dcff5 commit 1f88f6c

File tree

1 file changed

+3
-1
lines changed
  • integrations/intellij-platform/src/main/kotlin/org/jetbrains/kotlinx/jupyter/intellij

1 file changed

+3
-1
lines changed

integrations/intellij-platform/src/main/kotlin/org/jetbrains/kotlinx/jupyter/intellij/Helpers.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import org.jetbrains.kotlinx.jupyter.api.exceptions.ReplUnwrappedExceptionImpl
1616
import org.jetbrains.kotlinx.jupyter.api.libraries.dependencies
1717
import org.jetbrains.kotlinx.jupyter.intellij.utils.PluginRequest
1818
import org.jetbrains.kotlinx.jupyter.intellij.utils.collectJars
19+
import org.jetbrains.kotlinx.jupyter.intellij.utils.excludeUnwantedClasspathEntries
1920
import org.jetbrains.kotlinx.jupyter.intellij.utils.extract
2021
import org.jetbrains.kotlinx.jupyter.intellij.utils.resolveCompatibleVersion
2122
import java.nio.file.Path
@@ -42,6 +43,7 @@ fun ScriptTemplateWithDisplayHelpers.loadBundledPlugins(vararg pluginIds: String
4243
.mapNotNull { ide.findPluginById(it) ?: ide.findPluginByModule(it) }
4344
.flatMap { it.classpath.paths }
4445
.toSet()
46+
.excludeUnwantedClasspathEntries()
4547

4648
USE {
4749
dependencies {
@@ -77,7 +79,7 @@ fun ScriptTemplateWithDisplayHelpers.loadPlugins(
7779
if (loadClasses) {
7880
USE {
7981
dependencies {
80-
for (path in plugin.pluginPath.collectJars()) {
82+
for (path in plugin.pluginPath.collectJars().excludeUnwantedClasspathEntries()) {
8183
implementation(path.invariantSeparatorsPathString)
8284
}
8385
}

0 commit comments

Comments
 (0)