Fix project URIs on Windows. (#2037)

This commit is contained in:
Islon Scherer authored and GitHub committed 2026-12-03 17:18:00 +01:00
1 parent 08cc669b49
commit a9022b64d9
3 files changed
+10 -1

No files matched your search

@@ -126,7 +126,7 @@ public final class MirrorFactories {
: module.getVmClass().getModifierMirrors())
.addStringProperty("name", module -> module.getModuleInfo().getModuleName())
.addStringProperty(
"uri", module -> module.getModuleInfo().getModuleKey().getUri().toString())
"uri", module -> module.getModuleInfo().getModuleKey().getUri().toASCIIString())
.addTypedProperty("reflectee", Property.identity())
.addTypedProperty("moduleClass", module -> module.getVmClass().getMirror())
.addProperty("supermodule", VmTyped::getSupermoduleMirror)
@@ -0,0 +1,7 @@
import "pkl:reflect"
import "../modules/日本語.pkl" as japanese
local mod = reflect.Module(japanese)
res1 = mod.uri
res2 = mod.uri is Uri
@@ -0,0 +1,2 @@
res1 = "file:///$snippetsDir/input/modules/%E6%97%A5%E6%9C%AC%E8%AA%9E.pkl"
res2 = true