From 3b04d0b8676b09292d412bdd5e3ecbf372068cb3 Mon Sep 17 00:00:00 2001 From: Michael Panchenko Date: Thu, 12 Jun 2025 15:05:53 +0200 Subject: [PATCH] Advice to restart LS in tool failure message --- src/serena/agent.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/serena/agent.py b/src/serena/agent.py index 0a07da2a..2093365d 100644 --- a/src/serena/agent.py +++ b/src/serena/agent.py @@ -1071,7 +1071,11 @@ class Tool(Component): if not catch_exceptions: raise msg = f"Error executing tool: {e}\n{traceback.format_exc()}" - log.error(f"Error executing tool: {e}", exc_info=e) + log.error( + f"Error executing tool: {e}. " + f"Consider restarting the language server to solve this (especially, if it's a timeout of a symbolic operation)", + exc_info=e, + ) result = msg if log_call: