Hi!
I had the same problem as described in a post from Sebastian on
2007-11-11 (http://thread.gmane.org/gmane.editors.textmate.general/
23160).
Here is my error output:
Running bibtex on Exjobb (ny).tex
Traceback (most recent call last): File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 457, in texStatus, isFatal, numErrs, numWarns =
run_bibtex(texfile=fileName) File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 71, in run_bibtex return stat,fatal,err,warn
UnboundLocalError: local variable 'stat' referenced before assignment
It seems that it had to do with the parentheses in my filename messing
up the regexes.
My solution was to change lines 71 and 72 in Textmate.app/Contents/
SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py as follows:
# auxfiles = [f for f in os.listdir('.') if re.search('.aux
$',f) > 0]
# auxfiles = [f for f in auxfiles if re.match(r'('+ basename +
r'\.aux|bu\d+\.aux)',f)]
auxfiles = [f for f in os.listdir('.') if re.search('.aux$',f)
> 0 and (f.startswith(basename) or re.match(r'bu\d+\.aux', f))]
This works, at least for me.
Or have I messed something else up in the process?
/Peeter
Hi folks,
I work on several open-source projects (VTK, ParaView, CMake...) that
follow a somewhat unusual indentation style. Instead of
if (foo)
{
bar();
}
bar();
they require
if (foo)
{
bar;
}
bar()
Getting the first curly indent right was trivial but I can't figure
out how to reduce the indentation _after_ the closing curly. When the
pattern matches decreaseIndentPattern, the current line's indentation
is reduced. What I need is for the following line to be unindented. Is
there any way to do this?
Thanks,
-berk
I am pretty sure I just pinned this down to TM. If I work in TM,
save, then command-tab to a browser, there is significant lag from the
time it will switch to the browser, or, at times, even bring up the
application tab switcher.
If I do not save, the toggle is fast, so it seems to be something to
do with leaving TM, where it is not letting me leave as fast as other
apps do.
I have tried toggling back and forth between other apps, and the
behavior is speedy. Any idea what is going on, and how to solve it?
These are simple files, single files, that have a hundred lines or so
in them, nothing complicated at all.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Is the latest (cutting edge) version of textmate intended to run on a
PPC? After updating it today, textmate gives me a "You cannot open the
application "TextMate" because it is not supported on this
architecture" message on my PowerPC G5 (3.1) when I try to open it.
Kyle Johnson
Hi
TM with LaTeX fails to launch skim or preview. TM works only
with "view in Texmate".
I have the same problem with a macbook and an imac intel 10.6.2
Alain Matthes
Hi
I'm not an expert with Ruby so I need to know if the next command is safe
I want to select a "number" and to get $\numprint{number}$ if number is not empty
and number is not inside a math environment
or
\numprint{number} if number is inside a math environment.
then
if number is empty, I want to get \numprint{...} or $\numprint{...}$
I made this and I would like to know if this code is correct
#!/usr/bin/ruby
# Created by Alain Matthes on 2009-11-15 (www.altermundus.com).
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
if ENV['TM_SELECTED_TEXT'].nil?
input = ENV['']
else
input = ENV['TM_SELECTED_TEXT']
end
if ENV['TM_SCOPE'].match(/math.((.*)|(la))tex/)
$math_del = ""
else
$math_del = "\\$"
end
TextMate.exit_insert_snippet("#{$math_del}\\numprint{#{input}$0}#{$math_del}")
Is it possible to use a shortcut to go out of the first environment {...} and then to go out
of the math environment because the caret is inside {number} ?
Best regards
Alain Matthes
I'm editing R code (under the "R" bundle), and having a number of
issues where I keep getting the dreaded spinning beach ball, and have
to wait a number of seconds before I can keep working. Notably,
whenever I typing in command and then enter the first '(' there is a
significant lag before I get the help pop-up. This is rather
annoying, as typing in simple statements takes a long time.
I had suspected this was a 2.9 versus 2.10 help system issue, so I
upgraded to R 2.10.0 and still had the issue. I also deleted all
traces of 2.9.2 and earlier from my machine, and I still have the
issue.
I'm running MacOSX 10.5.8. Perhaps I am seeing an issue for something
different between 10.5 and 10.6, but I am unable to upgrade to 10.6
for the time being.
I don't know if this is related, but when I start the Rdaemon, I also
see an error:
--
/Users/albert/Library/Application
Support/Rdaemon/daemon/startScript.sh: line 173:
regular
( -
regular
( + 2: syntax error in expression (error token is "( -
regular
( + 2")
>
--
-albert
Is there a way to get the ``Watch Document'' option to be master-file
aware? It seems to me that watching the master file doesn't work,
because it only re-compiles when the master changes, and watching the
included files doesn't work because it's not a whole latex file---I
get the error
Error: No \begin{document} found
I couldn't find the command \begin{document} in your file.
Help is much appreciated, as always.
Evan
--------------------------------------------------
Prediction is difficult, especially the future.
Niels Bohr
Currently the TODO Bundle is giving me this message.
I've searched the list and tried solutions given on page:
http://manual.macromates.com/en/bundles#support_folder.html
but got stuck at par. 5.7.4
In Terminal:
echo "$TM_SUPPORT_PATH"
Doesn't give any result at all. Can anyone explain what I've done wrong?
Thanks,
Gert
Ruby: 1.8.7.
Textmate: 1.5.9 (1589)
OS X: 10.6.2
I’ve added my LDIF bundle to GitHub.
http://github.com/skurfer/LDIF.tmbundle
Can someone with access remove it from the Review directory in the official SVN repo so it doesn’t show up twice in GetBundles?
(I don’t see it yet, but I’m assuming it’ll show in GetBundles eventually just based on its name. Is that right?)
Also (mostly for Allan), any chance we can add an LDIF icon and Info.plist entry for .ldif files?
Thanks.
--
Rob McBroom
<http://www.skurfer.com/>