Skip to content

Commit 595bf0e

Browse files
committed
Add version guard for debug tool
1 parent ec09963 commit 595bf0e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/serena/jetbrains/jetbrains_plugin_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ def debug_eval(self, repl_key: str, expression: str) -> dict[str, Any]:
641641
:param expression: the Groovy expression to evaluate
642642
:return: the response containing REPL key and result
643643
"""
644+
self._require_version_at_least(2023, 2, 16)
644645
request_data = {
645646
"replKey": repl_key,
646647
"expression": expression,
@@ -654,6 +655,7 @@ def debug_close(self, repl_key: str) -> dict[str, Any]:
654655
:param repl_key: the key identifying the REPL instance to close
655656
:return: the status response
656657
"""
658+
self._require_version_at_least(2023, 2, 16)
657659
request_data = {
658660
"replKey": repl_key,
659661
}

0 commit comments

Comments
 (0)