-
Notifications
You must be signed in to change notification settings - Fork 19
dosen't work with latest iterm? #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi there, could you share what your iterm version is and what command produced this output? I wasn't able to reproduce this with iterm 3.0.0 on El Capitan with Ruby 2.3.1 and consular-iterm 1.0.3. |
I'm getting the same issues using iTerm 3.0.0 on OSX 10.10.5 with Ruby 2.1.3 and consular-iterm 1.0.3. |
Thanks for the additional data point. Is there any particular command that breaks for you? Is it everything? |
Okay, I can reproduce on my system using I debugged this a little by throwing a
I think changing I'd like to investigate the cause of this change. I recall this working before the new iterm build. This might require an iterm version check to preserve backwards compatibility. |
Ok, thanks. I get it when running |
Unfortunately when I experimented with it briefly, I can't easily check for the existence of these methods because they're meta-programmed:
It can be checked for this way:
On first inspection, |
If anyone is willing to submit a working pull request for version 3 support of Iterm, we'll gladly accept it. We can also lock iTerm v2 support to the current tag and make a note of it in the README for users that may prefer version 2 of iTerm. |
I've figured out enough to get That fails with:
I'm not sure how to begin debugging the API change, as there isn't a If it will move things forward, I can submit a PR with what I have to enable partial Iterm2 v3 support, and open a new issue for the tabs not opening. What do you think @achiu ? |
👍 I think that's a reasonable start.
I think it also might be time to drop |
Ah okay, my brain wasn't working when I wrote that comment. Rb-scpt proxies the appscript interface for iterm2, and the documentation for iterm2 Applescript is here. I updated my PR with fixes for opening a new tab and opening a new window. I confirmed these with manual testing. It'd be nice to add automated tests around these changes, but the only valuable tests I could think of would require integrating with iterm, and could be easily polluted by user interactions. |
I just merged in a fix for all the issues I could spot. @kevzettler @JustinTBrown Can you guys try out the master branch of this repo and let us know if that fixes your issues? If so, I can bump the version and mark this as closed. |
Just manually pulled in the update to master.
UPDATE: It should be noted I have never manually installed a gem before (I typically rely on |
It works for me. Thanks. |
@JustinTBrown you can also git clone this repo and then Would you mind sharing your consular scripts? Feel free to scrub file names, folder names, and anything else. It will help me to make sure the commands you're using are all updated with the new iterm API. |
After installing the latest consular-iterm (following @JustinTBrown's method above), I'm getting the same |
@mgeraci You have the latest version regarding this issue. I haven't put time into fixing the additional consular-iterm commands that are giving Justin those errors. Work and side project commitments have taken up my time for at least the next month. If anyone would like to try fixing the remaining commands (or for myself later on), here's what I recall: Iterm2 v3 changed some of its Applescript API names and possibly abstractions. Rb-scpt maps iterm2's Applescript API calls into Ruby method calls. Iterm2 has an API documentation page here. The bottom of that page contains some pre v3 Applescript syntax. As seen by the last merged PR, not all commands have to be fixed at once. Fixing one or a few commands would be an improvement for some users. |
Thanks for the info, Eric; I'll put it on my list of things to check out! |
The text was updated successfully, but these errors were encountered: