I've been trying to track down a problem in code folding for Ruby.
At this point, I have two 100+ line files, one of which has problems
and the other does not. The _odd_ thing is that cmp(1) says they're
identical. I have tried closing the files, stopping and restarting
TM, reloading bundles, etc. Nothing seems to make much difference.
One annoying constraint is that the code is proprietary, so I can't
just post it publicly (even in its rather cut-down form). Sigh.
Details:
TextMate 1.5.9 (1510)
Mac OS X 10.5.8 (Mac Pro)
RUBY_VERSION 1.8.5 (for Google Sketchup Pro 7.1.6859)
Guesses:
It appears that TM has saved bogus folding information for one of
the files, but not the other. Suggestions on tracking this down
or at least gathering useful information?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm(a)cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, system design
I have been trying to get Scheme set up for Textmate. When I first installed
the bundle and tried the run command, I got an error. I had an installation
from Macports, but I wiped that and downloaded mit-scheme for Unix and
installed the binary in: /usr/local/bin.
I set the shell variable, "TM_SCHEME", and pointed it to:
"/usr/local/bin/scheme". Now, when I call the run command, it brings up the
read-eval-print-loop and it does not read the scheme text file I have saved.
Now, I understand that I could mess around with the Run command in the
Bundle editor, but I hardly have enough experience to do that. Does anyone
know if there is another bundle I can install that accounts for this issue,
or a different way in which I can install Scheme?
Thanks a bunch for the help.
--
View this message in context: http://old.nabble.com/Scheme-Run-Command-Doesn%27t-Read-Text-From-File-tp27…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I was trying to give all (round) parentheses a certain color while editing
in C++.
Can someone help me to achieve this? Sorry if that has been asked before.
As a second question, would it be possible to give parentheses of function
calls a different color, or ideally color all the text within the brackets?
Thanks!
Tim
--
View this message in context: http://old.nabble.com/Coloring-parentheses-in-C%2B%2B-code-tp27998726p27998…
Sent from the textmate users mailing list archive at Nabble.com.
Every time TextMate tries to update automatically on my Snow Leopard 10.6.2
MacBook Pro I get:
*3/11/10 7:58:46 AM TextMate [1749] Error checking for new version:
Failed to connect to 208.78.96.139: No route to host*
in my error console.
What is the problem with the auto update?
Greetings,
This is slightly off topic but I'm hoping some of the TextMate-Cocoa
people here could help me.
I'm learning Cocoa programming and I'm not interested in using Xcode
for my development. I prefer using Clang, Rake, Textmate, and
Interface Builder. I know Allan and company development Textmate using
Cmake instead of Xcode. I'm wondering how to run unit tests this way.
Every OCUnit app tutorial I see assumes you are using Xcode. Anyone
know how to set up unit tests manually via the command line? Once I
see how it is done I can set up a Rake target/tasks to handle it for
me.
Any other advice when developing Cocoa apps without Xcode?
Thanks in advance,
Jason C
Hi,
If have a tiny problem since I'm using NSLocalizedString a lot in a project. We had a similar discussion at irc a couple of months ago and maybe I came across with a solution.
E.g. you have the following Objective-C++ file:
@implementation AClass
- (void)foo:(NSDictionary *)w
{
MyFun(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK"),
nil, nil, tableWindow, self, nil, nil, nil,
NSLocalizedString(@"bla", @"bla"));
NSBeep();
}
- (void)foo2:(NSDictionary *)w
{
}
you'll see in the Symbol List:
AClass
- foo:
NSLocalizedString
NSBeep
- foo2:
which could be sometimes useful but the NS... stuff disturb generally. Then I looked at the Objective-C++ Language definitions and I found:
...
patterns = (
{ include = 'source.c++'; },
{ include = 'source.objc'; },
);
...
This means that 'source.c++' will be processed before 'source.objc'. By my opinion this is the wrong order. Because if I change this into:
...
patterns = (
{ include = 'source.objc'; },
{ include = 'source.c++'; },
);
...
I get for the above example the correct Symbol List:
AClass
- foo:
- foo2:
Are there any reasons for that language grammar order?
Regards,
--Hans
I'm new to TextMate, trying it out as a desktop blogging editor using the
blogging bundle. I like its speed, compared to the online editor of my
wordpress.com blog. If the trial version works out I'll buy it properly.
But there's a small problem. I've been trying to upload images, and find
that when I drag an image to the editing window, it only gives me a link to
the local location of the file and does not upload it automatically. This is
a problem I've seen mentioned elsewhere on the Textmate blog but haven't
found an answer to. What is happening, though, is that once I post my
writing to my blog and then fetch it back for editing, only after doing that
is it possible for me to drag-and-upload an image in the way that is
indicated by the screencast and help file.
Is this normal behaviour? Should I be able to upload an image straightaway
into the post before posting it? If so, how can I fix the problem I'm
having? I'm on OS 10.5.8, using version 1.5.9 of Textmate. Thank you for any
ideas or suggestions.
Mike
I don't have a bundle for Makefiles in my version of Textmate (1.5.8).
Makefiles are treated as plain text files.
I haven't found one listed via the GetBundles bundle. (I installed CMake,
but that doesn't appear to be it.) I've also looked through the
bundle list<http://svn.textmate.org/trunk/Bundles/>and don't see one.
Where is the Makefile bundle.
Thanks.
Hi, Allan-
Following up from IRC...
My text editor of choice on Windows was TextPad, and it supported a
handy way to insert sequential numbers for "replace all" operations.
This was useful, for example, when inserting line numbers, creating
unique ids, etc.
I don't know if the syntax was unique to TextPad, or if it is part of
some standard regex syntax, but it was pretty simple and effective:
\i(<start_index>,<increment>)
\i Replace with numbers starting from 1, incrementing by 1.
\i(10) Replace with numbers starting from 10, incrementing by 1.
\i(0,10) Replace with numbers starting from 0, incrementing by 10.
\i(100,-10) Replace with numbers starting from 100, decrementing by -10.
Any chance this (or something similar) could be added to TextMate?
Thanks-
-Doug