From b55cc3a3dbb76217914406dfc45435f8432f2f46 Mon Sep 17 00:00:00 2001 From: Koudai Aono Date: Wed, 4 Sep 2024 01:57:48 +0900 Subject: [PATCH] Resolve plugin crash in PyCharm Community Edition after 2024.2 update --- gradle.properties | 4 ++-- src/com/koxudaxi/pydantic/Pydantic.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index c375cf70..de6fcff8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.koxudaxi.pydantic pluginName = Pydantic pluginRepositoryUrl = https://github.com/koxudaxi/pydantic-pycharm-plugin # SemVer format -> https://semver.org -pluginVersion = 0.4.14 +pluginVersion = 0.4.15 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 233.11799.241 @@ -12,7 +12,7 @@ pluginUntilBuild = 242.* # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType = PC -platformVersion = 242-EAP-SNAPSHOT +platformVersion = 2024.2.1 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 diff --git a/src/com/koxudaxi/pydantic/Pydantic.kt b/src/com/koxudaxi/pydantic/Pydantic.kt index d2a0bbda..7254374c 100644 --- a/src/com/koxudaxi/pydantic/Pydantic.kt +++ b/src/com/koxudaxi/pydantic/Pydantic.kt @@ -9,9 +9,9 @@ import com.intellij.psi.PsiElement import com.intellij.psi.PsiFile import com.intellij.psi.util.PsiTreeUtil import com.intellij.psi.util.QualifiedName -import com.jetbrains.extensions.ModuleBasedContextAnchor -import com.jetbrains.extensions.QNameResolveContext -import com.jetbrains.extensions.resolveToElement +import com.jetbrains.python.extensions.ModuleBasedContextAnchor +import com.jetbrains.python.extensions.QNameResolveContext +import com.jetbrains.python.extensions.resolveToElement import com.jetbrains.python.PyNames import com.jetbrains.python.codeInsight.typing.PyTypingTypeProvider import com.jetbrains.python.packaging.PyPackageManagers