-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
I've an auto-generated file of more than 32767 lines and I'm getting this error when running ./koch temp c myfile.nim. I can reduce the lines, but the point is the compiler should not crash when there is an error on a big file.
./koch temp c myfile.nim output:
nim.nim(121) nim
nim.nim(77) handleCmdLine
main.nim(172) mainCommand
main.nim(77) commandCompileToC
modules.nim(240) compileProject
modules.nim(180) compileModule
passes.nim(218) processModule
passes.nim(136) processTopLevelStmt
sem.nim(556) myProcess
sem.nim(524) semStmtAndGenerateGenerics
semstmts.nim(1889) semStmt
semexprs.nim(782) semExprNoType
semexprs.nim(2360) semExpr
importer.nim(178) evalImport
importer.nim(155) impMod
importer.nim(141) myImportModule
modules.nim(203) importModule
modules.nim(180) compileModule
passes.nim(218) processModule
passes.nim(136) processTopLevelStmt
sem.nim(556) myProcess
sem.nim(524) semStmtAndGenerateGenerics
semstmts.nim(1889) semStmt
semexprs.nim(782) semExprNoType
semexprs.nim(2360) semExpr
importer.nim(178) evalImport
importer.nim(155) impMod
importer.nim(141) myImportModule
modules.nim(203) importModule
modules.nim(180) compileModule
passes.nim(218) processModule
passes.nim(136) processTopLevelStmt
sem.nim(556) myProcess
sem.nim(524) semStmtAndGenerateGenerics
semstmts.nim(1889) semStmt
semexprs.nim(782) semExprNoType
semexprs.nim(2360) semExpr
importer.nim(178) evalImport
importer.nim(155) impMod
importer.nim(141) myImportModule
modules.nim(203) importModule
modules.nim(180) compileModule
passes.nim(204) processModule
syntaxes.nim(46) parseTopLevelStmt
parser.nim(2143) parseTopLevelStmt
parser.nim(2041) complexOrSimpleStmt
parser.nim(1661) parseSection
parser.nim(1689) parseConstant
parser.nim(1094) parseExpr
parser.nim(781) simpleExpr
parser.nim(771) simpleExprAux
parser.nim(1168) primary
parser.nim(666) identOrLiteral
parser.nim(422) exprColonEqExprList
parser.nim(410) exprColonEqExprListAux
parser.nim(372) exprColonEqExpr
parser.nim(1094) parseExpr
parser.nim(781) simpleExpr
parser.nim(771) simpleExprAux
parser.nim(1168) primary
parser.nim(597) identOrLiteral
parser.nim(184) newIntNodeP
parser.nim(181) newNodeP
parser.nim(171) parLineInfo
lexer.nim(155) getLineInfo
msgs.nim(619) newLineInfo
system.nim(2817) sysFatal
Error: unhandled exception: value out of range: 32768 [RangeError]
FAILURE