Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit

Permalink
Made check more robust for missing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Dec 8, 2024
1 parent 59e73d1 commit e7fee47
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,11 @@ list[ModuleMessages] check(list[loc] moduleLocs, RascalCompilerConfig compilerCo
pcfg1 = compilerConfig.typepalPathConfig; pcfg1.classloaders = []; pcfg1.javaCompilerPath = [];
compilerConfig.typepalPathConfig = pcfg1;
ms = rascalTModelForLocs(moduleLocs, compilerConfig, dummy_compile1);
return [ program(ms.moduleLocs[mname] ? |unknown:///|, ms.messages[mname]) | mname <- ms.messages ];
messagesNoModule = [];
for(mname <- ms.messages, !ms.moduleLocs[mname]?){
messagesNoModule += ms.messages[mname];
}
return [ program(ms.moduleLocs[mname], ms.messages[mname] + messagesNoModule) | mname <- ms.messages, ms.moduleLocs[mname] ? ];
}
list[ModuleMessages] checkAll(loc root, RascalCompilerConfig compilerConfig){
Expand Down

0 comments on commit e7fee47

Please sign in to comment.