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 \subsection-command #3814

Open
Pe13 opened this issue Dec 18, 2024 · 0 comments
Open

java.lang.IllegalArgumentException: command is no \subsection-command #3814

Pe13 opened this issue Dec 18, 2024 · 0 comments
Labels
crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified.

Comments

@Pe13
Copy link

Pe13 commented Dec 18, 2024

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

CLion 2024.3.1 (build CL-243.22562.155)

Operating System

Windows 11.0 (amd64)

TeXiFy IDEA version

0.9.9

Description

After transforming a subseciton into a section, and changing the prefix of the associated label, a warning appeared regarding the use of an unconventional prefix, and the proposed fix restored the ‘subsec’ prefix.
After a while, the plugin gave the error.

Stacktrace

java.lang.IllegalArgumentException: command is no \subsection-command
	at nl.hannahsten.texifyidea.structure.latex.LatexSubSectionPresentation.<init>(LatexSubSectionPresentation.kt:17)
	at nl.hannahsten.texifyidea.structure.latex.LatexPresentationFactory.getPresentation(LatexPresentationFactory.kt:30)
	at nl.hannahsten.texifyidea.psi.impl.LatexCommandsImplMixin.getPresentation(LatexCommandsImplMixin.kt:123)
	at com.intellij.codeInsight.navigation.UtilKt.targetPresentation(util.kt:88)
	at com.intellij.lang.documentation.psi.PsiElementDocumentationTarget.computePresentation(PsiElementDocumentationTarget.kt:68)
	at com.intellij.platform.backend.documentation.impl.ImplKt.documentationRequest(impl.kt:20)
	at com.intellij.lang.documentation.ide.impl.DocumentationTargetHoverInfoKt$calcTargetDocumentationInfo$1.invokeSuspend$lambda$1(DocumentationTargetHoverInfo.kt:43)
	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 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(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

@Pe13 Pe13 added crash-report Reports of crashes that popped up in IDEA. untriaged Issue type still needs to be triaged or verified. labels Dec 18, 2024
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

1 participant