Hi
I sometimes have to work on large data files. The HITRAN 2004
spectroscopic database, is such an example (http://cfa-www.harvard.edu/hitran//). According to the terminal command wc
(wordcount), the file that I want to open contains 280 983 978
characters in 1 734 469 lines. Opening with TextWrangler takes about
20 s.After that time I can move around and do some copy and paste
etc. TextMate, however, takes about 10 s on my 1.5 GHz G4 PB (2 GB
Ram), then it unexpectedly quits without actually displaying the
file. Can/Shouldn't I expect TextMate to work with files this large ?
There appears to be a problem with memory allocation.
Here is what the console log says.
===== Dienstag, 24. Januar 2006 14:54 Uhr Europe/Berlin =====
TextMate(18765,0xa000ed68) malloc: *** vm_allocate(size=1073741824)
failed (error code=3)
TextMate(18765,0xa000ed68) malloc: *** error: can't allocate region
TextMate(18765,0xa000ed68) malloc: *** set a breakpoint in
szone_error to debug
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
Christof
I'm trying to update/extend the ActionScript bundle and replace the
commands that output using the deprecated "Show in Seprate Window".
To do this I'm trying to store the output of the compiler then,
depending on success parse the output message differently.
Trouble is the following leaves me with nothing to work with:
complieResult=$( mtasc -cp "$TM_MX_CLASSES" -cp "$TM_CLASS_PATH" -cp
"$TM_CLASS_PATH/FP8" -cp "$PROJECT_DIR/src" -cp "$PROJECT_DIR/
classes" -version $flashVersion -trace $traceOption -frame 10 -mx -
out "$TM_SWF_OUTPUT" -swf "$TM_SWF_INPUT" "Main.as" )
echo "COMPILE RESULT $complieResult";
whereas
FILELIST=$( ls $HOME )
echo "FILELIST $FILELIST";
works as expected.
Can anyone point me in the right direction?
Cheers,
Simon
In BBEdit, TeXShop, Xcode, and I expect several other editors, one
can double-click one half of a pair of delimiters (e.g., braces,
brackets, or parentheses), the editor will find its other half, and
then it will select the delimiters and all the text in between. I
noticed you can't do this in TextMate. Looking through the help, I
noticed that you can do this by placing the cursor in the right place
and typing cmd-shft-b, but it is much easier to double-click to get
the same result. This has also been requested in the wiki, but I
couldn't find a response -- is something like this planned? If not,
consider this another request for this feature. :-)
Thank you,
-- Gary
I like to comment long spans of code thusly:
if (a_reason) {
for (whatever) {
while (something) {
... some code
} // while (something)
} // for (whatever)
} // if (a_reason)
I can't seem to find a way to tell TextMate that having comments after
the closing brace is okay.
I've tried variations on:
foldingStopMarker = '\*\*/|^\s*\}|^\s*\}.*';
to no avail. TextMate won't un-indent the brace.
Any help appreciated.
Regards,
JJ
---
Help everyone. If you can't do that, then at least be nice.
If I try using the "Generic word completion" of the Latex bundle, the error
/bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or directory
is inserted into the text of my document.
I tried looking at the function in the Latex Bundle, but it seems to
be just a wondow with "No Macro Editor available" at the top and two
ExecuteCommandWithOptions {
lines.
I'm using the latest build 906.
Could anyone explain what is wrong?
Best wishes,
Nicholas
I hope you will forgive the newbie question, but I've searched the
documentation for an answer and can't see one.
I'm trying to use the build comand of the latex bundle with latexmk.pl
I've set my environment variables to:
TM_LATEX_COMPILER = [Path to latexmk] (though I still see "success"
for building even if this path is wrong)
TM_LATEX_VIEWER = preview
Yet the pdf is not generated. This could be because latexmk requires
the argument -pdf to produce a pdf, but I don't know how to specify
that, but the build process is so short, I'm not sure that latexmk is
being called at all.
Can anyone tell me what I'm doing wrong?
Best wishes,
Nicholas
I'm creating a bundle for screenwriting and I need help finishing it.
I need your Kung-Fu.
I sent out the word once before and nothing happened, so I made a
crappy screencast and now we'll if if anything comes of it.
Info here: http://ollieman.net/?p=80
screencast here: http://ollieman.net/files/screencast.mov
> Likely mtasc writes the output to stderr instead of stdout. You can
> redirect stderr to stdout using 2>&1, so the command would be:
>
> complieResult=$( mtasc 2>&1 -cp "$TM_MX_CLASSES" … )
This should get you the error output nicely formatted for HTML:
mtasc -cp "$TM_MX_CLASSES" -cp "$TM_CLASS_PATH" -cp
"$TM_CLASS_PATH/FP8" -cp "$PROJECT_DIR/src" -cp "$PROJECT_DIR/
classes" -version $flashVersion -trace $traceOption -frame 10 -mx -
out "$TM_SWF_OUTPUT" -swf "$TM_SWF_INPUT" "Main.as" 2>&1 | grep
characters | grep -v warning | perl -pi -e 's/^(.+?):(.+?): characters?
(\d+?)(?:-\d+)? : (.*)$/<a
href="txmt:\/\/open?
file=$TM_PROJECT_DIRECTORY$1&line=$2&column=$3">$1:$2: $4<\/a>/g'
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Glad to see you back on deck! But the important textmate question is....
How was the skiing at Val Thorens? Good snow? Lift cues?
Hope you had a great break!
cheers,
tim
You must be dreading your inbox ;-)
I just spent about 2 hours "customizing" the LaTeX bundle to include
some of the "snippets" and templates that I used to use in TeXShop's
editor. After quitting and restarting TextMate, I noticed that at
least two of my templates have disappeared, the order of my snippets
and templates has changed, and the modifications I made to the
"Filter List..." in the Bundle Editor have all been reset, that is,
all the bundles that were unchecked in the filter have been checked
again and now show in the editor. Is this a bug or something that I
am doing wrong?
Thank you,
-- Gary L. Gray