Sublime Forum

ST 4170 - Terminus does not work

#1

After the latest update (on Linux) Terminus does not work anymore. No errors in the console log, it just does not open. Downgrading to 4168 solves the problem.

0 Likes

Terminus broken after BUILD 4172
#2

Try restarting or disabling and then enabling Terminus. I seemed to have run into a similar issue with Terminus after install, but disabling and re-enabling seemed to get it working again.

0 Likes

#3

Doesn’t here. Terminus suffers from new RuntimeError raised, when accessing API functions before API is ready.

It somehow seems related with Package Control “POST_UPGRADE” event handling.

reloading plugin Terminus.main
Traceback (most recent call last):
  File "<ST>\Lib\python38\sublime_plugin.py", line 327, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.8/importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 868, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<ST>\Data\Packages\Terminus\main.py", line 13, in <module>
    if events.post_upgrade(__package__):
  File "<ST>\Data\Packages\Package Control\package_control\events.py", line 142, in post_upgrade
    event = _tracker().get(POST_UPGRADE) or {}
  File "<ST>\Data\Packages\Package Control\package_control\events.py", line 26, in _tracker
    tracker = sublime.load_settings("Package Control Events")
  File "<ST>\Lib\python38\sublime.py", line 1272, in load_settings
    settings_id = sublime_api.load_settings(base_name)
RuntimeError: API is not available

Note: I run all plugins on python 3.8 already.

0 Likes

#4

Package Control uses sublime.Settings() to provide events across plugin_hosts. Terminus uses this API at import time, which causes API access before it being ready.

A PR with a fix can be found at https://github.com/randy3k/Terminus/pull/412

2 Likes

#5

Restarting does not help. Disabling, restarting and enabling helps, but just for the current session. After restarting, it does not work again.

0 Likes

#6

@deathaxe Thanks for the info! Hopefully a release will be out soon. It seems as a workaround, disabling and re-enabling is required until the issue is patched.

0 Likes