diff --git a/compiler/src/prog8/compiler/Compiler.kt b/compiler/src/prog8/compiler/Compiler.kt index 0492089ca..d4fc24615 100644 --- a/compiler/src/prog8/compiler/Compiler.kt +++ b/compiler/src/prog8/compiler/Compiler.kt @@ -131,6 +131,10 @@ fun compileProgram(filepath: Path, System.err.print("\u001b[91m") // bright red System.err.println(pfx.message) System.err.print("\u001b[0m") // reset + } catch (nsf: NoSuchFileException) { + System.err.print("\u001b[91m") // bright red + System.err.println("File not found: ${nsf.message}") + System.err.print("\u001b[0m") // reset } catch (ax: AstException) { System.err.print("\u001b[91m") // bright red System.err.println(ax.toString()) diff --git a/docs/source/todo.rst b/docs/source/todo.rst index f7d4f137a..761c88715 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -3,7 +3,7 @@ TODO For next compiler release (7.2) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -... +- fix the asm-labels problem (github issue #62) Blocked by Commander-x16 v39 release @@ -19,7 +19,6 @@ Future - replace certain uses of inferredType.getOr(DataType.UNDEFINED) by i.getOrElse({ errorhandler }) - see if we can remove more "[InferredType].getOr(DataType.UNDEFINED)" - use more of Result<> and Either<> to handle errors/ nulls better -- fix the asm-labels problem (github issue #62) - can we get rid of pieces of asmgen.AssignmentAsmGen by just reusing the AugmentableAssignment ? generated code should not suffer - c64: make the graphics.BITMAP_ADDRESS configurable (VIC banking) - optimize several inner loops in gfx2 even further?