Skip to content

Commit 9215942

Browse files
committed
chore(intellj): update IntelliJ platform version and dependencies
1 parent 74e92b0 commit 9215942

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

intellij-client/build.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ dependencies {
4848

4949
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
5050
intellijPlatform {
51-
create(
52-
providers.gradleProperty("platformType"),
53-
providers.gradleProperty("platformVersion"),
54-
useInstaller = false,
55-
)
51+
pycharm(providers.gradleProperty("platformVersion"))
5652

5753
// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
5854
bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') })
@@ -220,7 +216,7 @@ tasks.withType<KotlinCompile> {
220216
@Suppress("unused") val runIdeIntellijIdeaC by intellijPlatformTesting.runIde.registering {
221217
type = IntelliJPlatformType.IntellijIdeaCommunity
222218
plugins {
223-
plugin("PythonCore:251.23774.435")
219+
plugin("PythonCore:261.22158.182")
224220
}
225221

226222
prepareSandboxTask(prepareSandboxConfig)

intellij-client/gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ pluginRepositoryUrl = https://github.com/robotcodedev/robotcode4ij
77
pluginVersion = 2.4.0
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
10-
pluginSinceBuild = 251
10+
pluginSinceBuild = 253
1111
pluginUntilBuild = 271.*
1212

1313

1414
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
15-
platformType = PC
16-
platformVersion = 2025.1
15+
# platformVersion = 261.21849.34
16+
platformVersion = 2025.3
1717

1818
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1919
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP

intellij-client/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lsp4j = "0.21.1"
77

88
# plugins
99
changelog = "2.5.0"
10-
intelliJPlatForm = "2.10.5"
10+
intelliJPlatForm = "2.13.1"
1111
kotlin = "2.2.21"
1212
kover = "0.9.4"
1313

intellij-client/src/main/kotlin/dev/robotcode/robotcode4ij/RobotCodeHelpers.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import com.intellij.openapi.diagnostic.thisLogger
1010
import com.intellij.openapi.project.Project
1111
import com.intellij.openapi.project.modules
1212
import com.intellij.openapi.util.Key
13-
import com.jetbrains.python.sdk.pythonSdk
13+
import com.jetbrains.python.sdk.PythonSdkUtil
1414
import dev.robotcode.robotcode4ij.lsp.langServerManager
1515
import dev.robotcode.robotcode4ij.testing.testManger
1616
import kotlinx.coroutines.CoroutineScope
@@ -39,9 +39,7 @@ class RobotCodeHelpers {
3939

4040
val Project.robotPythonSdk: com.intellij.openapi.projectRoots.Sdk?
4141
get() {
42-
return this.pythonSdk ?: this.projectFile?.let {
43-
this.modules.firstNotNullOfOrNull { it.pythonSdk }
44-
}
42+
return this.modules.firstNotNullOfOrNull { PythonSdkUtil.findPythonSdk(it) }
4543
}
4644

4745
enum class CheckPythonAndRobotVersionResult(val errorMessage: String? = null) {

0 commit comments

Comments
 (0)