Hi Textmate gurus,
I have only been messing around with Textmate for a few days now, but I am incredibly impressed, and I can see why it is called "the" text editor for Mac.
I had been using TeXshop for LaTeX (which is still a great program, but not nearly as powerful as Textmate), R.app for stats and numerical programming in R, and the X11-based idlde for IDL programming, and now I am glad to be switching to Textmate for all those needs.
One thing I am having trouble with, however, is getting the html R help to appear. When I select a valid R command (one for which help (command) in R would bring up the html help page for that command), no help file opens, and the returned tool tip says:
/tmp/temp_textmate.eOPTfa:8:in `require': No such file to load -- / Applications/TextMate.app/Contents/SharedSupport/Support/lib/ current_word (LoadError) from /tmp/temp_textmate.eOPTfa:8
I am no scripter, but I looked in the bundle editor at this command, and it is a pretty serious looking ruby script. Will I have to learn ruby to figure out what is going on here? or is it possibly something much more simple that I am overlooking?
The first few lines of the ruby script (after the shebang and a comment) are as follows:
require "#{ENV["TM_SUPPORT_PATH"]}/lib/exit_codes" require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape" require "#{ENV["TM_SUPPORT_PATH"]}/lib/web_preview" require File.join(ENV["TM_SUPPORT_PATH"], "lib/current_word") require 'base64'
now, I don't know anything about ruby, but I am guessing that these are perhaps some environment variables that I need to set in the Textmate preferences? If so, what is the proper way to assign more than one location to the TM_SUPPORT_PATH variable? do I simply put a colon between each absolute path name? If so, that takes care of the first three lines, but the last two are still a mystery to me.
If anyone could get me going in the right direction here, I would me most appreciative. Like I said before, I am no sctipter, other than the occasional shell script, but one of the really appealing aspects of Textmate is that it seems like a good way to learn about scripting through useful examples. If the solution to my problem is to learn enough ruby to understand what the script does so I can troubleshoot it, so be it, but in the meantime I wonder if there is a simpler solution?
Thanks, Paul
On 20 Dec 2006, at 06:16, Paul Levine wrote:
Hi Textmate gurus,
I have only been messing around with Textmate for a few days now, but I am incredibly impressed, and I can see why it is called "the" text editor for Mac.
I had been using TeXshop for LaTeX (which is still a great program, but not nearly as powerful as Textmate), R.app for stats and numerical programming in R, and the X11-based idlde for IDL programming, and now I am glad to be switching to Textmate for all those needs.
One thing I am having trouble with, however, is getting the html R help to appear. When I select a valid R command (one for which help (command) in R would bring up the html help page for that command), no help file opens, and the returned tool tip says:
/tmp/temp_textmate.eOPTfa:8:in `require': No such file to load -- / Applications/TextMate.app/Contents/SharedSupport/Support/lib/ current_word (LoadError) from /tmp/temp_textmate.eOPTfa:8
I am no scripter, but I looked in the bundle editor at this command, and it is a pretty serious looking ruby script. Will I have to learn ruby to figure out what is going on here? or is it possibly something much more simple that I am overlooking?
The first few lines of the ruby script (after the shebang and a comment) are as follows:
require "#{ENV["TM_SUPPORT_PATH"]}/lib/exit_codes" require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape" require "#{ENV["TM_SUPPORT_PATH"]}/lib/web_preview" require File.join(ENV["TM_SUPPORT_PATH"], "lib/current_word") require 'base64'
Hi Paul,
The point is that the ruby file current_word.rb in /Applications/ TextMate.app/Contents/SharedSupport/Support/lib/ is missing. The solution would be to get the latest cutting edge version of TM (via TM preferences), or make a svn checkout for this folder, or just copy the missing file from http://macromates.com/svn/Bundles/trunk/Support/ lib/ in your local lib folder.
Best, -Hans
On Dec 20, 2006, at 12:36 AM, Hans-Joerg Bibiko wrote:
On 20 Dec 2006, at 06:16, Paul Levine wrote:
Hi Textmate gurus,
I have only been messing around with Textmate for a few days now, but I am incredibly impressed, and I can see why it is called "the" text editor for Mac.
I had been using TeXshop for LaTeX (which is still a great program, but not nearly as powerful as Textmate), R.app for stats and numerical programming in R, and the X11-based idlde for IDL programming, and now I am glad to be switching to Textmate for all those needs.
One thing I am having trouble with, however, is getting the html R help to appear. When I select a valid R command (one for which help(command) in R would bring up the html help page for that command), no help file opens, and the returned tool tip says:
/tmp/temp_textmate.eOPTfa:8:in `require': No such file to load -- / Applications/TextMate.app/Contents/SharedSupport/Support/lib/ current_word (LoadError) from /tmp/temp_textmate.eOPTfa:8
Hi Paul,
The point is that the ruby file current_word.rb in /Applications/ TextMate.app/Contents/SharedSupport/Support/lib/ is missing. The solution would be to get the latest cutting edge version of TM (via TM preferences), or make a svn checkout for this folder, or just copy the missing file from http://macromates.com/svn/Bundles/trunk/ Support/lib/ in your local lib folder.
Best, -Hans
Thanks Hans! That did the trick. After only a couple of days, Textmate is already an instant favorite of mine. Now, for my first experience with the mailing list, I get a fast and helpful reply. Regards, Paul
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate