When I enter a bundle open (gemname) command, I’m getting the error Could not run 'subl /path/to/gem'.
I’ve set Sublime up to launch from the alias ‘subl’ (and if I just copy /path/to/gem and then manually run subl /path/to/gem, it opens fine).
I found a similar issue at http://superuser.com/questions/609672/how-do-i-use-sublime-text-as-the-os-editor-in-mac-os-x, but that didn’t work (I’m using Sublime Text 3, so tried replacing Sublime Text 2.app with Sublime Text.app in the path).
I’ve also tried running the command in Michael Mizner’s answer here, but it hasn’t changed the error.
I’ve just discovered that I get the same error when attempting to merge/rebase etc in Git (at the point where it would normally open a text editor file confirming the changes). But command-clicking on links opens them (in Sublime) fine.
So I’m confused about how I’ve managed to set this up in such a half-successful way. Help much appreciated!
Thanks,
Sasha