From f87a2e4caa7ac03cc77ba00f419313c5a7d020ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Bispo?= Date: Thu, 8 Aug 2024 17:25:21 +0100 Subject: [PATCH] [LARAI] Attempts another way at storing the source --- LARAI/src/larai/LaraI.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LARAI/src/larai/LaraI.java b/LARAI/src/larai/LaraI.java index b0df77a64..120580c96 100644 --- a/LARAI/src/larai/LaraI.java +++ b/LARAI/src/larai/LaraI.java @@ -1025,8 +1025,12 @@ public static void loadLaraImport(String importName) { var source = laraImport.getJsFile().map(file -> SpecsIo.normalizePath(file.getAbsolutePath())).orElse(laraImport.getFilename()); var sourceOld = laraImport.getFilename() + " (LARA import '" + importName + "' as " + laraImport.getFileType().toString() + ")"; + var anotherSource = laraImport.getJsFile().map(file -> SpecsIo.normalizePath(file.getAbsolutePath())).orElse(laraImport.getFilename()) + " (LARA import '" + importName + "' as " + laraImport.getFileType().toString() + ")"; + System.out.println("Source prev: " + sourceOld); + System.out.println("Source new: " + source); + System.out.println("Source current: " + anotherSource); weaverEngine.getScriptEngine().eval(laraImport.getCode(), laraImport.getFileType(), - sourceOld); + anotherSource); } }