Skip to content

Commit

Permalink
Log module contents and path config in CI/
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Oct 7, 2024
1 parent 4ba4d05 commit 0adf713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ list[DocumentEdit] rascalRenameSymbol(Tree cursorT, set[loc] workspaceFolders, s
set[TModel] tmodels = {};
for (projectFolder <- projectFiles.projectFolder, \files := projectFiles[projectFolder]) {
PathConfig pcfg = getPathConfig(projectFolder);
PathConfig pcfg = printlnExp("pcfg: ", getPathConfig(projectFolder));
RascalCompilerConfig ccfg = rascalCompilerConfig(pcfg)[forceCompilationTopModule = true]
[verbose = false]
[logPathConfig = false];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ private tuple[list[DocumentEdit], set[int]] getEditsAndModule(str stmtsStr, int
'<trim(stmtsStr)>
'}";

println("Module contents: ");
println(moduleStr);

// Write the file to disk (and clean up later) to easily emulate typical editor behaviour
loc testDir = |memory://tests/rename/<moduleName>|;
loc moduleFileName = testDir + "rascal" + "<moduleName>.rsc";
Expand Down

0 comments on commit 0adf713

Please sign in to comment.