message: Do not return undefined lines in log parser, use 1 instead
diff: @@ -43,10 +43,12 @@ interface LinterLogEntry {
  text: string
  }
  +interface LogEntry { type: string, file: string, text: string, line: number }
  +
  export class Parser {
  extension: Extension
  isLaTeXmkSkipped: boolean
  - buildLog: any[] = []
  + buildLog: LogEntry[] = []
  buildLogRaw: string = ''
  compilerDiagnostics = vscode.languages.createDiagnosticCollection('LaTeX')
  linterDiagnostics = vscode.languages.createDiagnosticCollection('ChkTeX')
  @@ -139,7 +141,7 @@ export class Parser {
  let searchesEmptyLine = false
  let insideBoxWarn = false
  let insideError = false
  - let currentResult: { type: string, file: string, text: string, line: number | undefined } = { type: '', file: '', text: '', line: undefined }
  + let currentResult: LogEntry = { type: '', file: '', text: '', line: 1 }
  const fileStack: string[] = [rootFile]
  let nested = 0
  for (const line of lines) {
  @@ -236,7 +238,7 @@ export class Parser {
  type: 'error',
  text: (result[3] && result[3] !== 'LaTeX') ? `${result[3]}: ${result[4]}` : result[4],
  file: result[1] ? path.resolve(path.dirname(rootFile), result[1]): filename,
  - line: result[2] ? parseInt(result[2], 10): undefined
  + line: result[2] ? parseInt(result[2], 10): 1
  }
  searchesEmptyLine = true
  insideError = true
  