Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException: command is no \subsubsection-command #3849

Closed
sehHeiden opened this issue Jan 15, 2025 · 2 comments
Closed
Labels
crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified.

Comments

@sehHeiden
Copy link

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

PyCharm 2024.3.1.1 (build PY-243.22562.220)

Operating System

Linux 6.11.0-108013-tuxedo (amd64)

TeXiFy IDEA version

0.9.9

Description

Stacktrace

java.lang.IllegalArgumentException: command is no \subsubsection-command
	at nl.hannahsten.texifyidea.structure.latex.LatexSubSubSectionPresentation.<init>(LatexSubSubSectionPresentation.kt:17)
	at nl.hannahsten.texifyidea.structure.latex.LatexPresentationFactory.getPresentation(LatexPresentationFactory.kt:31)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewCommandElement.<init>(LatexStructureViewCommandElement.kt:32)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewCommandElement.<init>(LatexStructureViewCommandElement.kt)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewCommandElement$Companion.newCommand(LatexStructureViewCommandElement.kt:27)
	at nl.hannahsten.texifyidea.structure.latex.LatexStructureViewElement.getChildren(LatexStructureViewElement.kt:107)
	at com.intellij.ide.util.treeView.smartTree.TreeElementWrapper.initChildren(TreeElementWrapper.java:35)
	at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.rebuildSubtree(CachingChildrenTreeNode.java:209)
	at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.ensureChildrenAreInitialized(CachingChildrenTreeNode.java:43)
	at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.getChildren(CachingChildrenTreeNode.java:35)
	at com.intellij.ide.structureView.newStructureView.StructureViewComponent$MyNodeWrapper.getChildren(StructureViewComponent.java:893)
	at com.intellij.ide.util.treeView.smartTree.SmartTreeStructure.getChildElements(SmartTreeStructure.java:62)
	at com.intellij.ui.tree.StructureTreeModel.getValidChildren(StructureTreeModel.java:424)
	at com.intellij.ui.tree.StructureTreeModel.validateChildren(StructureTreeModel.java:332)
	at com.intellij.ui.tree.StructureTreeModel.getNode(StructureTreeModel.java:326)
	at com.intellij.ui.tree.StructureTreeModel.getChildren(StructureTreeModel.java:348)
	at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.computeNode(AsyncTreeModel.java:668)
	at com.intellij.ui.tree.AsyncTreeModel$Command.computeNode(AsyncTreeModel.java:541)
	at com.intellij.util.concurrency.Invoker$Task.run(Invoker.java:361)
	at com.intellij.util.concurrency.CoroutineInvokerDelegate.run(CoroutineInvokerDelegate.kt:38)
	at com.intellij.util.concurrency.Invoker.invokeSafely(Invoker.java:189)
	at com.intellij.util.concurrency.Invoker.lambda$offerSafely$0(Invoker.java:173)
	at com.intellij.util.concurrency.Invoker$Background.lambda$offer$0(Invoker.java:470)
	at com.intellij.util.concurrency.CoroutineInvokerDelegate.offer$lambda$2(CoroutineInvokerDelegate.kt:27)
	at com.intellij.util.concurrency.SequentialBgtCoroutineInvokerDelegate$doLaunch$1.invokeSuspend$lambda$1$lambda$0(CoroutineInvokerDelegate.kt:97)
	at com.intellij.util.concurrency.BgtCoroutineInvokerDelegate.withProperContext$lambda$0(CoroutineInvokerDelegate.kt:73)
	at com.intellij.openapi.application.rw.InternalReadAction.insideReadAction(InternalReadAction.kt:114)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable$lambda$4(InternalReadAction.kt:104)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$3$lambda$2$lambda$1(cancellableReadAction.kt:32)
	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.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$3$lambda$2(cancellableReadAction.kt:30)
	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.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:28)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable(InternalReadAction.kt:103)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadAction(InternalReadAction.kt:87)
	at com.intellij.openapi.application.rw.InternalReadAction.readLoop(InternalReadAction.kt:74)
	at com.intellij.openapi.application.rw.InternalReadAction.access$readLoop(InternalReadAction.kt:16)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invokeSuspend(InternalReadAction.kt:53)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invoke(InternalReadAction.kt)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invoke(InternalReadAction.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.openapi.application.rw.InternalReadAction.runReadAction(InternalReadAction.kt:49)
	at com.intellij.openapi.application.rw.PlatformReadWriteActionSupport.executeReadAction(PlatformReadWriteActionSupport.kt:38)
	at com.intellij.openapi.application.ReadWriteActionSupport.executeReadAction$default(ReadWriteActionSupport.kt:15)
	at com.intellij.openapi.application.CoroutinesKt.constrainedReadAction(coroutines.kt:62)
	at com.intellij.openapi.application.CoroutinesKt.readAction(coroutines.kt:29)
	at com.intellij.util.concurrency.BgtCoroutineInvokerDelegate.withProperContext(CoroutineInvokerDelegate.kt:72)
	at com.intellij.util.concurrency.SequentialBgtCoroutineInvokerDelegate$doLaunch$1.invokeSuspend(CoroutineInvokerDelegate.kt:96)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineSc
@sehHeiden sehHeiden added crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified. labels Jan 15, 2025
@sehHeiden
Copy link
Author

Do not know whether this is related or not:

I get this error: in one single tex files. The section label wants the ch: chapter prefix, the subsection label the sec prefix.

Works after restart.

@PHPirates
Copy link
Collaborator

Thanks for reporting, duplicate of #3814 and should be fixed in 0.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified.
Projects
None yet
Development

No branches or pull requests

2 participants