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
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
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
When doing Ctrl-Shift-V to use PyChecker/Pyflakes/Pylint, I get a Python
error.
Reason:
my_revision = __version__.split()[1]
>
on Line 346 assumes the __version__ from Line 26 can be split into at least
2 parts. However, Line 26 reads:
__version__ = "$Revision$"
>
When it should read:
__version__ = "$Revision 11734 $" # Not sure what Revision actually refers
> to, Textmate or script version
I am using the latest available TextMate (r1505), with Python 2.6.2 on
10.5.8. However, this Command is most likely broken in every version of
TextMate released since the error was first introduced, since it is a basic
Python error. The feature was at least working in June 2008 according to
this blog about it:
http://arthurkoziel.com/2008/06/28/pyflakes-installation-and-textmate-integ…
Though I must say... What's the use of the revision, exactly?? It seems
that it has only served to break the script and not much else. :)
I've gotten by for now by editing the Python bundle.
Thanks.
Hi list,
I've recently been working on a Relax NG to TM Language Grammar XSLT
stylesheet. I did it mainly to exercise, so I didn’t look far for
anything similar. Because Relax NG is XML and can be easily
generated from DTD or XML Schema using trang, it seemed like a good
choice.
I’d like to read your comments, especially about the generated
grammars style which need much improvement.
How does it work:
1) put a file.rng (in XML syntax) in the Schema directory
2) from the root directory, execute the shell script ./rng2txmt.sh
Schema/file.rng
3) the grammar is generated as "Generated Language Grammars/
file.plist" (along with file.plist.xml)
If this doesn’t work, please read the known issues, it might be a
namespace problem.
What does it try and do:
* look for and mark invalid tags or attributes under or in a given tag
* avoid to create empty repository entries
* give a tag-aware scope for attributes (aim is to generate auto-
completion lists aside)
What I would like it to do:
* have basic namespace support
* have current-tag-aware (not any-ancestor-aware) scope for auto-
completion of tags
e.g, a scope which only match the dots in <a>....<b> <c/>
<b>....<c/>....</a>
Not so long ago, I would have say it's impossible, but now that I’ve
slightly improved my TM grammar-fu,
I’m pretty sure it is achievable and may even be not that hard.
Matching > and /> to open, looking-ahead for <b and <c to close,
perhaps.
* actually generate completion list. This shouldn’t be too hard.
Known issues:
* If I’m right, TM grammars works in a « first matching rule is
chosen » which is incompatible with Relax NG main advantage : non-
determinism. Thus I think some Relax NG schema may never be parsed
correctly. DTD and XML Schema need to be deterministic, however, so
the issue is not that important. I think this is the problem with
the generated relaxng grammar.
* / ! \ Because XML namespace is a mess and I didn’t bother dealing
with it in my stylesheet, one need to remove any mention of the
default namespace in the rng file. Otherwise the stylesheet won’t
generate anything
* It currently doesn’t deal with anyName, exceptions, exclusive
choice or any other RNG construction.
* No auto-indentation of the generated plist. Who cares, anyway, TM
cleans it up for you.
* A whole lot of useless scopes, mainly there for debugging.
* Whitespace in tag management in inconsistent.
* The code is ugly.
By the way, I’ve used some excerpts from default XML grammar. I hope
it does not bother its author. Is he Brian Lalor or Allan Odgaard?
Thanks,
Édouard
I have just discovered TextMate, and am so far very happy with it,
but I think I just hit a glitch...
I am trying to edit a SQL load file that is about 5M, which shouldn't
be a problem. However, some of the lines are very long, as a complete
website contents is in a single line. I have no idea how many
characters are in this line, but I suspect about 2M worth.
Anyway, TextMate hangs while trying to work with this file. I can't
do much at all. Even a simple act of scrolling hangs. TextEdit does a
reasonably good job with the file though...
Actually, I don't think it is hanging, as it eventually responds
(about 30 seconds later), but it is so slow that it is completely
unusable. Is this a known problem? For me, it is weird files like
this that we need an editor like TextMate to be able to easily handle.
Thanks...
Jim Leask
Hi!
I'm just working on some Tex-Document which uses several dialogues
which I want to enclose in "< "> (the result are those <<
>>-enclosures in the document). Would be cool if that could be added
to the language grammar.
Thanks in advance
Niels
I have asked this before, and I can not find the post, or any notes or
emails on it.
When remotely editing code via for example, Interarchy, or any other
ftp/ssh/sftp app, I can not get saving of code foldings.
Is this supposed to work? I seem to recall back in the days of using
BBEdit I would be able to tick off a "save state" and it would
remember everything, from window position, line numbers on off, and a
bunch of other things.
Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *
I have two bundle commands with identical input and scope settings.
One of them sees the TM_INPUT_START_LINE_INDEX environment variable,
the other does not.
Any idea why that may be?
Thanks
Gerd
Hi,
I found a small bug. Since this is part of a bundle, the macromates
website asked me to report it here.
Summary: sort does not with euro symbol, and some other non-Latin
characters.
Steps to reproduce
1. Open new text file.
2. Add text with a EURO symbol, e.g.
aaa €
bbb ¥
ccc $
ddd £
3. sort the file with F5 (Text > Sorting > Sort lines in document)
I get the error:
sort: string comparison failed: Illegal byte sequence
sort: Set LC_ALL='C' to work around the problem.
sort: The strings compared were `AAA \302\202\254' and `BBB ¥'.
Most non-Latin characters work fine. Just this one fails. If I save the
file and simply run "sort test.txt" all is fine. Both in my shell and in
TextMate, "echo $LC_ALL" return "en_GB.UTF-8".
Typing the following script in TextMate and "run script" works fine:
echo "ccc\naaa€\nbbb" | sort
What would be different for the "Sort lines in document" (which simply
calls "sort") and the above script?
Any clue?
Is this reproducible by others?
Regards,
Freek Dijkstra
Hi,
I have made the following
blunder a couple of times. I go to open a file in textMate using
File->Open and am in column view. I accidentally double click on the
folder instead of single clicking. In list view or icon view this
would just open the folder and go to the next level. In column view
this actually opens the folder in textMate. If you are unfortunate
enough to do this at low enough a level, textMate will then start
scanning the entire folder hierarchy.
I seem to remember seeing a command that would stop this process. I
searched the archives of the list, but apparently I didn't on the
right word choices.
BTW. Part of the beauty of textMate is that it doesn't protect you from such
blunders. My chain saw expects me to know not to run it while the chain is
directed at my own leg. If I put a guard on the chain, it would make the
tool REALLY hard to use.
Currently I just force quit textMate and start over. I just wonder if there
is a better way.
Have a great day.
--
Brad Tittle
I'm constrained to use Subversion 1.6.x, and this breaks the
Subversion bundle I have. I did try checking out the current bundle
into /Library/Application\ Support/TextMate/Bundles, but that seems
not to have helped.
Is there any relief for this? Either a new bundle or some Subversion
properties I can set?
I searched the Nabble archive for this list, and looked back a few
months, but found nothing relevant.
— F
Attached are two services written to take advantage of Snow Leopard's
context menu/automator integration.
TxtToTM sends text selected in any application and opens a new TextMate
window with that text inserted. There is a rudimentary heuristic set up to
check if the text is Javascript/HTML/CSS/Applescript and set the textmate
bundle type accordingly. This is implemented through an Applescript in
Automator. So this can be extended/improved/hacked by the many textmate
users who are, no doubt, more proficient in Applescript than me.
Edit in Textmate will open any file or folder selected in Finder in
Textmate. Folders open to Projects.
These services show up when contextually appropriate (i.e. when you have
text selected it will be in your right click menu).
To install unzip, and put the two files in ~/Library/Services. You may need
to go to System Preferences/Keyboard/Services and make sure the box next to
each of them is checked for them to show up in your context menu.
These are written using Automator's new Create Service function in Snow
Leopard, so are 64 bit compatible. I have no idea if they would work in
10.5.
Hi all,
Is anyone else getting r1509 from the automatic updater (set to "minor
updates"), but seeing 1510 on macromates.com?
And it's not just a typo in the site, the build there really does have
a revision number of 1510, but its changelog only shows to 1509.
Slightly confused,
-NK
I have setup textmate as the default editor in terminal.
so, when I type 'hg commit' it opens textmate. I enter the message on the
first line after the headers and hit save and close textmate and nothing
happens. What am I doing wrong?
--
View this message in context: http://www.nabble.com/Textmate-and-Mecurial-tp25216773p25216773.html
Sent from the textmate users mailing list archive at Nabble.com.
If I have for example this code:
function foo() {
var list = [];
}
Note there is 4 spaces indention.
I work in 5 spaces soft tabs.
If I move the cursor to just before the "v" in "var", and left arrow,
I move to the left one space. Somehow, I need to reformat this code
to be 5 spaces. Then when I move the arrow to the left, it moves 5
spaces, or one apparent tab stop.
I have tried selecting the code, while I have my tabs set to 5, hard
or soft, using reformat selection, in this case, in the JavaScript
bundle area, or, convert spaces to tabs. Neither gets me where I need
to be.
I end up re-tabbing all the code, which is a tedious process.
I I just add one space, or select the 4 spaces and replace with a tab,
I get the functionality I want:
function foo() {
var list = [];
}
That example, the space before the "v" becomes a tab, either hard or
soft.
Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hello,
Thanks for posting how to fix all the other issues with Snow Leopard,
but I haven't seen anything about master files in Latex mode.
So, I have my latex file split up in several files and on top of each
separate file I have;
!TEX root = [...]thesis.tex
And under Snow leopard, textmate seems to be ignoring that line (i.e.
compiling with or without that line gives me the same error)
Any idea about this issue?
Thanks again,
Jerome
I spent yesterday watching a handful of screencasts for learning
jquery. I was shown perhaps 5 or more editors, and started to see
value in workflows I am not able to replicate.
I'm sure I'm just missing some prefs, pointers appreciated.
Vertical grid on tab stops. How do I turn this on? Seeing where a
statement begins and then closes at a glance is very powerful. In
jquery with all the parens and brackets, this visual alignment would
help a lot.
I think this may not be possible. I figured I could get by with show
invisibles. I'm not seeing tabs or spaces, just returns. I would also
want to set returns and spaces to the same bg color to hide them. Too
much noise.
I tried multiple themes, I can not get invisibles to show other than
returns, which I don't need to see anyway.
Code reformatting. If I take any small chunk of jquery, select it,
navigate to the bundle for JavaScript and tell it to reformat the
code, it more or less reformats to a few lines. What am I doing wrong?
Indenting. If sample code is copied in with say, 1 or 2 spaces used as
indents, and I like to use 5 soft tabs, I'm finding no way to adjust
that code to my tab stops. I end up retabbing it by hand.
Next up would be where the open or close brace or paren is thought to
be. I see I can get a blink on some parens but not others.
What are the rules that define this blinking and can it be expanded?
Also, the blinking is not quite enough for me. Having the actual open
and close characters actively highlighted when your cursor is to the
left or right, massively helpful to me.
Current word highlighting. If a variable, class, method etc are
clicked on, how can I get all occurances of that word also highlighted.
Projects. I don't often get a chance to clone down an entire site and
work locally. Is it correct there is no way to get a remote FTP based
site to remember code folding or work in a project?
I would be happy to figure out how to drag a window into a tab from a
remote site, that would go a long ways.
I don't always get ssh access, and I'm sure some will suggest
expandrive. To be honest, I've tried it. There are too many reports of
it failing on FTP to even list a directory. I worry it may delete
remote files. I worked a little with the expandrive people, giving
them access to an FTP server that matched the issues many others were
reporting, currently still seeing broken behavior.
I'm a little stubborn in that if I'm going to use a tool, I would want
to use it everywhere, not just on ssh connections. Jumping from one
toolset to another tends to take my brain too long to shift back into
being productive.
Saving. Is there a way to get save to have the entire filename
selected? The trailing .html is something I'm always having to trim
off. Usually I just command-A then start typing. Looking to save a step.
Is there a way to select the current line only up to the first and
last characters?like select word, but for a line.
Is there a way to tell a line to best guess the correct indent level,
and shove it in place?
I have a feeling some of these issues have solutions and I just don't
know where to look. Others i suspect I may be stuck on. Looking for
any old hats that have been down this road before.
Thanks. As a side note, watching some of these screencasts, I can
certainly say, TM's features certainly should be adopted by other
editors, I don't know how some people get by.
If I had to put two items on a list, vertical tab grid lines and
remote conection meta data saved would be pretty high up there.
Thanks everyone.
--
Scott
Iphone says hello.
Hi, I'm newbie with Textmate, but I like it very much :) very nice editor...
but I could not find ine very helpful for me thing..
When I click (or select) some user function name (PHP), I want to see
source it (i.e. defenition) How I could get it ? especially when declaration
of this function in separate file..
Thanks.
--
View this message in context: http://www.nabble.com/Go-to-defenition..-tp25151144p25151144.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I install snow leopard (update) but now I can't compile LaTeX document
with textMate
I get :
Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
After installing snow, the symbolic link /usr/texbin is destroyed
so
cd /usr
sudo ln -s ../Library/TeX/Distributions/.DefaultTeX/Contents/Programs/
i386 texbin
Upgrading to Snow Leopard also remove /usr/texbin from my default PATH.
I create a text file named TeX with contents
/usr/texbin
and then I move this file to /etc/paths.d. I give this file read-write
permission for everyone
Well now I can compile with TexShop and from the terminal but not
with textmate
I read some tickets on the net and after that, I rename
tm_interactive_input.dylib in textmate.app and in the pristine copy,
now I can compile
but I would like to know if this solution is correct?
Best Regards
Alain Matthes
I am looking for a way to highlight all the occurrences of the text I have
currently selected, or which is in the search buffer (trough command-e). Is
this possible with TextMate, or with a bundle?
(I could do a search and go through the occurrences with command-g, but when
you have a number of occurrences just visible on the screen, it is often
often more convenient to just have all of them highlighted, rather than
having to repeatedly hit command-g.)
Alex
-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/Highlight-all-occurrences-of-selection-tp25140566p251…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am having the same problem as Hooman...i'm no longer able to fetch posts
with the Blogging Bundle and I get the exact same error as him saying
something about times.
As Allan suggested, I enabled server logging. I did another Fetch Post, got
the same error, and now this is in the log (I **,d out my pswd and modified
my username). This means nothing to me...any help?
2009-08-25 23:50:02 Input: <?xml version="1.0"
?><methodCall><methodName>metaWeblog.getRecentPosts</methodName><params><param><value><string>0</string></value></param><param><value><string>kelle</string></value></param><param><value><string>**pswd**</string></value></param><param><value><i4>20</i4></value></param></params></methodCall>
thanks!
kelle
Hi all,
The latest minor update seems to have introduced a strange behavior.
When moving the cursor pass the end of a line, TextMate now pretends
that the line is full of an infinite number of spaces, instead of
moving to the next line. Same happens when clicking with the mouse.
Let's just say that after spending 20 years editing texts in editors
with the "good old" behavior, I'm quite annoyed that the new behavior
is imposed on me and that there's no option to turn it off.
Could anybody confirm that this is an intended feature of TextMate and
that there's no way to disable it?
Jasmin