clutcher / bh

Issue tracker for Better Highlights Intellij IDEA plugin
6 stars 0 forks source link

com.intellij.psi.PsiInvalidElementAccessException #128

Closed CrazyBoy49z closed 11 hours ago

CrazyBoy49z commented 1 week ago
com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.tree.PsiCommentImpl #PHP  because: different providers: com.jetbrains.php.lang.PhpFileViewProvider{vFile=file:///*/config/lazy/admin.php, vFileId=968980, content=VirtualFileContent{size=1699}, eventSystemEnabled=true}(58f8335b); com.jetbrains.php.lang.PhpFileViewProvider{vFile=file:///*/config/lazy/admin.php, vFileId=968980, content=VirtualFileContent{size=1699}, eventSystemEnabled=true}(57bcab21)
invalidated at: see attachment; com.intellij.psi.impl.source.tree.PsiCommentImpl:line comment / com.intellij.psi.impl.source.tree.CompositeElement:PsiElement(Non Lazy Group statement) / com.intellij.psi.impl.source.tree.FileElement:php.FILE
    at com.intellij.psi.impl.source.tree.LeafPsiElement.invalid(LeafPsiElement.java:88)
    at com.intellij.psi.impl.source.tree.LeafPsiElement.getContainingFile(LeafPsiElement.java:72)
    at com.clutcher.ai.a(SourceFile:103)
    at com.clutcher.ai.a(SourceFile:50)
    at com.clutcher.al.a(SourceFile:63)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
    at com.intellij.openapi.application.impl.RwLockHolder.runIntendedWriteActionOnCurrentThread(RwLockHolder.kt:204)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:830)
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:419)
    at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:138)
    at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:129)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWithImplicitRead(ApplicationImpl.java:1152)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:81)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:123)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:43)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
    at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:699)
    at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$12(IdeEventQueue.kt:593)
    at com.intellij.openapi.application.impl.RwLockHolder.runWithoutImplicitRead(RwLockHolder.kt:105)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:593)
    at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:77)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:362)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:361)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:843)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:361)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:356)
    at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1022)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
    at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1022)
    at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:356)
    at com.intellij.openapi.application.impl.RwLockHolder.runIntendedWriteActionOnCurrentThread(RwLockHolder.kt:209)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:830)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:398)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
PhpStorm 2024.1.4
Build #PS-241.18034.69, built on June 21, 2024
Licensed to Yurij Finiv
Subscription is active until July 17, 2024.
Runtime version: 17.0.11+1-b1207.24 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.7.5
GC: G1 Young Generation, G1 Old Generation
Memory: 4048M
Cores: 8
Metal Rendering is ON
Registry:
  ide.windowSystem.autoShowProcessPopup=true
  ide.balloon.shadow.size=0
  debugger.new.tool.window.layout=true
  run.processes.with.pty=TRUE
  ide.experimental.ui=true
  ide.images.show.chessboard=true
Non-Bundled Plugins:
  LiveTemplatePreview (0.3)
  com.mzyupc.a-redis (1.0.0)
  com.intellij.plugins.mnemonicKeymap (2023.1.0)
  cc.duduhuo.git-conflict (2.0.0)
  com.rmondjone.jsontotypescript (2023.1.2)
  com.guohanlin.JsonToAnyLanguage (2023.1.6)
  lermitage.intellij.extratci (1.37.1)
  dev.turingcomplete.intellijdevelopertoolsplugins (4.3.0)
  com.bottlerocket.plugin.jsonfilter.JsonFilter (0.0.6)
  com.intellij-sentry (1.0.6-241)
  de.netnexus.camelcaseplugin (3.0.12)
  io.aesy.regex101 (0.2)
  com.ls.akong.mysql_proxy (1.0.12)
  com.github.warningimhack3r.npmupdatedependencies (2.3.3)
  com.obroom.plugin.toolset (2024.3.1)
  org.jetbrains.settingsRepository (241.15989.9)
  com.andrey4623.rainbowcsv (2.0.2)
  com.github.catppuccin.jetbrains (3.3.1)
  DBN (3.4.4179.0)
  com.materkey.codepoints (1.0.2)
  com.mroche.JsonHelper (1.3.2)
  org.OverEngineer.InlineProblems (0.5.3)
  com.github.obiscr.exceleditor (2024.3.1-222.233)
  com.godwin.json.parser (1.7.1)
  com.intellij.properties (241.14494.150)
  com.jetbrains.naming-is-hard (1.5.0)
  com.guohanlin.JsonToPhp (2023.1.2)
  com.wix.sasslint (1.1.2)
  bundled-phpstorm-help (241.18034.69)
  String Manipulation (9.14.1)
  dev.meanmail.plugin.nginx-intellij-plugin (2024.3)
  krasa.CpuUsageIndicator (1.18.0-IJ2023)
  intellij-clock (2.0.0)
  Key Promoter X (2024.1.0)
  top.ctong.plugin.toogleboolean (0.0.1)
  indent-rainbow.indent-rainbow (2.2.0)
  com.wakatime.intellij.plugin (14.4.0)
  W3Validators (241.14494.140)
  com.chriscarini.jetbrains.jetbrains-auto-power-saver (4.0.0-EAP)
  lermitage.intellij.battery.status (2.4)
  com.dsoftware.ghtoolbar (2024.2.3)
  com.intellij.ml.llm (241.18034.12)
  com.github.copilot (1.5.14.6010-nightly)
  com.anivia.aTools (1.1.4)
  com.intellij.queryComplexity (241.14494.150)
  com.jetbrains.plugins.jslint (202.3)
  spy-js (241.14494.140)
  com.github.inxilpro.intellijalpine (v0.4.2)
  com.github.blarc.ai-commits-intellij-plugin (2.0.0)
  de.sist.gitlab (2.15.4)
  mobi.hsz.idea.gitignore (4.5.3)
  com.github.blarc.gitlab-template-lint-plugin (1.14.1)
  com.firsttimeinforever.intellij.pdf.viewer.intellij-pdf-viewer (0.15.0)
  de.shyim.ideaphpstantoolbox (0.0.7)
  QuickRequest (2024.6.13)
  izhangzhihao.rainbow.brackets.lite (1.1.0)
  com.kalessil.phpStorm.phpInspectionsEA (5.0.0.0)
  com.funivan.idea.phpClean (2023.12.17)
  com.clutcher.comments_highlighter (2024.1.28)
  cn.yiiguxing.plugin.translate (3.6.2)
  ru.adelf.idea.dotenv (2024.1)
  com.mallowigi.colorHighlighter (18.0.0)
  io.snyk.snyk-intellij-plugin (2.8.7)
  me.artspb.idea.eval.plugin (0.4)
  net.king2500.plugins.PhpAdvancedAutoComplete (1.1.0)
  de.espend.idea.php.toolbox (6.2.0)
  de.espend.idea.php.annotation (10.0.0)
  fr.adrienbrault.idea.symfony2plugin (2024.1.274)
  net.rentalhost.plugins.php.hammer (0.30.0)
  dev.nybroe.collector (0.5.0)
  com.laravel_idea.plugin (8.1.4.241)
  com.mallowigi (97.0.0)
  zielu.gittoolbox (500.2.10+233)
  com.intellij.microservices.ui (241.18034.17)
clutcher commented 1 week ago

@CrazyBoy49z How often do you see that stack trace? And does custom highlighting work after that exception?

CrazyBoy49z commented 1 week ago

@CrazyBoy49z How often do you see that stack trace? And does custom highlighting work after that exception?

A dozen times a day. As if it works, I didn't pay much attention

clutcher commented 1 week ago

@CrazyBoy49z Superb, that corresponds to my theory. Would be fixed in next 1 or 2 releases.

clutcher commented 1 day ago

@CrazyBoy49z Can you check if the exception is still present on version 2024.1.30 ?

CrazyBoy49z commented 11 hours ago

@clutcher No more problems