File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,14 +72,17 @@ def extractInfoTrees (fileName : System.FilePath) : IO (FileMap × List InfoTree
7272 let (header, parserState, messages) ← Parser.parseHeader inputCtx
7373 if Lean.MessageLog.hasErrors messages then
7474 IO.println s! "Ran into errors while parsing the header of { fileName} "
75+ MessageLog.printErrors messages
7576 -- TODO: do we need to specify the main module here?
7677 let (env, messages) ← processHeader header {} messages inputCtx
7778 if Lean.MessageLog.hasErrors messages then
7879 IO.println s! "Ran into errors whist processing the header of { fileName} "
80+ MessageLog.printErrors messages
7981 let commandState := Command.mkState env messages
8082 let frontendState ← IO.processCommands inputCtx parserState commandState
8183 if Lean.MessageLog.hasErrors frontendState.commandState.messages then
8284 IO.println s! "Ran into errors whist processing the commands in { fileName} "
85+ MessageLog.printErrors messages
8386 let fileMap := FileMap.ofString input
8487 return (fileMap, frontendState.commandState.infoState.trees.toList)
8588
You can’t perform that action at this time.
0 commit comments