|
@@ -1,9 +1,9 @@
|
|
|
define [
|
|
define [
|
|
|
"base"
|
|
"base"
|
|
|
"ace/ace"
|
|
"ace/ace"
|
|
|
- "libs/latex-log-parser"
|
|
|
|
|
|
|
+ "ide/human-readable-logs/HumanReadableLogs"
|
|
|
"libs/bib-log-parser"
|
|
"libs/bib-log-parser"
|
|
|
-], (App, Ace, LogParser, BibLogParser) ->
|
|
|
|
|
|
|
+], (App, Ace, HumanReadableLogs, BibLogParser) ->
|
|
|
App.controller "PdfController", ($scope, $http, ide, $modal, synctex, event_tracking, localStorage) ->
|
|
App.controller "PdfController", ($scope, $http, ide, $modal, synctex, event_tracking, localStorage) ->
|
|
|
|
|
|
|
|
# enable per-user containers if querystring includes isolated=true
|
|
# enable per-user containers if querystring includes isolated=true
|
|
@@ -173,11 +173,11 @@ define [
|
|
|
accumulateResults = (newEntries) ->
|
|
accumulateResults = (newEntries) ->
|
|
|
for key in ['all', 'errors', 'warnings']
|
|
for key in ['all', 'errors', 'warnings']
|
|
|
logEntries[key] = logEntries[key].concat newEntries[key]
|
|
logEntries[key] = logEntries[key].concat newEntries[key]
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
# use the parsers for each file type
|
|
# use the parsers for each file type
|
|
|
processLog = (log) ->
|
|
processLog = (log) ->
|
|
|
$scope.pdf.rawLog = log
|
|
$scope.pdf.rawLog = log
|
|
|
- {errors, warnings, typesetting} = LogParser.parse(log, ignoreDuplicates: true)
|
|
|
|
|
|
|
+ {errors, warnings, typesetting} = HumanReadableLogs.parse(log, ignoreDuplicates: true)
|
|
|
all = [].concat errors, warnings, typesetting
|
|
all = [].concat errors, warnings, typesetting
|
|
|
accumulateResults {all, errors, warnings}
|
|
accumulateResults {all, errors, warnings}
|
|
|
|
|
|