Thanks a lot for making this tooling, it's really useful to me.
The Jetbrains Templ plugin (0.0.15) sometimes cause IntelliJ to become unresponsive when the plugin crashes. This always seem to happen randomly as I'm typing in a .templ file. It happens about once every hour, frequently enough to be annoying.
Everytime this happens I have to restart the IDE entirely, as I can no longer interact with Templ files, even if I restart the templ server.
Any idea what might be causing this?
java.lang.ArrayIndexOutOfBoundsException: Index -32768 out of bounds for length 40457
at com.intellij.psi.tree.IElementType.<init>(IElementType.java:116)
at com.intellij.psi.tree.IElementType.<init>(IElementType.java:93)
at com.intellij.psi.tree.ILazyParseableElementType.<init>(ILazyParseableElementType.java:30)
at com.intellij.psi.tree.IFileElementType.<init>(IFileElementType.java:20)
at com.intellij.psi.templateLanguages.TemplateDataElementType.<init>(TemplateDataElementType.java:51)
at com.templ.templ.file.TemplFileViewProvider$htmlElementType$1.<init>(TemplFileViewProvider.kt:22)
at com.templ.templ.file.TemplFileViewProvider.<init>(TemplFileViewProvider.kt:22)
at com.templ.templ.file.TemplFileViewProvider.cloneInner(TemplFileViewProvider.kt:58)
at com.intellij.psi.MultiplePsiFilesPerDocumentFileViewProvider.createCopy(MultiplePsiFilesPerDocumentFileViewProvider.java:126)
at com.intellij.psi.MultiplePsiFilesPerDocumentFileViewProvider.createCopy(MultiplePsiFilesPerDocumentFileViewProvider.java:29)
at com.intellij.psi.impl.BlockSupportImpl.makeFullParse(BlockSupportImpl.java:278)
at com.intellij.psi.impl.BlockSupportImpl.reparse(BlockSupportImpl.java:91)
at com.intellij.psi.impl.DocumentCommitThread.doCommit(DocumentCommitThread.java:267)
at com.intellij.psi.impl.DocumentCommitThread.commitUnderProgress(DocumentCommitThread.java:134)
at com.intellij.psi.impl.DocumentCommitThread.lambda$commitAsynchronously$0(DocumentCommitThread.java:84)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$OTelMonitor.callWrapped(NonBlockingReadActionImpl.java:857)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$OTelMonitor$MonitoredComputation.call(NonBlockingReadActionImpl.java:889)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:618)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$4(NonBlockingReadActionImpl.java:581)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.tryRunReadAction(AnyThreadWriteThreadingSupport.kt:351)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:971)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:95)
at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:66)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:157)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:140)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:98)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:223)
at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:45)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:222)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$14(CoreProgressManager.java:674)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:749)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:705)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:673)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:203)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:98)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:137)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:95)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:581)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:480)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$2(NonBlockingReadActionImpl.java:495)
at com.intellij.util.concurrency.CoroutineDispatcherBackedExecutor$execute$1.invokeSuspend$lambda$0(executor.kt:63)
at com.intellij.openapi.progress.CoroutinesKt.blockingContextInner(coroutines.kt:341)
at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invokeSuspend(coroutines.kt:233)
at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:232)
at com.intellij.util.concurrency.CoroutineDispatcherBackedExecutor$execute$1.invokeSuspend(executor.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
IntelliJ Version
IntelliJ IDEA 2024.3 (Ultimate Edition)
Build #IU-243.21565.193, built on November 13, 2024
Licensed to Wikstrand Development AB / Simon Wikstrand
Subscription is active until April 7, 2025.
Runtime version: 21.0.5+8-b631.16 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.1.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 16
Metal Rendering is ON
Registry:
ide.experimental.ui=true
i18n.locale=
eslint.additional.file.extensions=svelte
org.toml.json.schema=false
Non-Bundled Plugins:
org.jetbrains.plugins.localization (243.21565.122)
com.intellij.ml.llm (243.21565.238)
org.jetbrains.plugins.go-template (243.21565.122)
name.kropp.intellij.makefile (243.21565.122)
com.intellij.nativeDebug (243.21565.129)
org.jetbrains.plugins.go (243.21565.211)
com.jetbrains.rust (243.21565.136)
org.intellij.plugins.hcl (243.21565.180)
com.github.hugohomesquita.htmxjetbrains (0.0.10)
org.jetbrains.plugins.github (243.21565.204-ultimate)
org.jetbrains.plugins.gitlab (243.21565.204)
PlantUML integration (7.11.2-IJ2023.2)
com.jetbrains.space (243.21565.122)
Pythonid (243.21565.211)
PythonCore (243.21565.211)
com.github.inxilpro.intellijalpine (v0.4.2)
dev.blachut.svelte.lang (243.21565.120)
com.jetbrains.php (243.21565.211)
com.github.copilot (1.5.29.7524)
ru.adelf.idea.dotenv (2024.3)
net.ashald.envfile (3.4.2)
com.templ.templ (0.0.15)
Kotlin: 243.21565.193-IJ
Hey,
Thanks a lot for making this tooling, it's really useful to me.
The Jetbrains Templ plugin (0.0.15) sometimes cause IntelliJ to become unresponsive when the plugin crashes. This always seem to happen randomly as I'm typing in a
.templ
file. It happens about once every hour, frequently enough to be annoying.Everytime this happens I have to restart the IDE entirely, as I can no longer interact with Templ files, even if I restart the templ server.
Any idea what might be causing this?
IntelliJ Version