SendCode
SendCode copied to clipboard
Still unable to "send code" to iterm-2 (macosx)
This was temporarily solved, seems to have broken with upgrade to iterm2. Frustrating that this keeps breaking, as its essential to my workflow.
I really have no idea why it happens to you. It is working perfectly on my side..
Edit: 3.1.3 and 3.1.4 are both working on macOS 10.13 (17A405).
Just started failing for me too. Worked just a few days ago. Tried to switch to different terminal and it doesn't help. I get this error message:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 818, in run_
return self.run(edit)
File "~/Library/Application Support/Sublime Text 3/Packages/SendCode/send_code.py", line 81, in run
sender = CodeSender.initialize(self.view, prog=prog, from_view=cmd is None)
File "~/Library/Application Support/Sublime Text 3/Packages/SendCode/code_sender/sender.py", line 32, in initialize
syntax = Settings(view).syntax()
File "~/Library/Application Support/Sublime Text 3/Packages/SendCode/settings.py", line 58, in __init__
else:
AttributeError: 'NoneType' object has no attribute 'load_settings'
Nvm, reinstalled the package and now its working.
My system recognizes the command iterm-2 instead of iterm. Changing the name of the application in the applescripts in /Users/user/Library/Application Support/Sublime Text 3/Packages/SendCode/code_sender/*.applescript seems to have solved my problem. Maybe this will be an issue for other users?
Per iTerm2 documentation https://www.iterm2.com/documentation-scripting.html it should really be iTerm2. I will make the change soon. Thanks for the information.
This still breaks for me when sendcode pushes updates.
Could you elaborate?
Oh, I just realized that I haven’t changed the application name to iTerm2
@bitworm check 069437c.
Thank you! I'll check it out and close this if it works. I'm a little surprised I'm the only one this seems to have affected.
My computer recognizes both iTerm2 and iTerm....may be you are the oddity :-p
FWIW, https://github.com/randy3k/SendCode/commit/069437c4b959532426f39a35adbdd13b0acd79f9 broke SendCode for me, I'm running the newest MacOS, SublimeText, and SendCode. I had to change iTerm2 to iTerm to make it work. Could this be made into a config option so that I'd not have to mess with the applescript manually? (edit: fixed typos)