Today I got this error trying to post / fetch some entries
tm_dialog: you have updated the tm_dialog tool to v8 but the Dialog
plug-in running is still at v4.
tm_dialog: either checkout the PlugIns folder from the repository or
remove your checkout of the Support folder.
tm_dialog: if you did checkout the PlugIns folder, you need to
relaunch TextMate to load the new plug-in.
/Users/gotchi/Library/Application Support/TextMate/Support/lib/
dialog.rb:42:in `initialize': No such dialog ()
(TextMate::WindowNotFound)
} for command: /Users/gotchi/Library/Application\ Support/TextMate/
Support/bin/tm_dialog -a -p \<\?xml\ version\=\"1.0\"\ encoding\=
\"UTF-8\"\?\>'
'\<\!DOCTYPE\ plist\ PUBLIC\ \"-//Apple\ Computer//DTD\ PLIST\ 1.0//EN
\"\ \"http\://www.apple.com/DTDs/PropertyList-1.0.dtd\"\>'
'\<plist\ version\=\"1.0\"\>'
'\<dict\>'
'\ \<key\>details\</key\>'
'\ \<string\>\</string\>'
'\ \<key\>isIndeterminate\</key\>'
'\ \<true/\>'
'\ \<key\>summary\</key\>'
'\ \<string\>Contacting\ Server\ “blog.gotchi.at”…\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Fetch\ Post\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Users/gotchi/Library/Application Support/
TextMate/Support/lib/dialog.rb:25:in `new'
from /Users/gotchi/Library/Application Support/TextMate/Support/lib/
dialog.rb:25:in `dialog'
from /Users/gotchi/Library/Application Support/TextMate/Support/lib/
progress.rb:38:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.87V0KW:3
I tried to update all Bundles with the "GetBundle" Plugin but nothing
changed.
I am sure this topic was already mentioned but I wasn't able to find
anything in the archives or my mailbox (cause of deleting unnecessary
things).
Thanks for helping
herbert
Does anyone have a working command to trigger YummyFTP's insanely
cool AutoRoute feature?
I want to be able to click "CMD-Shift-U" and have my current file
magically get uploaded to the correct server and location. I've found
accounts online of people doing this, but they don't say exactly how
it's done.
Thanks in advance!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Could the list help me with the following: I like to have a command
that, when activated with the caret in a (unique) file-in-project
name, finds this file and loads it automatically in textmate.
The function I'm looking for is comparable to that offered by the
txmt URI with 2 differences: (1) with the txmt URI any text file can
be loaded (I only want a file from my textmate project) and (2) the
full path and file name needs to be specified (I only want to give
the file name).
Any help is appreciated.
-- Bert
Brad,
I'd not used tags before, and I like the cloud so I'll toy with it.
However, adding some tags via MT fetches:
ype: Blog Post (Markdown)
Blog: Geeks R Us
Link: http://www.geeksrus.com/archives/000978.html
Post: 978
Title: Blog Entry from TextMate
Keywords:
Tags: Software, TextMate
Format: markdown_with_smartypants
Date: 2007-01-03 21:52:26 -0800
Pings: On
Comments: On
Basename: blog_entry_from
If I tack on ', Fred' to the tags and post, the tag is tossed. What
am I missing at this late hour? :)
Steve
Hi,
I look at 'Insert Command Template' and this one of my favorites ;)
Nevertheless I have some humble suggestions to improve it:
1)
Now this command executes the apropos function within a new fresh R
session. This means that it doesn't know which libraries I'm
currently using and it doesn't know which functions I defined within
my R session. To use 'Insert Command Template' also for this you
should load the function 'getSig.r' in my current session (renamed in
'.getSig' ) and executes this within my session to get these
signatures too.
By doing so you would increase the speed of it enormously and you can
insert signatures for user-defined functions and functions coming
from loaded libraries.
The disadvantage of it would be that you have such queries in your
current session; ok you don't see them in the TM R console window,
but if you save it workspace you would have these.
To avoid this you could think about to write the answer of the query
into a file and load it in TM.
Or, if you don't interested in the user-defined functions you could
start a new R session which loads all libraries which are loaded in
my current session.
(I don't know whether this would also work for user-defined fucntions?)
2)
If you use the approach in 1) then you can do more elaborated things
with it because of the speed.
Examples:
-If I look for for a keyword it will insert the signature like the
old version. If there is nothing found it will look for functions
which begins with the keyword like the old version.
-If I type e.g. 'data.' it lists all methods for 'data.' like
data.class, data.frame etc. but not 'dataentry'
-If I type e.g. '.difftime' you get all functions where '.difftime'
is specified like mean.difftime, print.difftime. To insert the
signature you have to select the keyword in beforehand otherwise it
shows a tooltip.
-If I have no idea about the complete name of a function you can type
e.g. '.load.'. This would look for '*load*' as regexp. Furthermore
sometimes I cannot remember whether the a function is called
'shownames' or 'showNames', so you can write '.names.' and it looks
for '*names*|*Names*'.
I would use periods for '.foo.' for indicating this because it will
be caught be Ruby's getword function.
Of course you can do more things:
-You could catch the 'apropos()' function and run it in TM and print
the result as pop down menu
and and and
What do you think about it?
To change to code would be relatively easy.
Best,
-Hans
Dear group,
Thanks for your excellent PyMate. Unfortunately I have started using
shelve to save intermediate results and have found a bug. Try the
following simplest script. (which uses the underlying problem pickle)
Please can somebody check that the error below occurs on the minimum
script that I have. I have copied the PyMate output below. I
particularly want to know if I have corrupted my python bundle in
some way.
This script runs without error when using the normal textmate command
=============
import pickle
class testobject(object):
pass
pickle.dumps(testobject())
=============
HIDE STDERR SHOW STDERR
Python 2.4.3 - PyMate r5848
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> shelvetest.py
forcing redraw!!! don't remove
PicklingError: ("Can't pickle : it's not found as __main__.testobject",)
Traceback:
function module body
in shelvetest.py at line 6
function dumps ⎋
in pickle.py at line 1386
function dump ⎋
in pickle.py at line 231
function save ⎋
in pickle.py at line 338
function save_reduce ⎋
in pickle.py at line 415
function save ⎋
in pickle.py at line 293
function save_tuple ⎋
in pickle.py at line 576
function save ⎋
in pickle.py at line 293
function save_global ⎋
in pickle.py at line 760
Thanks
---
Nigel King
Hi,
I just thought about a tiny improvement regarding to display plots in
Preview.
If I want to plot something, Preview opens it. Fine. After doing that
I want to change the plot for instance. The new plot will be
calculated but Preview still displays the old one. I have to 'Revert'
it or close it before running the R script.
To make a quasi-update automatically here's a suggestion:
________________
defaults write /Applications/Preview.app/Contents/Info
NSAppleScriptEnabled -bool YES
P=$(osascript -e 'tell application "System Events" to (name of
processes) contains "Preview"')
if [ "$P" == "true" ]; then
osascript <<-AS2 &>/dev/null
tell application "Preview"
close every window
end tell
AS2
fi
"$TM_BUNDLE_SUPPORT/tmR.rb"
________________
Explanation:
'default write' has to execute only once to enable AppleScript in
Preview. So you can comment it out if set.
The next line checks whether Preview runs or not.
If Preview is running I close every window in Preview. This is a kind
of a small hack because AppleScript returns a warning 'missing
value', so I send it to the nirvana.
Both AppleScripts could be replaced by changing tmR.rb directly.
I.e., if tmp_dir is not empty and Preview is running (system(ps -aux
| grep Preview)) then call an AppleScript to close every window.
On the other hand it would be nice to have an easy way to set pdf()'s
'onefile' argument in order to be able to print all plots in one pdf.
Maybe solvable by using a TM variable?
Any comments?
All the best,
Hans
Sorry for the n00b questions, this is all new to me :)
I'm working on the blogger bundle, and saw that when I make end user
changes, those are mirrored into App Support, which rocks!
However, I'm tinkering with the ruby stuff (like I want it to upload
into /images/) just getting my feet wet and really don't want to be
mucking around inside of the app's bundle. Is there any way to
locally override the bundle file in App Support?
Thanks!
Steve
I'm trying to put together a grammar and having a hard time getting
the pattern matching right.
The line I'm interested in will be in the following format--
KW: [any text except a percentage sign can go in here] % (fold)
What I want to do is apply the scope comment.line.percentage from the
% sign to the end of the line, and variable.notes to everything in
between KW: and the percent sign. I also want to be able to use
Markdown-style italics within the variable.notes section.
Here is the patterns block as I have constructed it thus far:
patterns = (
{ name = 'comment.line.percentage';
match = '%.*$';
},
{ begin = '^KW:';
end = '% \(fold\)|$';
patterns = (
{ name = 'markup.italic.notes.variable';
match = '\*[^\*]+?\*';
},
);
contentName = 'variable.notes';
},
{ name = 'markup.italic.notes';
match = '\*[^\*]+?\*';
},
);
This does everything correctly except the % (fold) only acquires the
scope of the whole grammar and not the comment scope. Anything
following a percentage sign on a line that doesn't begin with KW: is
matched fine.
Any help on how to construct the grammar to match the end of this
line would be appreciated!
Colin Hahn
»Geben Sie mir Kaffee, dann mache ich Phänomenologie daraus.«
"Give me my coffee so that I can make phenomenology out of it." --
Edmund Husserl
ok it appears this was only tested on WordPress according to the
comments. :)
I duplicated "Category" into "Category MT" and changed the xmlrpc
call to:
blog_id = cred.blog_id
res = [{'categoryName' => cred.username},{'categoryName'=>'two'}]
res = TextMate.call_with_progress(:title => "Fetch
Categories", :message => "Contacting Server “#{cred.host}”…") do
cred.client.call("mt.getCategoryList", blog_id, cred.username,
password)
end
Now I get a list of categories! However they are not posted, because
MT does all of its category stuff with IDs. So more work is involved.
I guess nobody is using the Blogging bundle with MT?
Steve