Sublime Forum

My commands are broken in 4121

#1
{
        "keys": ["ctrl+shift+x", "ctrl+e"], "command": "send_code",
        "args": {"cmd": "include(\"$file\")"},
    },

This used to work, and no longer works after 4121 was installed.
Any ideas?

0 Likes

#2

I found this error in the console

Traceback (most recent call last):
  File "C:\Users\pkonl\SublimeText4_portable\st4\Lib\python33\sublime_plugin.py", line 1488, in run_
    return self.run(edit, **args)
  File "C:\Users\pkonl\SublimeText4_portable\st4\Data\Packages\SendCode\send_code.py", line 22, in run
    getter = CodeGetter.initialize(self.view)
  File "C:\Users\pkonl\SublimeText4_portable\st4\Data\Packages\SendCode\code_getter\getter.py", line 19, in initialize
    PATTERN = re.compile(r"""
  File "C:\Users\pkonl\SublimeText4_portable\st4\Data\Packages\SendCode\settings.py", line 15, in __init__
    self.s = sublime.load_settings("SendCode.sublime-settings")
AttributeError: 'NoneType' object has no attribute 'load_settings'

!!??

0 Likes

#3

Looks like you have a custom installation of SendCode. Does it happen if you just install it through package control? You can try in safe mode.

0 Likes

#4

I don’t know: I removed the package SendCode and reinstalled it. No change.

0 Likes

#6

Apparently it happens here:
image
sublime appears to be NoneType here.

0 Likes

#7

Uninstall SendCode. Restart ST. Install SendCode. Restart ST.

This sequence of actions restored SendCode to health. Why? No clue…

1 Like