Fix imported script functionality in JSR-223/REPL:
- setup compilation properly to take imported scripts into account - add compiled imported scripts into generated results = calculate ScriptLightVirtualFile path as relative - simplifies imported scripts location
This commit is contained in:
+1
-1
@@ -267,7 +267,7 @@ class ScriptingHostTest : TestCase() {
|
||||
assertTrue(res is ResultWithDiagnostics.Failure)
|
||||
val report = res.reports.find { it.message.startsWith("Source file or directory not found") }
|
||||
assertNotNull(report)
|
||||
assertEquals("/script.kts", report?.sourcePath)
|
||||
assertEquals("script.kts", report?.sourcePath)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user