Midwestern weblificatiors
Loosely Typed in Ohio

TextMate Blogging Fix

I don’t know if this has been affecting anyone else, but I’ve been getting an awkward error when blogging with TextMate: trying to pull down categories for any blog would result in “Wrong Class NilClass, Not Allowed! No categories available!”

If you’re having this problem, here’s the fix that worked for me:

  1. Click Bundles -> Show Bundle Editor.
  2. Expand the Blogging category, select “Category”
  3. In the left pane, in the Command(s) textarea, you’ll see a chunk of code like the following: cred = Blogging.new endpoint = cred.endpoint username = cred.username password = cred.password res = TextMate.callwithprogress(:title => “Fetch Categories”, :message => “Contacting Server “#{cred.host}”…”) do cred.client.call(“metaWeblog.getCategories”, endpoint, username, password) end
  4. Replace the bolded username variable with cred.username. You’ll look like this now: textmate-blogging-bundle-editor.png

After that, the Category command seems to work just fine. I don’t know why, but cred.username resolves to the proper username for the blog after it’s typed in, but after username = cred.username, username still doesn’t evaluate properly. No idea what’s going on here, but no matter, the fix works!

Leave your mark

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Close
E-mail It
Socialized through Gregarious 42