Hi everyone,
I'm trying to run a ruby script via Cmd-R, and I get this error:
RubyMate r6189 running Ruby r1.8.4 (/usr/local/bin/ruby)
>>> symlink_dotfiles.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in
`filter_stdout': undefined method `test_script?' for nil:NilClass
(NoMethodError) from /Users/sean/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:59:in `emit_html' from
/Users/sean/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:53:in `emit_html' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:73
The script runs fine in the shell, using the same ruby executable.
Any idea where something went wrong?
Thanks!
Sean
Am checking out textmate (am a 10 year bbedit user). So far I love
what I see, tho I have much to learn.
I am trying the blogging bundle with movable type 3.33 (I upgraded
from 3.2 just for this issue, but that didn't help. At least I got a
better blog out of it :))
I can retrieve posts fine.
When I make a new post and try cat tab, I get:
/usr/lib/ruby/1.8/xmlrpc/parser.rb:154:in `fault': wrong fault-
structure: {"faultCode"=>"Client", "faultString"=>"Failed to locate
method (getCategories) in class (metaWeblog) at /usr/home/geeksrus/
public_html/cgi-bin/mt/extlib/SOAP/Lite.pm line 2180.\n"} (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:562:in `tag_end'
from /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:26:in `parse'
from /usr/lib/ruby/1.8/rexml/document.rb:171:in `parse_stream'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:722:in `parse'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:462:in `parseMethodResponse'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /tmp/temp_textmate.GnKX4C:46
from /tmp/temp_textmate.GnKX4C:45:in `popen'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:11:in `call_with_progress'
from /tmp/temp_textmate.GnKX4C:45
MarsEdit works fine.
Thanks and I look forward to learning more about TextMate!
Steve
Hi,
this already cropped up in the list: sometimes
the Latex bundle does not catch errors which
are however catched by TeXshop (and by
collaborators :). But if you look into the
.log file you see that the error was correctly
identified by TeX, so the problem must be in
the bundle.
To reproduce, create a new .tex file containing
\documentclass{article}
\begin{document}
\begin{equation}
\frac a b }
\end{equation}
\end{document}
(notice the unmatched brace).
If you save the file as "a.tex" and
run CMD-R, the error is caught (catched?).
Now the fun: save the file as "a-b.tex"
(a hyphen must be in the name) and run
CMD-R again. The error is not caught
(but is reported in the a-b.log file).
So Haris: this has something to do with
how the bundle handles files. Or not?
Piero
PS happy new year everybody!
It stopped working for me. I reinstalled and it still does not work.
I want to keep all my files in Markdown and convert to html ad back
to markdown for saving.
If I Shift-Apple-} it deleted the highlighted html
If I Shift-Apple-} the spinning wheel turns for a moment and nothing
changes.
Can anyone help.
Hi,
Regarding to the R-bundle command 'Command Usage':
I find this idea very good, but it supposes that on every Mac
'texscan' is installed.
So here's my suggestion for it:
1)
I don't use Ruby, only Bash with a tiny Perl snippet. It is a bit
faster.
2)
I'm looking for HTML files, not for tex files.
3)
It could happen that the structure of a help file is inconsistent,
i.e. no 'Usage' header. If so, now it outputs the first 1100
character of the help as plain text. Maybe you find what do you are
looking for.
4)
I suppressed the error messages coming from the 'find' command
mentioning that there is no permission to do something.
Here the code:
________________
COM=`tail`
FILES=`find "${R_HOME:-/Library/Frameworks/R.framework/Resources}"/
library -name $COM.html -print 2>/dev/null`
if [ ${#FILES} -eq 0 ]; then
echo "Nothing found for '$COM'"
exit_show_tool_tip
fi
for F in $FILES
do
cat "$F" | perl -e '$a="";while(<>){$a.=$_};$a=~m/<h3>Usage<\/h3\>[.|
\n]+<pre>(.*?)<\/pre>/sim;if($1){print "Usage:\n".$1;}else{$a=~s/<.*?
>//gms;$a=~s/\n{3,}/\n\n/gms;print substr($a,0,1100)."\n[...]"}'
done
__________________
Any comments?
Best,
-Hans
In a nutshell, the new XML Catalog features allow you to easily
configure TeXMLMate to substitute local resources (like DTDs and
other schemas) for remote resources referenced by URLs. This allows,
for example, convenient validation of XHTML documents against a local
(possibly customized) copy of an XHTML DTD without having to change
the URLs used in the XHTML doctype to local file paths. Parsing/
validation with local schemas is much faster and allows offline
validation.
To download:
http://www.ditchnet.org/texmlmate/
For more complete details see the description here:
http://www.ditchnet.org/wp/2007/01/03/texmlmate-13-released/
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us
Hi!
I have here a problem with the Blogging-bundle and free blogs at
wordpress.com
If I try to fetch a posting I get the following error:
Received Exception: Wrong Size. Was 3732, should be <unknown>
No posts are available!
Posts are available.
I can post though but after posting it, the posting has an error in
the first line (and the date looks strange:
Received exception:Wrong size. Was 1275, should be <unknown>
Type: Blog Post (Markdown)
Blog: a Shortcut a Day
Post: 5
Title: testpost3
Date: -4712-01-01 01:00:00 +0100
Pings: Off
Comments: Off
testpost
The posting looks right in the dashboard of wordpress and date and
everything else looks right as well.
I am quite sure that I set up things right because it worked with my
blogs which weren't on wordpress.com - here's the content of the
setup-file:
# List of Blogs
#
# Enter a blog name followed by the endpoint URL
#
# Blog Name URL
a Shortcut a Day http://nielsk@macshortcut.wordpress.com/xmlrpc.php
Any help appreciated
Niels
Hi,
I just found a very tiny bug within the R function getSig.r of that
bundle.
If you type 'plot.lm' and invoke that command to get the template it
gives you a weird output because within the formals you find an item
'caption', and within this item there is a '\n'. The ruby pop down
menu, of course, interprets a '\n' as a new line.
To avoid this I would include within the getSig.r at line 12 this:
10: if (is.symbol(f[[arg]]) && f[[arg]] == "") arg else list(arg, f
[[arg]])
11: ),
12: function (arg, escape=function(x) ifelse(snippet, {gsub("([\\
$`}])", "\\\\\\1", x);gsub("\n", "", x)}, x))
13: if (is.list(arg))
i.e. I add a gsub in the 'escape' function to delete each '\n'
I don't know whether this will be good. The case is very rarely.
Comments?
Best,
-Hans
HI,
sorry for the, maybe stupid, question, but I didn't find something in
the internet.
How can I make a copy of an existing bundle? To duplicate commands or
snippets, that's simple, but for an entire bundle?
If I simply create a new folder.tmbundle and copy&paste things in it,
then I also have duplicated uuid's.
Thanks in advance
-Hans
Hi there
I am very new to programming and ive used to make programm in Flash.
Its just a little project and i do programming in my freetime as a
hobby.
My 30 days of using Flash for free are over (since a half year now ;)
and i wanted to re-wake this project and do it without Flash using
TextMate and the ActionScript Bundle.
I had a look at the Bundle Developer Site and followed the
instructions mentioned there. But i still have absolutely NO CLUE
what to do.
My first intention, just to see how things are working i wanted to
make a trace output - which says "Hello World".
What am i doing wrong? Ive tried to use the ActionScript template and
i did a script which just says
trace ("Hello World");
I did use the "Install MTASC Support Files" and i did a try
without...nothing happens.
Can anybody help or does know where i get some information?
Thanks for your help
==================================
Zettt
azeitler(a)zettt.de
==================================
I've been trying to set the foldingStartMarker and foldingStopMarker
for a simplified variant of Markdown but have had no success. The
file would look something like this
# First heading #
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse
vel nunc.
Suspendisse egestas erat vitae pede. Phasellus quis libero et tortor
commodo
auctor. Sed et erat. Aliquam sed lectus. Fusce semper elit nec ipsum.
Morbi
sem nisl, tristique id, venenatis quis, gravida sed, neque. Etiam ut
felis. Curabitur leo magna, molestie vitae, blandit et, fringilla
vitae, purus.
# Second heading #
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse
vel nunc.
Suspendisse egestas erat vitae pede. Phasellus quis libero et tortor
commodo
auctor. Sed et erat.
Aliquam sed lectus. Fusce semper elit nec ipsum. Morbi
sem nisl, tristique id, venenatis quis, gravida sed, neque. Etiam ut
felis. Curabitur leo magna, molestie vitae, blandit et, fringilla
vitae, purus.
# Third heading #
etc
I'd like to fold so that only the heading lines show.
The foldingStartMarker is easy:
foldingStartMarker = '^# +';
But I can't get a foldingStopMarker that works. What I'd like to use
is a blank line followed by a positive lookahead to a line that
starts with a hash and a space, but
foldingStopMarker = '^$\n(?=^# +)';
doesn't work, even though that regex works in the Find dialog box.
Are the start and stop markers restricted to single line patterns?
The manual suggests that, but it isn't explicit. Does anyone have any
ideas?
--
Dr. Drang
Hi,
Running Octave scripts from Textmate using Matlab bundle works fine, but I'm not sure what sort of output I should use. I have set it to 'Show as HTML', since I don't want to create a new file for each run and the tooltip option is too volatile. The only problem is the text comes out without any line breaks, which is very painful to read especially when it comes to vectors and matrices.
Any tip?
thanks,
baptiste
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
> Sounds quite interesting. ;)
>
> How do i do this?
Google is your friend :)
Take a look at the documentation on the MTASC website, and take a
look at Ralf Bokel's hacked version (HAMTASC) for more fun with
command-line options.
The howto I pointed to on my blog has a ZIP that you can download for
the walkthrough. Good luck!
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com