feat: add option flag, greedy compilation of multiple files, and refactor to... #41
@@ -118,7 +118,7 @@ def compile(
|
|||||||
_ <- logAction(s"Compilation failed for $filePath\nExit code: $code")
|
_ <- logAction(s"Compilation failed for $filePath\nExit code: $code")
|
||||||
_ <- IO.blocking(
|
_ <- IO.blocking(
|
||||||
// Explicit println since we want this to always show without logger thread info e.t.c.
|
// Explicit println since we want this to always show without logger thread info e.t.c.
|
||||||
println(s"Compilation failed for ${file.toPath.toRealPath()}:\n$errorMsg")
|
println(s"Compilation failed for ${file.getCanonicalPath}:\n$errorMsg")
|
||||||
)
|
)
|
||||||
} yield code
|
} yield code
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ def formatError(error: Error)(using errorContent: String): String = {
|
|||||||
* File of the error
|
* File of the error
|
||||||
*/
|
*/
|
||||||
def formatFile(file: File): Unit = {
|
def formatFile(file: File): Unit = {
|
||||||
sb.append(s"File: ${file.toPath.toRealPath()}\n")
|
sb.append(s"File: ${file.getCanonicalPath}\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Function to format the position of an error
|
/** Function to format the position of an error
|
||||||
|
|||||||
Reference in New Issue
Block a user