You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/nl/hannahsten/texifyidea/LatexErrorReportSubmitter.kt
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -81,10 +81,18 @@ class LatexErrorReportSubmitter : ErrorReportSubmitter() {
81
81
?: event?.message
82
82
?:"Crash Report: <Fill in title>"
83
83
val body = event?.throwableText ?:"Please paste the full stacktrace from the IDEA error popup."
84
+
// In some cases, very long stacktraces can refer to TeXiFy code only at the bottom (after 7000 characters), but we do want to submit this information, so we trim the middle part of the stacktrace
85
+
val maximumUrlSize =6000
86
+
val smallBody =if ("at nl.hannahsten.texifyidea"in body &&"at nl.hannahsten.texifyidea"!in body.take(maximumUrlSize)) {
Copy file name to clipboardExpand all lines: src/nl/hannahsten/texifyidea/inspections/latex/typesetting/LatexIncorrectSectionNestingInspection.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ open class LatexIncorrectSectionNestingInspection : TexifyInspectionBase() {
41
41
.sortedBy { it.textOffset }
42
42
.zipWithNext()
43
43
.filter { (first, second) ->
44
-
first.commandName() in (commandToForbiddenPredecessors[second.commandName()] ?: error("Unexpected command"))
44
+
first.commandName() in (commandToForbiddenPredecessors[second.commandName()] ?: error("Unexpected command${second.commandName()} after ${first.commandName()}"))
0 commit comments