When I invoke "Run Script (PyMate)" from the Python bundle, I get:
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`initialize': Permission denied -
/Users/darylspitzer/Programming/Altera/Perforce/miscellany/infrastructure/integration/integration_status.py
(Errno::EACCES) from
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`open' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:128:in
`initialize' from
/Applications/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:24:in
`new' from /Applications/TextMate/TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:24
This started happening yesterday, and then went away. Now it's back.
How do I make it go away for good?
I'm running 1.5.6 (1405).
hi there :)
if i do "mate project-dir" i can use mercurial pretty fine. but if i
do "mate framework project-dir" it says this:
abort: There is no Mercurial repository here (.hg not found)!
i've tried it having a file open and marking a directory or a file in
the tree but it doesn't matter.
does anybody know why this happens or how i can fix this?
regards,
oktay.
On 11/11/2007, at 11:00 PM, textmate-request(a)lists.macromates.com wrote:
>
> Granted svn can be a pain to set up, but is Mercurial generally
> accepted by the Open Source community? Right now, if someone wants to
> pass around a new Textmate bundle or Rails plugin, they point to an
> svn repo and the deal is done. I haven't looked into Mercurial too
> carefully, but if it's better and can be accessed by svn users
> transparently (riiiigggt :) then it could be a godsend.
>
> Any thoughts on that?
Heh,
There are a bunch of different version control systems out there
vying to the be the distributed version control system of choice. I
like DARCS and Monotone myself - there is more theory behind their
handling of the distribution/merging. Having said that, Mercurial has
a lot of momentum behind it at the moment - it is known as being fast
and easy to use.
The point above is correct though, if you want to make something
available to the unwashed masses, svn is the way to go. You have to
ask yourself if it is worth your time to set up svn, or if you're
happier using one of the other systems and telling the unwashed masses
they'll have to use it if they want your latest source...
Be well,
Will :-}
Hello,
I am working a lot with source code written using Emacs on Linux. The
prevailing convention is that tabs are presented as 8 spaces, but
indents are only 4 spaces. Indenting will insert spaces, and Emacs
seems to swap groups of 8 spaces for a tab.
If I use a tab size of 8 in Textmate, the source files display
correctly. Sadly, there is no way to tell Textmate to use an indent
size of 4.
It would be very useful is it was possible to tell TextMate to:
1. Draw tabs as 8 spaces
2. Use spaces when indenting
3. Intend with 4 spaces, not the 8 spaces from a tab
Is there any way to do this with TextMate at the moment?
I'm using TextMate 1.5.3 (1215)
--
Kind regards,
James Milne
I have the default main template "template_in.txt" and additionally
several License.txt templates. Based on a environment variable, I want
to concatenate the license with the main template, but I don't know
how
this is the default command to insert a template:
if [[ ! -f "$TM_NEW_FILE" ]]; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< template_in.txt > "$TM_NEW_FILE"
fi
I tried to to turn it into somethng like this:
if [[ ! -f "$TM_NEW_FILE" ]]; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< template_in.txt << License.txt > "$TM_NEW_FILE"
fi
unfortunately this doesn't work.
Anybody an idea how I can make this work ?
regards
--
Roberto Saccon
http://rsaccon.com
Hello,
Today I always receive the error message
Running bibtex on mt.tex
Traceback (most recent call last): File "/Applications/TextMate.app/
Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py",
line 443, in texStatus, isFatal, numErrs, numWarns =
run_bibtex(texfile=fileName) File "/Applications/TextMate.app/Contents/
SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py", line 67,
in run_bibtex return stat,fatal,err,warn UnboundLocalError: local
variable 'stat' referenced before assignment
I did some "experiments" with the Bibtex setup and Command Editing in
the bundle editor, but I never edited any of those python files
manually.
The bibtex command is:
# just to remind you of some useful environment variables
# see Help / Shell Variables for the full list
. "${TM_SUPPORT_PATH}/lib/html.sh"
. "${TM_SUPPORT_PATH}/lib/webpreview.sh"
# Prepare output window.
html_header 'Run BibTeX'
texMate.py bibtex 1
The typeset & view command looks like this:
# Source some support functions we need.
. "${TM_SUPPORT_PATH}/lib/html.sh"
. "${TM_SUPPORT_PATH}/lib/webpreview.sh"
# Prepare output window.
html_header 'Typeset & View' "$FILE"
# Compile.
texMate.py latex 1
RC=$?
html_footer
# Cleanup
# find . -name "*.log" -exec rm -rf {} \;
# find . -name "*.aux" -exec rm -rf {} \;
# find . -name "*.aux.bak" -exec rm -rf {} \;
# find . -name "*.toc" -exec rm -rf {} \;
exit $RC
I am using Version 1.5.7 (1436).
What should I do to fix this?
Thanks!
Ok, I'm trying to convert my existing CVS repository to a Mercurial
repository.
I've installed cvsps, and Mercurial version is the latest (form
the .dmg) and includes the convert extension.
I've tried
hg convert /Volumes/Macintosh\ HD/usr/local/cvsrep/pcs /
Repositories/pcs
with and without a sudo (wave that dead chicken!)... result - nada.
Has anyone managed to do this in the past? Is there an easier way? Any
ideas?
Aaaarrrgggh.
R
I'm sure why these should override user-specified engines but the
following packages are checked for when using texMate.py,
latexIndicators = ['pstricks' , 'xyling' , 'pst-asr' , 'OTtablx' ,
'epsfig' ]
xelatexIndicators = ['xunicode', 'fontspec']
Unfortunately, the regular expression that detects packages is
'([^%]|^)\\usepackage(\[[\w, \-]+\])?\{([\w\-]+)\}'
which detects commented packages including anything (eg, spaces) after
the '%'. Seems like the following may make more sense
'(^[^%]*)\\usepackage(\[[\w, \-]+\])?\{([\w\-]+)\}'
---------------------
Fernando Diaz
Department of Computer Science
University of Massachusetts
Amherst, MA 01003
---------------------
tel: (413) 545-3059
fax: (413) 545-1789
---------------------
email: fdiaz(a)cs.umass.edu
home: http://ciir.cs.umass.edu/~fdiaz
I just tried using the TODO bundle for the first time in a project
with folders. It appears to only search the files in the first folder
in the project. Is this a bug or user error?
--
Daryl Spitzer
Hey, I recently noticed a strange UI bug when launching TextMate, the
screenshot will explain it I think:
http://www.yiqiang.org/tm_drawer_bug.png
If you move the window around, the drawer will snap itself back to the main
window. It's not a very evil bug, but I thought I'd report it anyways :)
Cheers,
Yi
--
http://www.yiqiang.org
Hi all
please bear with me, I am just trying to get my head round the GTDAlt
bundle but it is not loving me back.
1) It is working ok, but although I duly created the two shell
variables TM_GTD_DIRECTORY and TM_GTD_INBOX and also a inbox.txt file
inside said directory I am still getting the error message "Some files
need to get created first" upon calling the "Process inbox" script. I
must have overlooked something but I am stuck.
2) I have been unable to find out what actually causes ticking the
checkbox in the HTML output back to the actual textfile to mark a task
as completed. It sometimes does, sometimes it just doesn't.
3) Are recurring actions aka "remind" an option?
4) When sorting tasks by using the Textmate "Line up/line down"
command, the focus does not stay with the line that I just shifted,
thus shifting it two or more lines up or down inconvenient. Is there a
way around this other than moving the caret?
Many thanks in advance, Textmate is a great tool that I appreciate more and more
Prion
Up until recently, Ive had great luck with the blogging bundle for
TextMate. However, now in both Tiger and Leopard I get this error
whenever I try to do anything (like Fetch Posts or Publish a Post).
Received exception:#<NoMethodError: undefined method `[]' for
nil:NilClass>
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/parsers/baseparser.rb:320:in `pull'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/parsers/streamparser.rb:16:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/document.rb:185:in `parse_stream'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/xmlrpc/parser.rb:717:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/xmlrpc/parser.rb:460:in `parseMethodResponse'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/xmlrpc/client.rb:421:in `call2'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/xmlrpc/client.rb:410:in `call'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/metaweblog.rb:34:in `newPost'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:531:in `post_or_update'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:36:in `call'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:36:in `call_with_progress'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:43:in `call'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:43:in `call_with_progress'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:
17:in `dialog'
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:40:in `call_with_progress'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:526:in `post_or_update'
/tmp/temp_textmate.GftXwA:3
...
Exception parsing
Line: 0
Position: 0
Last 80 unconsumed characters:
</methodResponse
I've scoured the web looking for info about this but cannot find
anything. Any suggestions would be greatly appreciated.
Thanks!
--
Matt Berther
http://www.mattberther.com
Greetings,
I use the GTDAlt bundle with TextMate to "get things done". Recently I
upgraded to Leopard and some of the functionality of the bundle broke
and it seems to be linked to an issue with Ruby. I'm not a Ruby
programmer (I'm barely an HTML guy) so I cannot really diagnose what's
going on with the bundle.
For example, I attempt to type the due date of a project by typing
'#' (shift + 4 on US keyboards) which brings up a date selection
window. Entering a date, or number of days from the current date does
not yield the desired output but instead prints the following to the
active file:
--code--
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/date/format.rb:230:in /bin/bash: -c: line 0: unexpected EOF while
looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filestrftime'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/date/format.rb:201:in /bin/bash: -c: line 0: unexpected EOF
while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filestrftime'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/date.rb:1343:in
--code--
This bundle worked wonderfully prior to installing OS X 10.5. Any
ideas what's going on here?
Thanks,
Mark
Hi there, I've been having some troubles including images in my LaTeX
projects lately. I think it was after some update of textmate, but I'm not
100% sure.
What annoys me, is that by using pdflatex in the terminal everything works
the way it should, but when using textmate, I get some strange errors. I
keep the imagefiles (png) in a folder images/imagename, and so the include
looks like this: \includegraphics{images/foo}. As said, using pdflatex in
terminal works like a charm, but textmate gives me this error: Latex Error:
./Introduction.tex:4 LaTeX Error: File `images/sensornetworks' not found.
adding the .png gives me another error: Latex Error: ./Introduction.tex:4
LaTeX Error: Cannot determine size of graphic in images/sensornetworks.png
(no BoundingBox).
but this ending shouldn't bee needed afaik.
So, I'm hoping for some help here, because I'm pretty much stuck.
regards
VeX
--
View this message in context: http://www.nabble.com/LaTeX-troubles-including-images-tf4764135.html#a13625…
Sent from the textmate users mailing list archive at Nabble.com.
I recently upgraded the OS on my server that holds my SVN repository,
and I had to re-check out my code.
So now, in TextMate, I get "permission denied" whenever I try to make
a commit. I can run the commit from Terminal (with a password
prompt), but not from within Textmate.
After the server upgrade, I believe I originally connected from
Terminal using svn+ssh. I assume that's the protocol it's still
using? I have the ssh-rsa key in my ~/.ssh/known_hosts file. I'm
using the same user name locally as on my server.
I also followed the instructions to create key pairs at ...
http://blog.macromates.com/2005/subversion-support-and-ssh-key-pairs/
... but it's still prompting me when I ssh through Terminal.
Can anyone point me to how to get TextMate to commit?
Thanks.
--
Dwayne Purper
Futura : Durham, NC USA
www.futuracreative.com
Not urgent an query, just looking for some insight...
I've put together a little bash script (that creates an AppleScript)
to stick an entry into Journler based on a parsed version of the
current line or selection:
input=${TM_SELECTED_TEXT:-$TM_CURRENT_LINE}
title=${input%\|*\|*}
tags=${input#*\|}
tags=${tags%\|*}
tags=${tags//, /\", \"}
tags=${tags%\", \"}
note=${input#*\|*\|*}
aplscr="tell application \"Journler\" to set en1 to make new entry
with properties {name:\"$title\", tags:{\"$tags\"}, rich text:\"$note
\"}"
osascript -e "$aplscr" &>/dev/null &
echo "Added entry\ntitle: $title; tags: {\"$tags\"}; note:$note"
echo "$aplscr"
Whilst it does work, I realised that there are more cunning minds at
work on this list than mine, and perhaps they might have some way to
clean-up those substitutions for the $tags variable in the middle. I
know I can do it using a sed script, but I was wondering if there was
some elegant bash trick I was missing....
Any ideas?
I put together a quick and moderately dirty hack to modify TextMate's Info.plist so that I get Quick Look support for text types that it claims on Leopard. Source code only, use at your own risk (see comments at the top for usage). As far as I understand, using UTImportedTypeDeclarations should not override the more correct UTIs supplied by the system or other apps, but I won't guarantee that.
http://homepage.mac.com/amaxwell/.cv/amaxwell/Sites/.Public/utconvert.m-zip…
--
adam
I'm in the habit of writing my method definitions without parentheses
around the argument list, like:
def initialize name, id, *args
# ...
end
TextMate doesn't recognize the arguments, so the jump-to-method and
the symbols drop-down can get confusing... and the arguments aren't
colored correctly in the editor window. I'm not sure how to fix this,
or submit my modifications to the SVN repository. Could someone point
me in the right direction?
Thanks,
Erwin
I love the way
(I miss an automatic way of reformatting C/C++ code inside TM… but
that is another story)
I have changed the output to build directly an html window in TM:
The problem is, when I copy/paste the code to include it in Mail, for
example, empty or short lines ending in space make funny things,
leaving blanks after the numbers…
Is there any solution.
I have the PHP bundle in `/Library/Application Support/TextMate/
Bundles/PHP.tmbundle`.
I have my personal bundle in `~/Library/Application Support/TextMate/
Bundles/McBroom.tmbundle`.
Both bundles contain preferences for comments that are scoped for
"source.php". My understanding is that the preferences in my personal
bundle should be taking precedence because that bundle is in my home
directory and thus "more local". This is what seems to happen on my
work machine (still running Tiger) with a similar configuration and
this is how things appeared to work on my laptop pre-Leopard. But now,
TextMate seems to be taking the preferences from the PHP bundle
instead of mine. If I remove the PHP bundle from /Library and let the
one in TextMate.app take over, it still seems to take precedence over
the preferences in my home directory.
Any ideas?
---
Rob McBroom
<http://www.skurfer.com/>
Dear mailing list members,
I'm writing my master thesis at the moment and writing it in TextMate
with the Latex bundle is awesome! But one thing is driving me crazy:
When I write "` as beginning quotation mark and hit the space key, the
finishing quotation mark is '" and not "' as it should be.
It would be very nice if someone would fix this in the next release, for
all those graduating students out there.
Cheers,
Svenja
Ahoy.
I just installed websvn up on the ole bundleforge.
http://bundleforge.com/
You can now browse, subscribe to rss changelogs & download tarballs of
any and all Bundles from 6 bundle collections.
If you know of a bundle repo that should be added to the list, please
let me know.
This is an "alpha" version because this isn't exactly what I had
intended to do with BundleForge in the longrun. However, this is
better than nothing.
Enjoy.
—Thomas Aylott – subtleGradient—
> Sorry to describe the changes I made rather than giving a bunch of
> patches but the normal bundle development model just won't work for
> me. I change a bunch of stuff for my personal use (like some of the
> hacks above) so I need to keep the ~/Library/Application Support/
> Textmate directory for my own personal modifications. If someone
> could tell me an easy way to produce a diff of the changes I've made
> here with the actual bundle maybe I could be more helpful.
>
> Anyway thanks to the author(s) of the latex bundle for all the work
> they've put in so far. Hopefully this was helpful an not just
> useless bitching.
>
> Peter
I don't know if this has been addressed already, but I have another
two concern since I last updated my bundles:
1) Inside a non-maths scope, adding an underscore still produces "_{}"
rather than just "_". For example:
\includegraphics[width=170mm]{./figures/tf12_resonance.PNG}
adding "_" with the caret after "resonance" produces
\includegraphics[width=170mm]{./figures/tf12_resonance_{}.PNG}
which pdflatex doesn't seem to like very much. The same is true for
captions, sections, subsection, ... Would it be possible to change the
scope of the "_" command to math only?
2) A similar issue arises when I add powers in math mode using "^".
This correctly produces "^{}" and places the caret inside the
brackets. Pressing _any_ key now however adds another iteration of the
command, like so: "^{^{}}". I am using a German keyboard, so to get a
"^", I have to press the key above tab and then hit space. This might
be related to the problem I have.
Best,
Jonas