feat: imports and parallelised renamer #40

Merged
gk1623 merged 14 commits from imports into master 2025-03-13 23:10:38 +00:00
27 changed files with 456 additions and 94 deletions
Showing only changes of commit 8d8df3357d - Show all commits

View File

@@ -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

View File

@@ -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