File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed
src/main/kotlin/dev/robotcode/robotcode4ij Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ pluginRepositoryUrl = https://github.com/robotcodedev/robotcode4ij
77pluginVersion = 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
1111pluginUntilBuild = 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
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ lsp4j = "0.21.1"
77
88# plugins
99changelog = " 2.5.0"
10- intelliJPlatForm = " 2.10.5 "
10+ intelliJPlatForm = " 2.13.1 "
1111kotlin = " 2.2.21"
1212kover = " 0.9.4"
1313
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import com.intellij.openapi.diagnostic.thisLogger
1010import com.intellij.openapi.project.Project
1111import com.intellij.openapi.project.modules
1212import com.intellij.openapi.util.Key
13- import com.jetbrains.python.sdk.pythonSdk
13+ import com.jetbrains.python.sdk.PythonSdkUtil
1414import dev.robotcode.robotcode4ij.lsp.langServerManager
1515import dev.robotcode.robotcode4ij.testing.testManger
1616import kotlinx.coroutines.CoroutineScope
@@ -39,9 +39,7 @@ class RobotCodeHelpers {
3939
4040val 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
4745enum class CheckPythonAndRobotVersionResult (val errorMessage : String? = null ) {
You can’t perform that action at this time.
0 commit comments