From 4e38b13dbfd002b9e55e344976b8dc5d4dfd9e00 Mon Sep 17 00:00:00 2001 From: Raffi Khatchadourian Date: Mon, 16 Oct 2023 17:37:24 -0400 Subject: [PATCH] Fix progress monitors. --- .../refactorings/HybridizeFunctionRefactoringProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java b/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java index 97f23f2a6..94ff6eb39 100644 --- a/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java +++ b/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java @@ -181,7 +181,7 @@ private RefactoringStatus checkFunctions(IProgressMonitor monitor) throws Operat // Find out if it's hybrid via the tf.function decorator. try { - func.computeHybridization(monitor); + func.computeHybridization(subMonitor.split(IProgressMonitor.UNKNOWN)); } catch (BadLocationException e) { throw new CoreException(Status.error("Could not compute hybridization for: : " + func, e)); } @@ -189,7 +189,7 @@ private RefactoringStatus checkFunctions(IProgressMonitor monitor) throws Operat // TODO: Whether a function has a tensor argument should probably be an initial // condition: functions w/o such arguments should not be candidates. try { - func.inferTensorTensorParameters(analysis, monitor); + func.inferTensorTensorParameters(analysis, subMonitor.split(IProgressMonitor.UNKNOWN)); } catch (BadLocationException e) { throw new CoreException(Status.error("Could not infer tensor parameters for: : " + func, e)); }