Hi there,
There seems to be a bug in the LaTeX bundle's reference/citation
auto-complete for my specific set-up.
I'm fairly sure I've fixed it (though its possible this is not the best /
most generic method) so I'll try to describe my problem / situation:
In my project I have a master .tex document, and several other .tex files
(each with something like the following line as their first line):
%!TEX root = ../thesis.tex
When I attempted to auto-complete references/citations I'd get this error
(output directly in my file at the cursor, not as a pop-up or tooltip):
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in
`initialize': No such file or directory -
/Users/andrew/Documents/Uni/Papers/Writing/Thesis/thesis.tex
(Errno::ENOENT)
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in
`open'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in
`options'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:45:in
`master'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:56:in
`get_labels'
from /tmp/temp_textmate.oacqrp:8
File:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb
The file that it claims does not exist definitely exists, but in the error
message that was output in my document, there was a diamond character
immediately after "thesis.tex", visible because i have the "Show Invisibles"
TextMate setting enabled.
I copied the text including the diamond character and pasted it into a
web-based ascii-to-hex converter (http://centricle.com/tools/ascii-hex/) and
it seems to be the character %0A, i.e. the Line Feed or new line character
(\n), suggesting the script is erroneously including the \n as part of the
TEX root filename property.
- I've checked the document in TextMate with Show Invisibles on and cannot
see any extra characters
- I've also tried deleting the line and typing it out again
- I've tried using absolute and relative paths for the root document
property
None of these solved the problem (and none had any detrimental effect after
I'd fixed it as described below).
I've fixed the problem by editing the script:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb
and changing line 42 from:
new_master = (master.parent + Pathname.new(opts['root'])).cleanpath
to:
new_master = (master.parent + Pathname.new(opts['root']*.strip*)).cleanpath
This fix would probably break the functionality of the root file if the full
specified path is required to start or end with a space (e.g. the root file
is called "master.tex "). I don't think quotation marks are allowed here to
account for this somewhat unlikely scenario, but it may well break the
script for someone. Perhaps a slightly better fix would be to remove a
single trailing \n character if it is present (however this is beyond my
Ruby scripting abilities).
Anyway, hope this is of some help and some kind of fix can be put into the
official bundle
cheers,
Andrew
Hello all.
I¹ve looked through the archives and didn¹t see anything resembling this
problem so I¹m sorry if it has already been addressed elsewhere.
When using the autocomplete feature (option-escape) or other certain
snippets in Textmate via either Ruby or Ruby on Rails, I receive the
following error:
/usr/local/lib/ruby/1.9.1/pathname.rb:270: warning: `*' interpreted as
argument prefix
/tmp/temp_textmate.0sHwXc:38:in `<main>': undefined method `to_a' for
"":String (NoMethodError)
What I¹ve tried so far:
1. Reinstalled Textmate
2. Reinstalled both Ruby and Ruby on Rails bundles. I tried the bundles from
both the SVN and the github sources.
3. Set the TM_RUBY variable to point to my system installed 1.8.7 folder
It¹s worth noting that snippets and autocomplete fails in other languages as
well  PHP comes to mind. I¹m new to using Textmate fulltime for development
so this error is beyond confusing for me. This did not start happening until
after I updated ruby from 1.8.7 to 1.9.1.
Thanks in advance for any help you can offer.
Hi all,
I just discovered zen-coding (http://code.google.com/p/zen-coding/), which I find quite impressive. You can view a screencast for a quick overview of it's capabilites on Vimeo: http://vimeo.com/7405114.
Full TextMate support has been added recently (you'll have to install Zen.Coding.tmbundle, Zen.CSS.tmbundle and Zen.HTML.tmbundle).
Sorry for the noise if you already have been aware of this, but IMHO this is just too good to miss it…
Cheers,
Andreas
I have an issue where a 3rd party Textmate bundle is hiding a standard
bundle. Next, I have tried
changing the uuid of root .plist as well as the Syntaxes .plist of the 3rd
party bundle without any
success. Thus, the standard tmbundle isn't displayed within the Bundle
Editor or the Textmate ->
Bundles. If anyone has any ideas, please let me know.
Thanks in advance,
-Conrad
> Message: 3
> Date: Sat, 9 Jan 2010 17:20:24 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: textmate and matplotlib
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <D146CDDD-8300-445F-B433-2B198156A990(a)textmate.org>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
> delsp=yes
> On 8 Jan 2010, at 14:44, Claus wrote:
>
>> I can execute scripts that contain matplotlib code perfectly well
>> from the command line (this one http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_example…
>> for example), but when I run them from within TextMate, python
>> keeps running endlessly, no error.
>
> This could be caused by the interactive input library we inject into
> Python (or the enabling of a flat namespace for the linker, whcih a
> Python library has previously been incompatible with).
>
> The easy fix is to:
>
> rm /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
> tm_interactive_input.dylib
>
> There is also an environment variable you can set, but I can?t find it
> ATM (away from my regular machine), I?ll have the troubleshooting
> pages updated with this info.
I removed the tm_interactive_input.dylib, however TM (python bundle -- run script) is still keeps running for a long time until I "stop task", no error message.
Does anybody have other ideas?
Thank you,
Claus
Is it possible to select text from the current position, forward a number of
lines, or to (or even between) a specific line number(s)? Also, is there any
means of selecting text from the current cursor position up until a search
term is found? (ex, I'm on line 30, I search for 'foo', which happens to
occur next on line 57, so lines 30-57 (or at least line 30 through 'foo' on
line 57) are selected.
Appreciate any assistance that can be provided!
--
View this message in context: http://old.nabble.com/select-text-to-line-number%2C-number-of-lines-or-sear…
Sent from the textmate users mailing list archive at Nabble.com.
I find "Shift Left" and "Intent Line" in "Text" menu, but I don't know
the difference of the behaviors. Can anybody explain them to me?
I'm using "Shift Left" all the time, and I sometimes get forced to move
to the next line after running the command.
Wil
I am used to write scientific papers and books with LaTeX since many years,
but I was working with a PC and not a Mac until recently. Hence, my
knowledge on textmate is rather small, and there is a problem which I cannot
fix without some friends outside in the universe. I will describe my problem
step by step:
(1) My mainfile contains
\usepackage{index}
\newindex{default}{idx}{ind}{
Sachverzeichnis}
\newindex{name}{adx}{and}{Namensverzeichnis}
what means that there will be two indices in the book, a regular one
(default) and a name index.
(2) In order to generate the ind- and and-files respectively I used to run
makeindex -o mytex.ind mytex.idx
makeindex -o mytex.and mytex.adx
from the terminal. That will be working as well with my Mac, but it is not
really comfortable.
(3) textmate offers a simple button to produce the ind-file. And now there
is my problem. I would like to know how to create a textmate-command that
produced the needed and-file.
Thanks for help or any advice in advance.
I'm getting a TextMate hang and a beachball whenever I right-click on a
TextMate document, but only in my local profile (i.e. a newly created
account works fine). Have tried deleting prefs and removing all custom
bundles, but no joy.
This is accompanied by a single word message from TextMate in the
console log "INJECT_ENTRY".
Can anyone offer any suggestions as to how I might resolve this?
Thanks in advance,
Chris