From 62d10d7abd43263b10ec9297e8448927bf48f6b0 Mon Sep 17 00:00:00 2001 From: Toine Hartman Date: Wed, 11 Mar 2026 16:51:20 +0100 Subject: [PATCH] Do not swallow errors from augmentation. --- .../rascal/lsp/lang/rascal/lsp/refactor/Rename.rsc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/rascal-lsp/src/main/rascal/lsp/lang/rascal/lsp/refactor/Rename.rsc b/rascal-lsp/src/main/rascal/lsp/lang/rascal/lsp/refactor/Rename.rsc index d57536625..9a22778c1 100644 --- a/rascal-lsp/src/main/rascal/lsp/lang/rascal/lsp/refactor/Rename.rsc +++ b/rascal-lsp/src/main/rascal/lsp/lang/rascal/lsp/refactor/Rename.rsc @@ -263,15 +263,11 @@ public Edits rascalRenameSymbol(loc cursorLoc, list[Tree] cursor, str newName, s TModel getModel(loc f) = f.top == l.top ? tm : r.getConfig().tmodelForLoc(f); tm = r.getConfig().tmodelForLoc(l); - try { - tr = parseModuleWithSpaces(l); - tm = augmentExceptProductions(tr, tm, getModel); - tm = augmentFieldUses(tr, tm, getModel); - tm = augmentFormalUses(tr, tm, getModel); - tm = augmentTypeParams(tr, tm); - } catch value e: { - println("Suppressed error during TModel augmentation: "); - } + tr = parseModuleWithSpaces(l); + tm = augmentExceptProductions(tr, tm, getModel); + tm = augmentFieldUses(tr, tm, getModel); + tm = augmentFormalUses(tr, tm, getModel); + tm = augmentTypeParams(tr, tm); return tm; }