On Feb 9, 2010, at 7:43 PM, Boysenberry Payne wrote:
>> Was wondering if there was an easy way to get () and [] to indent the same way {} happen in my perl documents?
On Friday, February 12, 2010, at 04:35AM, "Boysenberry Payne" <boysie(a)boysenberrys.com> wrote:
> Does anyone know where I'd even need to look to try and get the right kind of indentations set up for my perl scripts?
One idea would be to create a command bound to Return that tests for the brackets you want, then reindents accordingly. No idea if that's the best way or even a good way, but it's something to try.
Off the top of my head, there could be a Preferences item that might affect what characters trigger the indendation, or something along those lines anyway. Anyone with more experience developing bundles care to weigh in?
--
Adam Sharp
The following two valid PHP snippets trip up the PHP grammar in TextMate.
Mostly because of unusually nested quotes and braces:
Snippet #1:
<?php
$str = array("Foo", "Bar");
echo "Name: {$str[($str[1]) ? 1 : 0]}"; // Should echo "Name: Bar"
?>
The text "($str[1" appears highlighted as a syntax error
Snippet #2
<?php
$insert = mysql_query("INSERT INTO `catalogue` SET
`model`='{$_POST["page_row{$count}_model"]}',
`type`='{$_POST["page_row{$count}_type"]}',
`updated`=UNIX_TIMESTAMP()
;");
?>
Everything in the document after this snippet is treated as a string.
Hopefully these are simple grammar file fixes :)
Cheers,
Brian
--
View this message in context: http://old.nabble.com/PHP-Grammar---Syntax-Highlight-Bug-tp27280995p2728099…
Sent from the textmate users mailing list archive at Nabble.com.
Alex, Tony,
thanks for all the efforts you guys put into this.
These two solutions solved my issues as well.
Thank you!
Claus
On 2010-02-11, at 1:00 PM, textmate-request(a)lists.macromates.com wrote:
>> This is the same trace I get with the dylib *enabled*, which leads me to believe that you've still got a dylib somewhere. You can make sure it's disabled by setting the variable TM_INTERACTIVE_INPUT_DISABLED=true in TextMate's shell variables preference pane.
>>
>> TextMate will always use the dylib at $TM_SUPPORT_PATH/lib/tm_interactive_input.dylib. You can find $TM_SUPPORT_PATH by entering ?echo $TM_SUPPORT_PATH? in a TextMate document and press CTRL+R to run that line with bash.
>
> Alex,
>
> Thanks for all your suggestions. Both of these suggestions worked for me. Setting the environment variable seems to be the easiest solution. Also, your second suggestion allowed me to find a third (and final?) copy of the dylib in:
>
> ~/Library/Application Support/TextMate/Pristine Copy/Support/lib/
>
> Thank you for your help and your patience.
> -Tony
> Allan Odgaard wrote:
>
> On 10 Jan 2010, at 14:04, Claus wrote:
>> 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?
>
>
> Run ps/pstree to see if Python is running.
>
> Use ‘sample «pid»’ to sample the python process, that might give an
> idea of why it is stalling.
>
> Try minimize your script to the smallest possible that can reproduce
> the problem.
I'm having the same problem as Claus; removing tm_interactive_input.dylib did not help on my system either.
This problem can be reproduced with the following 2 lines:
import matplotlib.pyplot as plt
plt.plot([0,1])
Unfortunately, the script doesn't appear in the list of processes displayed by "ps", but it shows up as a Python process that's "not responding" in the Quit Applications menu (Command-Option-Escape) and Activity Monitor.
Claus; to answer your earlier question (off list): I'm relatively certain this issue is not related to your particular install of matplotlib. I've tried older revisions of Matplotlib (where previously, I did not observe this issue) and they now exhibit this issue.
I noticed this issue shortly after updating to TextMate r1589 (automatic "cutting-edge" update) and OS X 10.6.2 (minor version update): both around the same time. Is there a way to revert to an older revision of TextMate to see if this issue was caused by something in the update?
Also of note: A friend of mine has the same issue, but, only on his machine running 10.6---another machine runs 10.5 and does not have this issue.
-Tony
I'm running Snow Leopard (10.6.2) currently and I'm having a problem where my
cursor changes to the arrow pointer while in a TextMate document. The only
plugin I'm using is ProjectPlus, and the problem happens even with that
plugin disabled. Ideally, the cursor would always be the vertical
text-selection pointer (not sure what you would actually call that).
Obviously this is more of an annoyance than anything, but being the OCD guy
that I am, it's driving me nuts. Nobody else seems to be having this
problme :(
Any help would be appreciated.
Thanks!
Ben
--
View this message in context: http://old.nabble.com/Cursor-problem-tp27505419p27505419.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
I just installed subtleGradient's Javascript Tools bundle and tried
the "Validate with Google Closure Compiler" and got this:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
[snip]
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
I'm not hugely Java-literate, but I surmise, using Leopard 10.5.8
here, that GCC wants Java version 6 here, and my Java preferences are
set to 32-bit Java 5, and then 64-bit Java 6.
So can I run this with the Java 6 installed in Leopard? And can I
alter subtleGradient's "lint-gcc.rb" to run Java 6 rather than setting
my global preferences? How?
Many thanks in advance!
Charles
On the command line, 'which git' returns '/usr/local/git/bin/git'
So I put that in the TM_GIT Shell Variables list. But now when I try to use the bundle it keeps giving me this error:
sh: line 3: /usr/local/git/bin/git : No such file or directory
Do you have PATH set in TextMate preferences? That could throw it off the scent.
Best wishes
----
David F. Snyder,
Department of Mathematics
Texas State University
601 University Drive
San Marcos, TX 78666
"It will be well for us not to assume an attitude of condescension
towards the crowd. Because in the matter of looking without seeing we
are all about equal. We all go to and fro in a state of the observing
faculties which somewhat resembles coma. We are all content to look and
not see." -- Arnold Bennett in "The Author's Craft" (1914)
dsnyder(a)txstate.edu
On the command line, 'which git' returns '/usr/local/git/bin/git'
So I put that in the TM_GIT Shell Variables list. But now when I try to use the bundle it keeps giving me this error:
sh: line 3: /usr/local/git/bin/git : No such file or directory
What could I be doing wrong?
Thanks!
Guessing I'm the 32342 person to ask this but google wouldn't help me out.
Any of you clever people out there know a way to define a file on a per
project basis to augment the autocomplete for the current scope and doc?
Main use cases for me are pointing to a library file to autocomplete method
names and pointing to a CSS file to be able to autocomplete ID and class
names.
Thanks for any help.
Will