From 8fcc6ca481e970e10fa957e624b4cee1383b94b2 Mon Sep 17 00:00:00 2001 From: Lucas Brown <54835354+imlucasbrown@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:50:36 -0600 Subject: [PATCH 1/2] * Made CLI more robust to broken editor installs --- nxt/cli.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nxt/cli.py b/nxt/cli.py index 1a15fd9..4e744ae 100644 --- a/nxt/cli.py +++ b/nxt/cli.py @@ -5,6 +5,7 @@ import json import logging import time +import traceback # Internal from nxt.session import Session @@ -15,12 +16,15 @@ STANDALONE) from nxt.remote.contexts import iter_context_names has_editor = False +editor_error = None +editor_error_tb = None try: import nxt_editor from nxt_editor.constants import EDITOR_VERSION has_editor = True -except ImportError: - pass +except Exception as e: + editor_error = e + editor_error_tb = traceback.format_exc() logger = logging.getLogger('nxt') @@ -84,8 +88,11 @@ def editor(args): :return: None """ if not has_editor: - msg = 'Editor not found, you can install with "pip install nxt_editor"' + msg = ('Editor did not load, ' + 'you can install with "pip install nxt_editor"') print(msg) + print(editor_error) + print(editor_error_tb) return if isinstance(args.path, list): paths = args.path From 73f2ea1c9c40fe524179a8dc3633d27b6886569a Mon Sep 17 00:00:00 2001 From: Lucas Brown <54835354+imlucasbrown@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:50:54 -0600 Subject: [PATCH 2/2] version up for release --- nxt/version.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxt/version.json b/nxt/version.json index c60841a..32569dc 100644 --- a/nxt/version.json +++ b/nxt/version.json @@ -2,7 +2,7 @@ "API": { "MAJOR": 0, "MINOR": 18, - "PATCH": 0 + "PATCH": 1 }, "GRAPH": { "MAJOR": 1,