Howdy.
I'm in the middle of writing a live updating command for ZenTest
autotest.
I want to use the RubyMate error handling stuff to make all the log
links live and such.
Is that core functionality usable separate from RubyMate?
thomas Aylott — subtleGradient — CrazyEgg
Hello -
I mistaken removed the File Pattern that appears in the Advance >
Folder Reference section of the Preference Panel.
Can someone send me the default File Pattern, or let me know how to
reset it...
Thanks!
- Chris Ryan
I am using TextMate 1.5.3 and the latest bundles checked out from the
repository. When I open bubbleSort.java [1] in TextMate, some of the
comments are highlighted as comments; some aren't. Bug?
Also, when I select all text in the file then do Text > Indent
Selection, the file isn't properly indented. (Note especially the
last few lines of the file.) Is this a bug, or does the command
simply not handle inter-method Java indentation?
Thanks,
Trevor
[1] http://www2.latech.edu/~box/ds/bubbleSort.java
Hello!
I try to develop my own commands. So I'm new to Ruby, my commands
sometimes are buggy. How can I easily debug my commands. How do you
do it?
Helge
I've attached a complete rewrite of the Wikipedia linking code. It's a
little more modular, a lot more inclusive and a bit smarter than before.
I am definitely still open to input (Haris ;-)) on my coding technique and
anything that can be done to improve the command. I'm just getting my feet
wet with Ruby, regular expressions and TextMate in general.
If you're currently using the command I distriubted previously on this list,
Brett Inc. "strongly urges it's users to upgrade to this latest release".
I set up WordPress blogging per the help and screencast instructions. When I
fetch posts (I just did an svn up on the bundle, so I¹m at v.5327), I get
the following error:
/usr/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc': HTTP-Error: 406 Not
Acceptable (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:31:in
`getRecentPosts'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in
`fetch'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:545:in
`popen'
from /Library/Application Support/TextMate/Support/lib/progress.rb:11:in
`call_with_progress'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:545:in
`fetch'
from /tmp/temp_textmate.mU5BiJ:3
The setup is:
# List of Blogs
#
# Enter a blog name followed by the endpoint URL
#
# Blog Name URL
finesite http://admin@myfinesite.com/wp/xmlrpc.php
Is this a familiar result and is there something stupid I¹m missing? BTW:
There is an admin user for the blog and I¹ve tried:
* siteadmin(a)myfinesite.com
* admin(a)www.myfinesite.com
Not sure where to go from here. Help appreciated!
Thanks
This is my template command
if test \! -e "$TM_NEW_FILE"; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
TM_PACKAGE=`sed <<<"$TM_NEW_FILE_DIRECTORY" 's#.*classes/
##'|tr / .`
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< class.as > "$TM_NEW_FILE"
fi
And TM_PACKAGE comes out blank.
what am I doing wrong?
On 26/9/2006, at 19:52, Ketan Anjaria wrote:
> In a previous version of textmate the following code for a template
> worked to create a TM_PACKAGE variable
>
> TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n 's#.*classes/\
> (.*\)#\1#p'|tr / .` \
Try this: TM_PACKAGE=`sed <<<"$TM_NEW_FILE_DIRECTORY" 's#.*classes/
##'|tr / .`
I have only had a chance to test this on Wordpress. It needs to be placed
in the Blogging Bundle because it references the blogging.rb file in that
support directory.
If anyone using the blogging bundle would be willing to give this a try and
let me know if it works with other platforms, it would be greatly
appreciated.
Thanks,
Brett