diff --git a/build.gradle b/build.gradle index e4189239a..d70c48951 100644 --- a/build.gradle +++ b/build.gradle @@ -121,7 +121,7 @@ task zip(type: Zip) { } -def pycharmVersion = '2019.2' +def pycharmVersion = '2020.1' // This task is used to debug the plugin in a different IDE, in this case Pycharm // Source: https://gist.github.com/thomas15v/716ea57261855bf61d8b6131be419c26 diff --git a/src/nl/hannahsten/texifyidea/inspections/latex/LatexPackageNotInstalledInspection.kt b/src/nl/hannahsten/texifyidea/inspections/latex/LatexPackageNotInstalledInspection.kt index 55779a90f..04755cb14 100644 --- a/src/nl/hannahsten/texifyidea/inspections/latex/LatexPackageNotInstalledInspection.kt +++ b/src/nl/hannahsten/texifyidea/inspections/latex/LatexPackageNotInstalledInspection.kt @@ -12,8 +12,8 @@ import com.intellij.openapi.progress.ProgressManager import com.intellij.openapi.progress.Task import com.intellij.openapi.project.Project import com.intellij.psi.PsiFile +import com.intellij.psi.SmartPointerManager import com.intellij.psi.SmartPsiElementPointer -import com.intellij.psi.util.createSmartPointer import nl.hannahsten.texifyidea.index.LatexDefinitionIndex import nl.hannahsten.texifyidea.insight.InsightGroup import nl.hannahsten.texifyidea.inspections.TexifyInspectionBase @@ -56,7 +56,7 @@ class LatexPackageNotInstalledInspection : TexifyInspectionBase() { descriptors.add(manager.createProblemDescriptor( command, "Package is not installed", - InstallPackage(file.createSmartPointer(file.project), `package`), + InstallPackage(SmartPointerManager.getInstance(file.project).createSmartPsiElementPointer(file), `package`), ProblemHighlightType.WARNING, isOntheFly ))