From 730613e6607fe8d5b4d8a43082c4b100a4a5def0 Mon Sep 17 00:00:00 2001 From: Oleksandr Liemiahov Date: Fri, 6 Nov 2026 15:58:43 +0200 Subject: [PATCH] Update 263 IDE versions to the 2026.3 release IDEA, CLion and PyCharm move from EAP snapshots to 2026.3. Rider has no final release yet, so it is pinned to 2026.3 RC1. Fix compilation against the release: - `UpdateChecker` moved to the internal `intellij.platform.ide.updateChecker` module, which plugins can't depend on, so use its notification group id - the 263 Rust plugin removed `VirtualFile.toPsiFile`, so call `PsiManager.findFile`, which is what the helper did --- gradle-263.properties | 8 ++++---- .../src/org/hyperskill/academy/rust/RsCourseBuilder.kt | 4 ++-- .../academy/learning/newproject/ui/BrowseCoursesDialog.kt | 8 ++++++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/gradle-263.properties b/gradle-263.properties index 428b1e7ec..d1f8ae558 100644 --- a/gradle-263.properties +++ b/gradle-263.properties @@ -4,7 +4,7 @@ customUntilBuild=263.* # Existent IDE versions can be found in the following repos: # https://www.jetbrains.com/intellij-repository/releases/ # https://www.jetbrains.com/intellij-repository/snapshots/ -ideaVersion=IU-263-EAP-SNAPSHOT -clionVersion=CL-263-EAP-SNAPSHOT -pycharmVersion=PC-263-EAP-SNAPSHOT -riderVersion=RD-2026.3-SNAPSHOT +ideaVersion=IU-2026.3 +clionVersion=CL-2026.3 +pycharmVersion=PC-2026.3 +riderVersion=RD-2026.3-RC1-SNAPSHOT diff --git a/intellij-plugin/hs-Rust/src/org/hyperskill/academy/rust/RsCourseBuilder.kt b/intellij-plugin/hs-Rust/src/org/hyperskill/academy/rust/RsCourseBuilder.kt index 0eec09be6..e2a1e0dab 100644 --- a/intellij-plugin/hs-Rust/src/org/hyperskill/academy/rust/RsCourseBuilder.kt +++ b/intellij-plugin/hs-Rust/src/org/hyperskill/academy/rust/RsCourseBuilder.kt @@ -7,6 +7,7 @@ import com.intellij.openapi.vfs.VfsUtil import com.intellij.openapi.vfs.VirtualFile import com.intellij.psi.PsiDocumentManager import com.intellij.psi.PsiElement +import com.intellij.psi.PsiManager import com.intellij.psi.PsiParserFacade import com.intellij.psi.SmartPointerManager import com.intellij.psi.util.PsiTreeUtil @@ -34,7 +35,6 @@ import org.rust.ide.newProject.RsPackageNameValidator import org.rust.lang.RsConstants import org.rust.lang.core.psi.ext.childrenWithLeaves import org.rust.openapiext.pathAsPath -import org.rust.openapiext.toPsiFile import org.toml.lang.psi.* import org.toml.lang.psi.ext.TomlLiteralKind import org.toml.lang.psi.ext.elementType @@ -274,7 +274,7 @@ class RsCourseBuilder : EduCourseBuilder { } private val Project.workspaceManifest: TomlFile? - get() = courseDir.findChild(CargoConstants.MANIFEST_FILE)?.toPsiFile(this) as? TomlFile + get() = courseDir.findChild(CargoConstants.MANIFEST_FILE)?.let { PsiManager.getInstance(this).findFile(it) } as? TomlFile private val TomlFile.membersArray: TomlArray? get() { diff --git a/intellij-plugin/hs-core/src/org/hyperskill/academy/learning/newproject/ui/BrowseCoursesDialog.kt b/intellij-plugin/hs-core/src/org/hyperskill/academy/learning/newproject/ui/BrowseCoursesDialog.kt index 8ebba070a..72aa6f17f 100644 --- a/intellij-plugin/hs-core/src/org/hyperskill/academy/learning/newproject/ui/BrowseCoursesDialog.kt +++ b/intellij-plugin/hs-core/src/org/hyperskill/academy/learning/newproject/ui/BrowseCoursesDialog.kt @@ -8,7 +8,6 @@ import com.intellij.openapi.Disposable import com.intellij.openapi.application.ApplicationManager import com.intellij.openapi.application.ModalityState import com.intellij.openapi.application.asContextElement -import com.intellij.openapi.updateSettings.impl.UpdateChecker import com.intellij.openapi.util.Disposer import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers @@ -55,7 +54,7 @@ class BrowseCoursesDialog : OpenCourseDialogBase(), CoroutineScope { // TODO: find out a better way to be notified when plugin installation finishes .subscribe(Notifications.TOPIC, object : Notifications { override fun notify(notification: Notification) { - if (notification.groupId == UpdateChecker.getNotificationGroup().displayId) { + if (notification.groupId == IDE_AND_PLUGIN_UPDATES_NOTIFICATION_GROUP) { panel.doValidation() // TODO: investigate why it leads to IDE freeze when you install python plugin // ApplicationManager.getApplication().invokeLater { @@ -69,5 +68,10 @@ class BrowseCoursesDialog : OpenCourseDialogBase(), CoroutineScope { companion object { @NonNls const val ACTION_PLACE = "COURSE_SELECTION_DIALOG" + + // The group of `UpdateChecker.getNotificationGroup()`. The class itself can't be used: + // since 2026.3 it belongs to the internal `intellij.platform.ide.updateChecker` module, which plugins can't depend on + @NonNls + private const val IDE_AND_PLUGIN_UPDATES_NOTIFICATION_GROUP = "IDE and Plugin Updates" } }