diff --git a/rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Rename.rsc b/rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Rename.rsc index 9f6a95de2..ab90a4a61 100644 --- a/rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Rename.rsc +++ b/rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor/Rename.rsc @@ -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]; diff --git a/rascal-lsp/src/main/rascal/lang/rascal/tests/rename/TestUtils.rsc b/rascal-lsp/src/main/rascal/lang/rascal/tests/rename/TestUtils.rsc index 86cc4d568..2b363b827 100644 --- a/rascal-lsp/src/main/rascal/lang/rascal/tests/rename/TestUtils.rsc +++ b/rascal-lsp/src/main/rascal/lang/rascal/tests/rename/TestUtils.rsc @@ -257,6 +257,9 @@ private tuple[list[DocumentEdit], set[int]] getEditsAndModule(str stmtsStr, int ' '}"; + 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/|; loc moduleFileName = testDir + "rascal" + ".rsc";