From 6c407567e7661484cbbe7ece80b6b365e9a8af18 Mon Sep 17 00:00:00 2001 From: paulklint Date: Sat, 31 Jan 2026 00:00:38 +0100 Subject: [PATCH] Added (temporary) extra safeguard against physical locations (due to erroneous packager) --- src/org/rascalmpl/compiler/lang/rascalcore/check/Import.rsc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/rascalmpl/compiler/lang/rascalcore/check/Import.rsc b/src/org/rascalmpl/compiler/lang/rascalcore/check/Import.rsc index f47a45ca2c..cca6c27464 100644 --- a/src/org/rascalmpl/compiler/lang/rascalcore/check/Import.rsc +++ b/src/org/rascalmpl/compiler/lang/rascalcore/check/Import.rsc @@ -99,7 +99,11 @@ ModuleStatus reportCycles(rel[MODID, PathRole, MODID]paths, rel[MODID,MODID] ext //- by checking circular dependencies // TODO: reuse enhancePathRelation from RascalConfig here ModuleStatus completeModuleStatus(ModuleStatus ms){ - paths = ms.paths; + pcfg = ms.pathConfig; + // extra safeguard against physical locations (due to erroneous packager) + paths = visit(ms.paths){ + case loc l => moduleName2moduleId(getRascalModuleName(l,pcfg)) when !isModuleId(l) + } ms = reportSelfImport(paths, ms);