From d66152bc29ce7ef70f769fe3378c3ae937d949ce Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Fri, 20 Feb 2026 12:29:15 +0100 Subject: [PATCH] JetBrainsPluginClient: Improve error message when no plugin found, asking the use to open the project in the IDE Resolves #1019 --- src/serena/jetbrains/jetbrains_plugin_client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/serena/jetbrains/jetbrains_plugin_client.py b/src/serena/jetbrains/jetbrains_plugin_client.py index c63b62f9..25f02bea 100644 --- a/src/serena/jetbrains/jetbrains_plugin_client.py +++ b/src/serena/jetbrains/jetbrains_plugin_client.py @@ -134,7 +134,11 @@ class JetBrainsPluginClient(ToStringMixin): resolved_path, plugin_paths_found, ) - raise ServerNotFoundError("Found no Serena service in a JetBrains IDE instance for the project at " + str(resolved_path)) + raise ServerNotFoundError( + f"Found no Serena service in a JetBrains IDE instance for the project at {resolved_path}. " + "CRITICAL: Before you continue, ask the user to open this folder as a project in a JetBrains IDE " + "with the Serena plugin installed and running!" + ) @staticmethod def _paths_match(resolved_serena_path: str, plugin_path: str) -> bool: