JetBrainsPluginClient: Improve error message when no plugin found,

asking the use to open the project in the IDE

Resolves #1019
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-02-20 12:29:19 +01:00
1 parent db9980f0ed
commit d66152bc29
1 file changed
+5 -1
@@ -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: