Advice to restart LS in tool failure message

This commit is contained in:
Michael Panchenko committed 2025-06-12 15:09:38 +02:00
1 parent 36dbf5c681
commit 3b04d0b867
1 file changed
+5 -1
+5 -1
View File
@@ -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: