[Bug] TeXiFy-IDEA throws error on parsing very simple tex file
See original GitHub issueEnvironment
| Name | Value |
|---|---|
| Operating System | Arch Linux x86_64 5.13.12-lqx1-1-lqx |
| IDE Version | IntelliJ IDEA 2021.2 (Ultimate Edition) |
| IDE Build | Build #IU-212.4746.92, built on July 27, 2021 |
| Java Runtime Version | 11.0.11+9-b1504.13 amd64 |
| Non-Bundled Plugins | Plugins (Click to expand)Batch Scripts Support (1.0.12)CMD Support (1.0.5) Key Promoter X (2021.2) Statistic (4.1.7) com.floobits.unique.plugin.id (1.7.3) com.fwdekker.randomness (2.7.2) com.github.b3er.idea.plugins.arc.browser (0.23) com.intellij.ideolog (203.0.27.0) com.intellij.nativeDebug (212.4746.92) com.intellij.plugins.kdekeymap (203.5981.152) com.jetbrains.plugins.ini4idea (212.4746.57) com.ultrahob.zerolength.plugin (0.93) com.wakatime.intellij.plugin (13.0.3) io.github.fatihbozik.intellij-license-generator (0.0.14) net.codestats.plugin.atom.intellij (1.0.9) net.seesharpsoft.intellij.plugins.csv (2.17.1) org.antlr.intellij.plugin (1.16) com.failfast (2.0.4) com.virtuslab.git-machete (1.0.0) com.almightyalpaca.intellij.plugins.discord (1.7.0) mobi.hsz.idea.gitignore (4.2.0) org.toml.lang (0.2.153.4056-212) Builder Generator (1.1.8) CheckStyle-IDEA (5.55.1) Code Iris (2.4-beta) EclipseCodeFormatter (20.9.203.000.0-Eclipse_2020-06-JavaOnly) String Manipulation (8.15.203.000.3) com.github.camork.fileExpander (1.7) com.godwin.json.parser (1.4.2) com.intellij.guice (212.4746.52) org.jetbrains.idea.grammar (2021.1.1) org.jetbrains.plugins.hocon (2021.1.0) org.sonarlint.idea (5.2.0.35150) net.javaru.idea.frc (1.5.1-2021.2) com.demonwav.minecraft-dev (2021.2-1.5.14) com.hotswap.agent.plugin (1.3.0) com.github.shiraji.findpullrequest (1.7.2) Pythonid (212.4746.96) com.intellij.lang.jsgraphql (3.0.0) PlantUML integration (5.5.1) com.github.shiraji.yaemoji (1.0.7) com.godwin.kdocer (1.5) com.suusan2go.kotlin-fill-class (1.0.8) izhangzhihao.rainbow.brackets (6.21) ru.adelf.idea.dotenv (2021.3.0.212) zielu.gittoolbox (212.7.6) nl.rubensten.texifyidea (0.8.0-alpha.2) one.util.ideaplugin.screenshoter (1.7.1) org.jetbrains.jumpToLine (0.1.7) |
| TeXiFy IDEA Version | 0.8.0-alpha.2 |
Description
What I did (steps to reproduce)
- Created new project
- Opened autogenerated file
- error
Minimal example to reproduce the problem
%! Author = solonovamax
%! Date = 2021-08-29
%! Compiler = XeLaTeX
% Preamble
\documentclass[12pt]{article}
% Document
\begin{document}
\end{document}
From a bit of playing around I believe it specifically has something to do with the shebang comments at the top.
Stacktrace
Here is a full stack trace (click to open)
com.intellij.diagnostic.PluginException: nl.hannahsten.texifyidea.inspections.LatexGrammarCheckingStrategy@5d18de1c produced invalid stealthy ranges [0..188] in a text of length 188 [Plugin: nl.rubensten.texifyidea]
at com.intellij.ide.plugins.PluginManagerCore.createPluginException(PluginManagerCore.java:274)
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:12)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:91)
at com.intellij.diagnostic.PluginException.logPluginError(PluginException.java:108)
at com.intellij.grazie.text.StrategyTextExtractor.buildTextContent(StrategyTextExtractor.kt:59)
at com.intellij.grazie.text.StrategyTextExtractor.extractText(StrategyTextExtractor.kt:19)
at com.intellij.grazie.text.TextExtractor.doExtract(TextExtractor.java:141)
at com.intellij.grazie.text.TextExtractor.findTextAt(TextExtractor.java:78)
at com.intellij.grazie.text.TextExtractor.findUniqueTextAt(TextExtractor.java:119)
at com.intellij.grazie.ide.inspection.grammar.GrazieInspection$buildVisitor$1.visitElement(GrazieInspection.kt:42)
at com.intellij.psi.impl.source.tree.LeafPsiElement.accept(LeafPsiElement.java:208)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:64)
at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:55)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:326)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$4(LocalInspectionsPass.java:285)
at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:159)
at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:151)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$5(LocalInspectionsPass.java:283)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:130)
at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:119)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$6(LocalInspectionsPass.java:283)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:136)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1078)
at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:92)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63)
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:174)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:183)
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)
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
TeXiFy-IDEA/Support - Gitter
I understand that there is a bug regarding auto-launch of SumatraPDF. ... But TeXiFy doesn't parse my .sty file with regards to code...
Read more >Reflect in run config UI if settings are being overridden by a ...
An error is produced stating that Latexmk is unable to convert from DVI to PDF. This is because the TeXiFy IDEA plugin is...
Read more >strange error trying to compile Latex document - TeX
When compiling with Textmate I am getting Error Code 1 and in the Terminal ... line 1015, in status = command_parser.parse_stream() File ......
Read more >GNU Emacs as a Front End to LATEX - TeX Users Group
of a LATEX document a plain ascii file, together with a number of features to ... finding errors, and simply typing in the...
Read more >Why do I keep getting the compile timeout error message?
Many factors influence the time required to finish compiling a LaTeX document, including but not restricted to: size and complexity of the document...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Oh, uhm, no… it’s not a big change though, so I could backport it into 0.7.10.
Duplicate of #1981, but I see you’re on a different alpha release track which I haven’t updated in a while, because I had not realised that if I upload a newer version with a lower version then it won’t update.
I have removed this update already, so if you uninstall it should suggest to install 0.7.10-alpha.1 (and you have to re-create run configurations again, sorry. Will not do that again)