I was also having this issue and found the solution in a single character in
php.ini: be sure that the variables_order setting begins with "E" (mine was
missing):
variables_order = "EGPCS"
It looks like the issue was due to PHP's $ENV global being left empty due to
this setting. I'm guessing this is because of the default "production"
php.ini that ships with the PHP distributed with MacPorts.
I've posted a few additional links and error output on our development blog:
http://echodittolabs.org/blog/2010/03/fixing-textmates-php-commands-macport…
--
Ethan Winn
ethan(a)echoditto.com
I'm almost done with the smart autocompletion bundle for PHP. However I'm wondering trying to figure out if I should include autocompletion for variables that are not defined during the class declaration; but that are defined within a method.
For example:
class MyExample extends Example
{
public $indexed_variable;
public function myTestMethod()
{
$this->indexed_variable_2 = 'Should this be indexed for the Autocompletion?';
$this->index{autocompletion}
}
}
Should $this->index... autocompletion show, the $indexed_variable_2? or only the one defined during the class declaration (not within methods).
Any comments will be appreciated.
- Mario "Kuroir" Ricalde
Hi,
I've installed the latest version of TextMate on Mac OS 10.5. Then I
updated all my bundles with:
cd /Library/Application\ Support/TextMate
svn co http://svn.textmate.org/trunk ./
>From time to time I stay up-to-date with:
cd /Library/Application\ Support/TextMate
export LC_CTYPE=en_US.UTF-8
sudo svn update
Now I'm running Snow Leopard (I upgraded the existing OS) and I
encounter a lot of errors. However I don't know if it worked on
Leopard...
For instance if I use "Reformat Selection" from the Javascript bundle,
the file content is replaced with:
PHP Deprecated: Comments starting with '#' are deprecated in
/private/etc/php.ini on line 1060 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in
/private/etc/php.ini on line 1214 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in
/private/etc/php.ini on line 1274 in Unknown on line 0
PHP Notice: Undefined index: TM_BUNDLE_SUPPORT in
/private/tmp/temp_textmate.8LRFl1 on line 19
PHP Warning: require(/lib/beautify.php): failed to open stream: No
such file or directory in /private/tmp/temp_textmate.8LRFl1 on line 19
PHP Fatal error: require(): Failed opening required
'/lib/beautify.php' (include_path='.:/usr/lib/php') in
/private/tmp/temp_textmate.8LRFl1 on line 19
I have another problem with the ack bundle:
http://github.com/protocool/ack-tmbundle When I launch the command I
get "ruby: no such file to load -- cgi (LoadError)" but since it's not
an official bundle I suppose that I should ask on their mailing-list
:)
Thanks,
Thomas
Hello,
Currently, apple-left takes me to the end of the line. I'd like to change it
so apple-comma takes me there. That way I don't have to search for the arrow
keys. How can I find where this is defined? Generally, when I want to change
a key command, how can I track it down without searching manually through
every bundle?
thanks,
-Morgan
Hello all,
I've prepared some updates to the PHP bundle to bring it up to date with PHP
5.3. This includes language grammar support for namespaces, closures,
Nowdoc syntax, and a few other changes/updates. I also updated all of the
functions.txt and functions.plist completions to PHP 5.3.1. I made some
small changes to the generate.rb script and added a simple PHP script to
populate the functions.plist file, so re-generating these should be a bit
easier in the future. I forked the bundle on Github and pushed my changes
there.
http://github.com/voxwerk/php.tmbundl<http://github.com/voxwerk/php.tmbundle/commits/master>
e
I'm not really sure what to do next as far as getting feedback or who to
send any patches to, so I figured firing off an email to the mailing list
would be a good start.
Thanks everyone for doing such an awesome job on all of the bundles!
-Josh
> Gaby Vanhegan:
>
>> I've been working on a PHP Smart Autocompletion / Intellisense for Textmate and I though I would ask a couple of questions to any PHP Developer interested on the idea:
>>
>> 1. Would you like smart code completion to work only on the included files or in the current project?
>
> Whole project. FlashDevelop have got this kind of thing right, if you could use that as a model then you'd have an amazing plugin.
>
>> 2. What Frameworks for PHP do you use with textmate?
>
> If you can get point 1 right then this doesn't matter.
>
>> 3. Do you mind if the bundle creates an extra hidden folder to cache the parsed code?
>
> For me, no. Provided there was an option to clear that cache somehow.
>
>> When I say Smart Autocompletion, I mean it'll know your classes inheritance, how you call them, the scope, etc.
>
> FlashDevelop goes even further with this, parsing JavaDoc style comments and using them as tooltips in the autocomplete. Very handy.
Gaby, I already got it right. Parsing all the competent files on the project and parsing them accordingly; good to know I'm on the good path.
It's good to know what Frameworks you work on, yes it does matter. Mostly because most of them use different naming conventions adding prefixes to the "real classes" and removing them from the loading process. ( for example, new MyClass will load MyFrameWork_MyClass ).
The PHP Smart Autocompletion is prepared to work with the tooltips with documentation; however, the Textmate provided DIALOG is not good enough to handle this kind of stuff; I'll be adding it later when Joachim finishes his mod.
> On Mon, Mar 1, 2010 at 2:33 PM, Gaby Vanhegan wrote:
>
> I totally agree with Gaby. The same thing is with Flash Builder.
> If you could get this kind of behavior it would be my YES for still working
> TextMate - I'm currently checking other editors for code completion.
>
> Btw. how advanced the progress is? :) When can we expect some preview? :) Or
> you gonna make it TM2 like - just rumors :)
> Still TM is my favorite editor and I don't want to switch to other ... :)
As I already stated, the behavior can be achieved; it's just a matter of time before Joachim updates his mod for dialog. Also, it's good to know that this bundle will actually make some PHP Developers use TextMate more :)
About how advanced the bundlee is:
I already had a pre-beta, which was a complete mess and was my first try. Doing it wrong with Regular Expressions. It worked, but not with as smart as I wanted it to be. About the current version, here's what I have and what I need to do:
PHP Parser, 90% done.
It's almost perfect, I just need to make a little tweaking. For instance, I'm thinking about storing definition of class-level variables within a class method. Even if they were not defined during the definition of the class via "public/private/protected/static $var".
Project Files, 100% done.
Caching Process, 95% done.
Need some tweaking on this. Will leave it for the after-release.
Current Scope Identification 10%
I need to work more on this, because of the way TextMate handles "words", $this->sad are 3 words, which means I'll need to parse the current line for autocompletion, resolve the variables and scope and then perform the project parsing.
Building of the AutoCompletion 80%
After resolving the relationship, scope, visibility, etc. The building will come in. I already have this done because of the pre-beta.
About the release date; I'm not sure. I'm working on it on my free time and today is my birthday; so I won't have a lot of time for me to work with it today. I'll try to keep you posted. If you can please give me any ideas to add it would be great, because this is the best stage for doing that.
Hello,
Has anyone else noticed a change in Textmate's behavior wherein the file
dialog defaults to the root of the local volume, as opposed to the most
recently used directory?
AFAIK, Textmate did not behave like this in the past. I am using build
1589. I notice that this behavior is only on my Snow Leopard (10.6) and
not another Mac running 10.5. Any ideas out there?
Cheers,
AZ
I've been working on a PHP Smart Autocompletion / Intellisense for Textmate and I though I would ask a couple of questions to any PHP Developer interested on the idea:
1. Would you like smart code completion to work only on the included files or in the current project?
2. What Frameworks for PHP do you use with textmate?
3. Do you mind if the bundle creates an extra hidden folder to cache the parsed code?
4. How frequently do you use Namespaces? ( PHP 5.3 )
When I say Smart Autocompletion, I mean it'll know your classes inheritance, how you call them, the scope, etc.
I've been using TextMate for a couple of years now for HTML, CSS and especially Actionscript 3 development.
Yesterday I decided to install the Flash Builder4 plugin for Eclipse trial and it totally messed up my TextMate system. I can no longer
compile AS3. I've uninstalled Flash Builder 4 and it still doesn't compile. TextMate won't even load the flex-config.xml file.
I noticed that when I tried to compile in TextMate after installing FB4 it would load the flex-config.xml from the newly installed
FB4 instead of my original location.
Does anyone have an up-to-date comprehensive setup for using the Flex SDK with TextMate? Everything I found on the web
via searches are two to three years old. I believe that I have everything in order but still can't compile.
Thanks,
-Gerry
On 26.02.2010, at 13:00, textmate-request(a)lists.macromates.com wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. Re: Help setting up run. (Alex Ross)
> 2. Re: Cocoa development with Textmate no Xcode (Kevin LaCoste)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 25 Feb 2010 19:42:46 -0800
> From: Alex Ross <z-textmate(a)lasersox.net>
> Subject: [TxMt] Re: Help setting up run.
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <BB46E466-9115-4645-8DB0-033C0AC1AA76(a)lasersox.net>
> Content-Type: text/plain; charset=utf-8
>
> Hey Ted,
>
> There is a Make bundle distributed with TextMate. I think this is
> the ideal way to run a makefile. The ?Build? command is bound on ?
> B. You can build a specific target with ??B.
>
> ?Alex
>
> On Feb 24, 2010, at 9:22 AM, Eduardo Gutarra wrote:
>
>> Hi everyone,
>>
>> I want to set a command to run a makefile to build
>> a CUDA, and run it from the Debug/ folder. However
>> I hate hardcoding the name of the executable, is it possible
>> to use a variable that depends on the file I'm standing on
>> or the name of the director from which make is being executed
>>
>> Also, I would like to make an alternate command with which I
>> can tell make what target to execute.
>>
>> . "$TM_SUPPORT_PATH/lib/webpreview.sh"
>> html_header "Running make"
>>
>> make ${TM_MAKE_FLAGS} 2>&1|"${TM_RUBY:-ruby}" -rtm_parser -
>> eTextMate.parse_errors
>>
>> Debug/Sum 2>&1|"${TM_RUBY:-ruby}" -rtm_parser -eTextMate.parse_errors
>>
>> echo "Done."
>> html_footer
>>
>> Any help appreciated,
>> Ted
>>
>>
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 26 Feb 2010 13:49:38 +0900
> From: Kevin LaCoste <kevin.lacoste(a)gmail.com>
> Subject: [TxMt] Re: Cocoa development with Textmate no Xcode
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID:
> <de8bb3e71002252049n29dba47bxa2f812594049970a(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Feb 25, 2010 at 2:58 AM, Gerd Knops <gerti-
> textmate(a)bitart.com>wrote:
>
> My absolute favorite feature is that all my log output shows up in
>> Textmate's build panel with a clickable link, leading me directly
>> to that
>> place in code. All you need to do is make sure log output has a
>> certain
>> prefix (eg you need a custom NSLog replacement).
>>
>
> That sounds like an interesting tip for a blog post (hint, nudge,
> wink)!
>
> I would second the opinion that it's probably smarter to keep Xcode
> for your
> project management tasks while you are learning. If you're working
> through
> tutorials or a book things will be much easier to follow along with,
> not to
> mention all of Apple's sample code.
>
> I'm sure my setup is pretty simple but it basically amounts to me
> dropping
> the project folder on TextMate and using it for all
> editing/searching/navigating then switching to Xcode for build/run/
> debug
> type stuff. Getting familiar with the triggers for Cocoa and the
> general
> navigation aids is probably the most important thing to do. Command-
> T and
> command-shift-T are huge.
>
> I too would be very interested to hear how others are using TextMate
> to
> eliminate trips to Xcode though.
>
> Kevin LaCoste
>
Hi everyone,
I want to set a command to run a makefile to build
a CUDA, and run it from the Debug/ folder. However
I hate hardcoding the name of the executable, is it possible
to use a variable that depends on the file I'm standing on
or the name of the director from which make is being executed
Also, I would like to make an alternate command with which I
can tell make what target to execute.
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "Running make"
make ${TM_MAKE_FLAGS} 2>&1|"${TM_RUBY:-ruby}" -rtm_parser -
eTextMate.parse_errors
Debug/Sum 2>&1|"${TM_RUBY:-ruby}" -rtm_parser -eTextMate.parse_errors
echo "Done."
html_footer
Any help appreciated,
Ted
Hi,
TextMate always opens / reactivates the last file and in 80% of the cases that is pretty annoying for me.
How can configure Textmate so that just a blank new untitled document is shown on every startup of TextMate?
The options in the preferences don't have this effect ...
thanks for any help!
Is there a hidden feature or bundle I can use to draw a horizontal guide
line at an arbitrary column, say, 80 to meet the PEP8 standard?
Thanks.
--
Wells Oliver
wells(a)submute.net
Hello
I used to have a textmate command that was running a zend studio binairies
in command line to check php syntax ; it was a lot better than the simple
php syntax check bundled with the php Bundle, as it told me when a var was
not declared, and asked for coding standard respect.
I can't find it anywhere, if someone could help me....
thanks a lot
have a nice day
--
View this message in context: http://old.nabble.com/php-syntax-check-tp27639670p27639670.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi, I used macports to install ruby 1.9 (because my rubygems fell off the
map when I installed fxruby >.<)
$which ruby1.9
/opt/local/bin/ruby1.9
$which gem1.9
/opt/local/bin/gem1.9
But I'm pretty sure my Ruby bundle is still using 1.8, Is there a relatively
pain-free way to switch it over?
Hello,
I'm trying to use the sql.bundle with TextMate 1.5.9 (1510) and Postgres
8.4.2 (kyngchaos binary).
After the configuration when I click on excecute line as query, I see this
error message:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/keychain.b
undle:
dlopen(/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/key
chain.bundle, 9): no suitable image found. Did find: (LoadError)
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/keychain.b
undle: no matching architecture in universal wrapper -
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/keychain.b
undle from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Suppo
rt/bin/db_browser_lib.rb:5 from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Suppo
rt/bin/db_browser.rb:8:in `require' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Suppo
rt/bin/db_browser.rb:8
I've already tried to set up TM_PSQL shell variable, but that did not help.
Thanks for your help.
Peter
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