SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

Still unable to "send code" to iterm-2 (macosx)

Open bitworm opened this issue 8 years ago • 12 comments

This was temporarily solved, seems to have broken with upgrade to iterm2. Frustrating that this keeps breaking, as its essential to my workflow.

bitworm avatar Oct 10 '17 03:10 bitworm

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).

randy3k avatar Oct 10 '17 03:10 randy3k

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'

adamaltmejd avatar Oct 10 '17 12:10 adamaltmejd

Nvm, reinstalled the package and now its working.

adamaltmejd avatar Oct 10 '17 12:10 adamaltmejd

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?

bitworm avatar Oct 10 '17 23:10 bitworm

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.

randy3k avatar Oct 11 '17 02:10 randy3k

This still breaks for me when sendcode pushes updates.

bitworm avatar Apr 16 '18 01:04 bitworm

Could you elaborate?

randy3k avatar Apr 16 '18 02:04 randy3k

Oh, I just realized that I haven’t changed the application name to iTerm2

randy3k avatar Apr 16 '18 03:04 randy3k

@bitworm check 069437c.

randy3k avatar Apr 16 '18 03:04 randy3k

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.

bitworm avatar Apr 23 '18 00:04 bitworm

My computer recognizes both iTerm2 and iTerm....may be you are the oddity :-p

randy3k avatar Apr 23 '18 00:04 randy3k

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)

13am avatar May 21 '18 08:05 13am