From 9f481306735da6cb4b1e589801b57de261f256a1 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 4 Mar 2025 21:09:25 +0100 Subject: [PATCH] IDE: catch codetool error during source-completion paint. Issue #32972 --- ide/sourceeditprocs.pas | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ide/sourceeditprocs.pas b/ide/sourceeditprocs.pas index 520c9c9c42..5f36f2cecd 100644 --- a/ide/sourceeditprocs.pas +++ b/ide/sourceeditprocs.pas @@ -700,10 +700,14 @@ begin ctnProcedure: begin - s:=IdentItem.Tool.ExtractProcHead(ItemNode, - [phpWithoutClassName,phpWithoutName,phpWithVarModifiers, - phpWithParameterNames,phpWithDefaultValues,phpWithResultType, - phpWithOfObject,phpWithoutSemicolon]); + try + s:=IdentItem.Tool.ExtractProcHead(ItemNode, + [phpWithoutClassName,phpWithoutName,phpWithVarModifiers, + phpWithParameterNames,phpWithDefaultValues,phpWithResultType, + phpWithOfObject,phpWithoutSemicolon]); + except + // ignore, show funciton name without header + end; end; ctnProperty,ctnGlobalProperty: