I am having trouble using some of my installed bundles, for example, PHP Cake. There are a number of tab triggers I am trying to use, but when I type the sequence and press tab, nothing happens. This behavior seems indicative of TextMate not knowing which bundle to use on the file being edited, though the language association of "HTML (PHP Cake)" in the bottom toolbar is correct.
What am I missing? Thanks!
Just a bump on this post. I'd really like to be able to take advantage of the bundles.
I am having trouble using some of my installed bundles, for example, PHP Cake. There are a number of tab triggers I am trying to use, but when I type the sequence and press tab, nothing happens. This behavior seems indicative of TextMate not knowing which bundle to use on the file being edited, though the language association of "HTML (PHP Cake)" in the bottom toolbar is correct.
Not being a user of the PHP Cake bundle, can you verify (via ⌃⇧P) that your caret is in the correct scope for the snippets? If that is the case, then perhaps revert to default bundles[1] and reinstall?
[1]: http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles
When I run this command I see no mention of CakePHP in the resulting tooltip. Reinstalling the bundle doesn't seem to make a difference.
Le 6 oct. 08 à 18:29, RyOnLife a écrit :
When I run this command I see no mention of CakePHP in the resulting tooltip. Reinstalling the bundle doesn't seem to make a difference.
In the Bundle Editor, when you select a snippet, the field Scope Selector contains the scope in which the snippet will be usable. In your document, when you type ⌃⇧P, the tooltip shows the current scope (i.e. behind the caret). If the current scope is not englobed by the scope of the snippet, the snippet will not be active there.
More on scopes: http://manual.macromates.com/en/scope_selectors
I don't know the CakePHP bundle, but I hope this helps.
Mathieu
On Oct 1, 2008, at 8:12 PM, RyOnLife wrote:
I am having trouble using some of my installed bundles, for example, PHP Cake. There are a number of tab triggers I am trying to use, but when I type the sequence and press tab, nothing happens. This behavior seems indicative of TextMate not knowing which bundle to use on the file being edited, though the language association of "HTML (PHP Cake)" in the bottom toolbar is correct.
Are you using the version at:
http://macromates.com/svn/Bundles/trunk/Review/Bundles/PHP%20Cake.tmbundle/
If so the scope when you hit ⌃⇧P should be "text.html.php.cake". Many of the snippets work in this scope, many work only after your in an open php block.
Thanks... I reinstalled again, and it now seems to be working. For future reference, the instructions at http://bakery.cakephp.org/articles/view/cakephp-for-textmate do seem to work. I appreciate the help!
Michael Sheets-2 wrote:
On Oct 1, 2008, at 8:12 PM, RyOnLife wrote:
I am having trouble using some of my installed bundles, for example, PHP Cake. There are a number of tab triggers I am trying to use, but when I type the sequence and press tab, nothing happens. This behavior seems indicative of TextMate not knowing which bundle to use on the file being edited, though the language association of "HTML (PHP Cake)" in the bottom toolbar is correct.
Are you using the version at:
http://macromates.com/svn/Bundles/trunk/Review/Bundles/PHP%20Cake.tmbundle/
If so the scope when you hit ⌃⇧P should be "text.html.php.cake". Many of the snippets work in this scope, many work only after your in an open php block.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate