Hi
I have Textmate 1.5.8, and I have not been able to get the feature working that allows me to edit in textmate from other applications.
I have installed the install::edit bundle, at least from in side Safari under the edit menu I see the "Edit in Textmate" menu selection. But when I open up Safari and begin drafting a message textmate does NOT Launch. I expected textmate to launch and shift focus from Safari to textmate.
Maybe that is not how it works so I launch textmate manually and again to a "^ Command E" manually shift to the Textmate editor start typing, when I press "Command S" I expected the contents to be copied to my Safari message window, but instead I get a dialog box asking where to save the file.
Clearly this feature i not working, but I think I have activated it, Any suggestions
Thanks Steve
Hi Steve,
I too am seeing the exact same behavior. For me using the debug methods outlined here http://blog.macromates.com/2007/inputmanagers-on-leopard/and here http://wiki.macromates.com/Troubleshooting/EditInTextMate do not show anything useful. FWIW other Input manager (Chax and 1Passwd) are working. Using a fresh user also replicates the problem (i.e. it isn't a user issue). It isn't specific to Safari or Mail as I should be able to use edit in textmate from within the bundle editor dialogs and that also does not work. Clearly something is wrong but I can't seem to figure it out. Thanks
On Mon, Sep 21, 2009 at 8:52 AM, Steven McDonald mcdonald@triumf.ca wrote:
Hi
I have Textmate 1.5.8, and I have not been able to get the feature
working that allows me to edit in textmate from other applications.
I have installed the install::edit bundle, at least from in side Safari under the edit menu I see the "Edit in Textmate" menu selection. But when I open up Safari and begin drafting a message textmate does NOT Launch. I expected textmate to launch and shift focus from Safari to textmate.
Maybe that is not how it works so I launch textmate manually and again to a "^ Command E" manually shift to the Textmate editor start typing, when I press "Command S" I expected the contents to be copied to my Safari message window, but instead I get a dialog box asking where to save the file.
Clearly this feature i not working, but I think I have activated it, Any suggestions
Thanks Steve
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi Steve
Yes I also followed some of the debug info suggested by Alan. including creating a new user, and removing any bash customizations. I have only tried this with Safari and Mail, neither work.
Steve
On 21-Sep-09, at 12:12 PM, Steven Klass wrote:
Hi Steve,
I too am seeing the exact same behavior. For me using the debug methods outlined here and here do not show anything useful. FWIW other Input manager (Chax and 1Passwd) are working. Using a fresh user also replicates the problem (i.e. it isn't a user issue). It isn't specific to Safari or Mail as I should be able to use edit in textmate from within the bundle editor dialogs and that also does not work. Clearly something is wrong but I can't seem to figure it out.
Thanks
On Mon, Sep 21, 2009 at 8:52 AM, Steven McDonald mcdonald@triumf.ca wrote: Hi
I have Textmate 1.5.8, and I have not been able to get the
feature working that allows me to edit in textmate from other applications.
I have installed the install::edit bundle, at least from in side Safari under the edit menu I see the "Edit in Textmate" menu selection. But when I open up Safari and begin drafting a message textmate does NOT Launch. I expected textmate to launch and shift focus from Safari to textmate.
Maybe that is not how it works so I launch textmate manually and again to a "^ Command E" manually shift to the Textmate editor start typing, when I press "Command S" I expected the contents to be copied to my Safari message window, but instead I get a dialog box asking where to save the file.
Clearly this feature i not working, but I think I have activated it, Any suggestions
Thanks Steve
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Mon, Sep 21, 2009 at 3:12 PM, Steven Klass sklass@pointcircle.com wrote:
Hi Steve, I too am seeing the exact same behavior. For me using the debug methods outlined here and here do not show anything useful. FWIW other Input manager (Chax and 1Passwd) are working.
But Chax and 1Password aren't working with 64 bit applications using input manager.
The current non-beta version of 1Password won't work in SL with Safari, unless you set up Safari to run in 32-bit mode. There's a new beta version which works without using input manager.
http://www.macosxhints.com/article.php?story=20090903043702715
Your comment caused me to go back and re-read everyones post. For the record I am not running this on Snow Leopard. Straight Leopard 10.5.8 with TextMate 1.5.9 (1510). So I know the keybinding is working as I can see the Edit Menu bar highlight. So clearly this is getting registered correctly. However its the behavior which is supposed to open a tmp buffer in TexMate which doesn't work. It is clear that simply shifting to TM and typing with a save won't work. This caused me to consider other methods of doing this same thing. 1Passwd has written up a bunch of methods to make this work. There is also a low level method mach_inject which could facilitate this too.
Hmmm..
On Tue, Sep 22, 2009 at 7:32 AM, Rick DeNatale rick.denatale@gmail.comwrote:
On Mon, Sep 21, 2009 at 3:12 PM, Steven Klass sklass@pointcircle.com wrote:
Hi Steve, I too am seeing the exact same behavior. For me using the debug methods outlined here and here do not show anything useful. FWIW other Input manager (Chax and 1Passwd) are working.
But Chax and 1Password aren't working with 64 bit applications using input manager.
The current non-beta version of 1Password won't work in SL with Safari, unless you set up Safari to run in 32-bit mode. There's a new beta version which works without using input manager.
http://www.macosxhints.com/article.php?story=20090903043702715
-- Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Would someone who has this running on 10.5.8 with 1.5.9 please do the following and TextMate open and Safari pointed at http://www.google.com
From the terminal sample TextMate 10
switch to a Safari and the input dialog box at Safari type your sequence ⌃⌘E. From this Textmate should pop up type the word test and save it back to Safari.
When you are done send me your log please.
Thanks
On Tue, Sep 22, 2009 at 7:43 AM, Steven Klass sklass@pointcircle.comwrote:
Your comment caused me to go back and re-read everyones post. For the record I am not running this on Snow Leopard. Straight Leopard 10.5.8 with TextMate 1.5.9 (1510). So I know the keybinding is working as I can see the Edit Menu bar highlight. So clearly this is getting registered correctly. However its the behavior which is supposed to open a tmp buffer in TexMate which doesn't work. It is clear that simply shifting to TM and typing with a save won't work. This caused me to consider other methods of doing this same thing. 1Passwd has written up a bunch of methods to make this work. There is also a low level method mach_inject which could facilitate this too.
Hmmm..
On Tue, Sep 22, 2009 at 7:32 AM, Rick DeNatale rick.denatale@gmail.comwrote:
On Mon, Sep 21, 2009 at 3:12 PM, Steven Klass sklass@pointcircle.com wrote:
Hi Steve, I too am seeing the exact same behavior. For me using the debug methods outlined here and here do not show anything useful. FWIW other Input manager (Chax and 1Passwd) are working.
But Chax and 1Password aren't working with 64 bit applications using input manager.
The current non-beta version of 1Password won't work in SL with Safari, unless you set up Safari to run in 32-bit mode. There's a new beta version which works without using input manager.
http://www.macosxhints.com/article.php?story=20090903043702715
-- Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I just noticed this in the console - I don't know if this helps.. 9/21/09 9:47:31 AM TextMate[1120] didn't find rule text.xml or this one..
9/21/09 9:03:33 PM Lingon[14112] Error loading /Library/InputManagers/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate: dlopen(/Library/InputManagers/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate, 265): no suitable image found. Did find: /Library/InputManagers/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate: GC capability mismatch
On Tue, Sep 22, 2009 at 9:27 PM, Steven Klass sklass@pointcircle.comwrote:
Would someone who has this running on 10.5.8 with 1.5.9 please do the following and TextMate open and Safari pointed at http://www.google.com From the terminal
sample TextMate 10
switch to a Safari and the input dialog box at Safari type your sequence ⌃⌘E. From this Textmate should pop up type the word test and save it back to Safari.
When you are done send me your log please.
Thanks
On Tue, Sep 22, 2009 at 7:43 AM, Steven Klass sklass@pointcircle.comwrote:
Your comment caused me to go back and re-read everyones post. For the record I am not running this on Snow Leopard. Straight Leopard 10.5.8 with TextMate 1.5.9 (1510). So I know the keybinding is working as I can see the Edit Menu bar highlight. So clearly this is getting registered correctly. However its the behavior which is supposed to open a tmp buffer in TexMate which doesn't work. It is clear that simply shifting to TM and typing with a save won't work. This caused me to consider other methods of doing this same thing. 1Passwd has written up a bunch of methods to make this work. There is also a low level method mach_inject which could facilitate this too.
Hmmm..
On Tue, Sep 22, 2009 at 7:32 AM, Rick DeNatale rick.denatale@gmail.comwrote:
On Mon, Sep 21, 2009 at 3:12 PM, Steven Klass sklass@pointcircle.com wrote:
Hi Steve, I too am seeing the exact same behavior. For me using the debug
methods
outlined here and here do not show anything useful. FWIW other Input manager (Chax and 1Passwd) are working.
But Chax and 1Password aren't working with 64 bit applications using input manager.
The current non-beta version of 1Password won't work in SL with Safari, unless you set up Safari to run in 32-bit mode. There's a new beta version which works without using input manager.
http://www.macosxhints.com/article.php?story=20090903043702715
-- Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Wed, Sep 23, 2009 at 12:37 AM, Steven Klass sklass@pointcircle.com wrote:
I just noticed this in the console - I don't know if this helps.. 9/21/09 9:47:31 AM TextMate[1120] didn't find rule text.xml or this one.. 9/21/09 9:03:33 PM Lingon[14112] Error loading /Library/InputManagers/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate: dlopen(/Library/InputManagers/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate, 265): no suitable image found. Did find: /Library/InputManagers/Edit in TextMate/Edit in TextMate.bundle/Contents/MacOS/Edit in TextMate: GC capability mismatch
Note the section Garbage Collection here http://wiki.macromates.com/Troubleshooting/EditInTextMate
I suspect that the root cause might well be that some apps, Safari, Mail... are now using GC when they didn't before, and that that is the case for both Leopard AND Snow Leopard.
Just a guess.
On 24 Sep 2009, at 00:20, Rick DeNatale wrote:
[...] Note the section Garbage Collection here http://wiki.macromates.com/Troubleshooting/EditInTextMate
I suspect that the root cause might well be that some apps, Safari, Mail... are now using GC when they didn't before, and that that is the case for both Leopard AND Snow Leopard.
I am only aware of Xcode which use GC and you wouldn’t see the menu item if the app used GC.
I checked in a built version of the Edit in TextMate input manager (with optional debug output) to the TextMate bundle.
Someone had the problem but it disappeared when he used this one or built it himself. So people with the problem should remove the input manager they have presently installed, checkout latest TextMate bundle and then use the Install “Edit in TextMate”… command from that bundle. See if that fixes it.
Or alternatively just checkout the binary directly to /Library/ InputManagers and do the proper sudo chown/chmod voodoo: http://svn.textmate.org/trunk/Bundles/TextMate.tmbundle/Support/Edit%20in%20...
Hi All
I just followed Allan's suggestion of downloading the new debug version of the TextMate Bundle and it now works for me with Mail and Safari
Thanks Steve
On 24-Sep-09, at 5:18 AM, Allan Odgaard wrote:
On 24 Sep 2009, at 00:20, Rick DeNatale wrote:
[...] Note the section Garbage Collection here http://wiki.macromates.com/Troubleshooting/EditInTextMate
I suspect that the root cause might well be that some apps, Safari, Mail... are now using GC when they didn't before, and that that is the case for both Leopard AND Snow Leopard.
I am only aware of Xcode which use GC and you wouldn’t see the menu item if the app used GC.
I checked in a built version of the Edit in TextMate input manager (with optional debug output) to the TextMate bundle.
Someone had the problem but it disappeared when he used this one or built it himself. So people with the problem should remove the input manager they have presently installed, checkout latest TextMate bundle and then use the Install “Edit in TextMate”… command from that bundle. See if that fixes it.
Or alternatively just checkout the binary directly to /Library/ InputManagers and do the proper sudo chown/chmod voodoo: http://svn.textmate.org/trunk/Bundles/TextMate.tmbundle/Support/Edit%20in%20...
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
For the record I also can confirm I did the following: cd /Library/InputManagers/ sudo mv Edit\ in\ TextMate/ /tmp/Edit\ in\ TextMate.old sudo svn co http://svn.textmate.org/trunk/Bundles/TextMate.tmbundle/Support/Edit%20in%20...
Quit and restart Safari - Go to http://www.google.com clicked in the search bar ⌃⌘E and viola! Magic!
Thanks Alan!!
On Thu, Sep 24, 2009 at 5:18 AM, Allan Odgaard mailinglist@textmate.orgwrote:
On 24 Sep 2009, at 00:20, Rick DeNatale wrote:
[...] Note the section Garbage Collection here http://wiki.macromates.com/Troubleshooting/EditInTextMate
I suspect that the root cause might well be that some apps, Safari, Mail... are now using GC when they didn't before, and that that is the case for both Leopard AND Snow Leopard.
I am only aware of Xcode which use GC and you wouldn’t see the menu item if the app used GC.
I checked in a built version of the Edit in TextMate input manager (with optional debug output) to the TextMate bundle.
Someone had the problem but it disappeared when he used this one or built it himself. So people with the problem should remove the input manager they have presently installed, checkout latest TextMate bundle and then use the Install “Edit in TextMate”… command from that bundle. See if that fixes it.
Or alternatively just checkout the binary directly to /Library/ InputManagers and do the proper sudo chown/chmod voodoo: http://svn.textmate.org/trunk/Bundles/TextMate.tmbundle/Support/Edit%20in%20...
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Just a note:
Yes, this got it working again but the new version doesn't respect the URLAssociations.
I think it's because when you invoke the command from WebKit at least, the file is opened with <Page Subject>.webkit for the name, instead of the URL. Not too big of a deal and I'm happy to still just have this alive and kicking, but though I'd point it out.
— Jesse
On Sep 24, 2009, at 10:44 AM, Steven Klass wrote:
For the record I also can confirm I did the following:
cd /Library/InputManagers/ sudo mv Edit\ in\ TextMate/ /tmp/Edit\ in\ TextMate.old sudo svn co http://svn.textmate.org/trunk/Bundles/TextMate.tmbundle/Support/Edit%20in%20...
Quit and restart Safari - Go to http://www.google.com clicked in the search bar ⌃⌘E and viola! Magic!
Thanks Alan!!
On Thu, Sep 24, 2009 at 5:18 AM, Allan Odgaard <mailinglist@textmate.org
wrote:
On 24 Sep 2009, at 00:20, Rick DeNatale wrote:
[...] Note the section Garbage Collection here http://wiki.macromates.com/Troubleshooting/EditInTextMate
I suspect that the root cause might well be that some apps, Safari, Mail... are now using GC when they didn't before, and that that is
the
case for both Leopard AND Snow Leopard.
I am only aware of Xcode which use GC and you wouldn’t see the menu item if the app used GC.
I checked in a built version of the Edit in TextMate input manager (with optional debug output) to the TextMate bundle.
Someone had the problem but it disappeared when he used this one or built it himself. So people with the problem should remove the input manager they have presently installed, checkout latest TextMate bundle and then use the Install “Edit in TextMate”… command from that bundle. See if that fixes it.
Or alternatively just checkout the binary directly to /Library/ InputManagers and do the proper sudo chown/chmod voodoo: http://svn.textmate.org/trunk/Bundles/TextMate.tmbundle/Support/Edit%20in%20...
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi All, thanks Allan, I just followed your suggestion and I have the Edit in Textmate working as well, as the others.
Thanks Edoardo
On 23 Sep 2009, at 06:27, Steven Klass wrote:
Would someone who has this running on 10.5.8 with 1.5.9 please do the following and TextMate open and Safari pointed at http:// www.google.com From the terminal
sample TextMate 10
switch to a Safari and the input dialog box at Safari type your sequence ⌃⌘E. From this Textmate should pop up type the word test and save it back to Safari.
Not sure what this should show, but during the last month/months there have been a handful of people reporting that the hack installs fine, but using the menu item is a no-op. Maybe a newer WebKit (though it still works for me on SL)? So far most people disappear again (they report this on IRC) and the two guys who stayed long enough to troubleshoot were both using it with regular one-line <input> fields which it does not work with (it did in the past, but WebKit is a moving target and I stopped chasing it).
Best to test this in TextEdit, as that is using NSTextView rather than WebKit.
Ciaran did a debug version of the input manager: http://github.com/ciaran/edit-in-textmate with some extra debug output. You can install that instead, and see what you get out of the output. You need to enable debug messages:
defaults write -globalDomain EditInTextMateDebugEnabled -bool YES