Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
896 stars 89 forks source link

IDE Reports and error and reference autocomplete does not work. #1910

Closed ASchidler closed 3 years ago

ASchidler commented 3 years ago

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

PyCharm 2021.1.1 (build PY-211.7142.13)

Operating System

Linux 5.4.0-73-generic (amd64)

TeXiFy IDEA version

0.7.6

Description

The error occurs some short time after starting the IDE. It may be connected to the reference autocomplete not working anymore. I cannot pinpoint when the problem started, as I didn't work on any LateX document for two months and in between, there was an IDE update as well as a new texify-idea version.

Stacktrace

com.intellij.diagnostic.PluginException: Cannot load class nl.hannahsten.texifyidea.inspections.latex.codestyle.LatexFigureNotReferencedInspection$RemoveFigureFix (
  error: com/intellij/codeInsight/daemon/impl/quickfix/SafeDeleteFix,
  classLoader=PluginClassLoader(plugin=PluginDescriptor(name=TeXiFy IDEA, id=nl.rubensten.texifyidea, descriptorPath=plugin.xml, path=~/.local/share/JetBrains/PyCharm2021.1/TeXiFy-IDEA, version=0.7.6, package=null), packagePrefix=null, instanceId=92, state=active)
)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:346)
    at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:233)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:212)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    at nl.hannahsten.texifyidea.inspections.latex.codestyle.LatexFigureNotReferencedInspection.createDescriptor(LatexFigureNotReferencedInspection.kt:62)
    at nl.hannahsten.texifyidea.inspections.latex.codestyle.LatexFigureNotReferencedInspection.inspectFile(LatexFigureNotReferencedInspection.kt:39)
    at nl.hannahsten.texifyidea.inspections.TexifyInspectionBase.checkFile(TexifyInspectionBase.kt:137)
    at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:145)
    at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:60)
    at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:65)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitRestElementsAndCleanup$7(LocalInspectionsPass.java:346)
    at com.intellij.util.AstLoadingFilter.lambda$toComputable$2(AstLoadingFilter.java:174)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:132)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:121)
    at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:111)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitRestElementsAndCleanup$10(LocalInspectionsPass.java:346)
    at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:136)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1096)
    at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:92)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:688)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:634)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:64)
    at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:104)
    at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:83)
    at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:167)
    at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:178)
    at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:83)
    at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoClassDefFoundError: com/intellij/codeInsight/daemon/impl/quickfix/SafeDeleteFix
    at java.base/java.lang.ClassLoader.defineClass2(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1109)
    at com.intellij.util.lang.UrlClassLoader.consumeClassData(UrlClassLoader.java:276)
    at com.intellij.util.lang.ZipResourceFile.findClass(ZipResourceFile.java:119)
    at com.intellij.util.lang.JarLoader.findClass(JarLoader.java:55)
    at com.intellij.util.lang.ClassPath.findClassInLoader(ClassPath.java:224)
    at com.intellij.util.lang.ClassPath.findClass(ClassPath.java:183)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:338)
    ... 32 more
Caused by: java.lang.ClassNotFoundException: com.intellij.codeInsight.daemon.impl.quickfix.SafeDeleteFix PluginClassLoader(plugin=PluginDescriptor(name=TeXiFy IDEA, id=nl.rubensten.texifyidea, descriptorPath=plugin.xml, path=~/.local/share/JetBrains/PyCharm2021.1/TeXiFy-IDEA, version=0.7.6, package=null), packagePrefix=null, instanceId=92, state=active)
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:215)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 40 more
PHPirates commented 3 years ago

It should not be related. If you want us to help with fixing your reference completion, you need to give us more details about the problem.

The exception is a duplicate of #1877, will be fixed in 0.7.7 to be released June 1st.