I'm trying to use the Textile bundle, but I get the following when I preview or render a textile doc:
/Users/jay/Library/Application Support/TextMate/Pristine Copy/Bundles/Textile.tmbundle/Support/lib/redcloth.rb:167: RedCloth is not a class (TypeError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /tmp/temp_textmate.kg1pi6:6
I don't even know where to start troubleshooting. I looked at the ruby version and path notes in the wiki, but they don't seem to apply here. I'm using:
OS X 10.6.2 (32-bit kernel) TextMate build 1589 Latest (2009-11-13) Textile plugin from github, fetched with GetBundles All other bundles updated with GetBundles
~% export | grep TM_ TM_SCRATCH_DIRECTORY='/Users/jay/Library/Application Support/TextMate/Scratch Files' ~% which gem /usr/bin/gem ~% which ruby /usr/bin/ruby ~% gem --version 1.3.5 ~% ruby --version ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] ~% echo $PATH /opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/X11/bin:/Users/jay/bin ~% gem list | grep Cloth RedCloth (4.2.2, 4.2.1, 4.2.0, 4.1.9, 4.0.3, 4.0.2, 4.0.1) ~% gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - EXECUTABLE DIRECTORY: /usr/bin - RUBYGEMS PLATFORMS: - ruby - universal-darwin-10 - GEM PATHS: - /Library/Ruby/Gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - "gempath" => ["/Library/Ruby/Gems/1.8"] - "gem" => "--no-ri --no-rdoc" - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"] - REMOTE SOURCES: - http://gems.rubyforge.org/ - http://gems.github.com
On 1/11/10 5:17 PM, in article 4B4BCD99.9070705@jay.fm, "Jay Levitt" lists-textmate@jay.fm wrote:
I'm trying to use the Textile bundle, but I get the following when I preview or render a textile doc:
/Users/jay/Library/Application Support/TextMate/Pristine Copy/Bundles/Textile.tmbundle/Support/lib/redcloth.rb:167: RedCloth is not a class (TypeError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /tmp/temp_textmate.kg1pi6:6
Jut a guess, but it's looking like the code is requiring the redcloth gem but you haven't actually installed it. m.
Which version of the RedCloth gem do you have? If I recall, this is a problem between versions 3 and 4 of the gem -- one of them declares RedCloth as a module (I think this is 4) and the other declares it as a class. In the past, just changing whatever line is re-opening the RedCloth class to be re-opening the module has always fixed it for me.
Cheers, Eric
Eric O'Connell Lead Developer - eric@bodytalksystem.com www.bodytalksystem.com
On Jan 11, 2010, at 8:20 PM, Matt Neuburg wrote:
On 1/11/10 5:17 PM, in article 4B4BCD99.9070705@jay.fm, "Jay Levitt" lists-textmate@jay.fm wrote:
I'm trying to use the Textile bundle, but I get the following when I preview or render a textile doc:
/Users/jay/Library/Application Support/TextMate/Pristine Copy/Bundles/Textile.tmbundle/Support/lib/redcloth.rb:167: RedCloth is not a class (TypeError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /tmp/temp_textmate.kg1pi6:6
Jut a guess, but it's looking like the code is requiring the redcloth gem but you haven't actually installed it. m.
-- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 12 Jan 2010, at 02:17, Jay Levitt wrote:
I'm trying to use the Textile bundle, but I get the following when I preview or render a textile doc: [...]
Try http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles as this should work out of the box, but there have been changes done both to the bundle and support folder so if you use a checkout you need both and you need to have them up to date.