Hi All,
I just started using TextMate for programming Ruby on Rails apps. I have encountered some problems using it and would appreciate any help I could get in figuring out how to fix them. Below are the three problems that I've run into:
1. TextMate is inconsistent about when it colorizes code in .erb file. When I open some files, TextMate colorizes the code correctly. But on other .erb files, TextMate doesn't colorize at all.
2. TextMate closes the folder tree on my project. When I navigate from my browser or terminal window to TextMate, I'll often find that the folder tree has been closed. This is really annoying because then I have to click on all the folders so that I can navigate to the files that I want. Is there any way to get TextMate to just remember the folder tree state?
3. TextMate doesn't do auto code completion. I've seen some videos that show TextMate doing autocompletion via snippets. How do I turn on the auto code completion?
Thanks for all your help!
David
1. You may want to check that your "context" that your in for a particular file is in fact "Ruby", or "Ruby on Rails", or "HTML (Rails)", you can do this with a keyboard shortcut, by hitting CTRL + ALT + SHIFT + R and then choose the appropriate context from the popup menu, for the current file. I bet that might be your problem there.
2. Hmm my Textmate version doesn't do that: 1.5.7 (1436). You can find your version by going to the TextMate menu in the upper left hand corner of you screen when Textmate is open, and Select "About TextMate" from the menu. Make sure you have the latest version, by going to the same "TextMate" menu, but then going to "Preferences", then select the "Software Update" tab, and make sure that "Automatically check for updates" is checked, and that to the right of "Watch for:", "Cutting Edge" is selected, and you'll get the latest and greatest TextMate automagically.
3. Auto code-completion is based on what your "context" is (see number one above). Once you've chosen the appropriate context, you can then start typing a function or tag, and then hit the ESC key, and it will show you the appropriate functions that it could possibly be for it. That's as far as "code completion" goes right now for TextMate, however there are other magical things that are helpful:
-Go to Bundles > Ruby on Rails menu item and take a look at the keyboard shortcuts for commonly used things. For instance, under "Controllers" you'll see a bevy of awesomeness. Those are "Tab Completions", type the part of the word shown on the left, and hit tab, and BOOM!, magic. Usually it will allow you to tab through the appropriate places within the code, once it's written it.
-My favorite: CTRL + ALT + T at any time, and start typing what you're looking for, and you can find all the pre-built functions, etc for that context!!!!!
I hope that answers you're questions. While I probably can't answer your "Ruby Bundle specific questions", I'm sure the mailing list RoRs will be able to help.
-Kevin R.
On Thu, Oct 30, 2008 at 10:25 AM, David Park david.park@alum.mit.edu wrote:
Hi All,
I just started using TextMate for programming Ruby on Rails apps. I have encountered some problems using it and would appreciate any help I could get in figuring out how to fix them. Below are the three problems that I've run into:
- TextMate is inconsistent about when it colorizes code in .erb file. When
I open some files, TextMate colorizes the code correctly. But on other .erb files, TextMate doesn't colorize at all.
- TextMate closes the folder tree on my project. When I navigate from my
browser or terminal window to TextMate, I'll often find that the folder tree has been closed. This is really annoying because then I have to click on all the folders so that I can navigate to the files that I want. Is there any way to get TextMate to just remember the folder tree state?
- TextMate doesn't do auto code completion. I've seen some videos that
show TextMate doing autocompletion via snippets. How do I turn on the auto code completion?
Thanks for all your help!
David
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Dear Kevin,
2. My TM (also 1.5.7, but 1464) also has this problem, but only with "brown folders".
David, is your problem also happening with "brown folders" only?
Best regards, Mathieu
___________________________________________
Mathieu Godart
Skype: mathieu_godart MSN: mathieu_godart@hotmail.com
ASIC Integration Manager Coolsand Technologies ___________________________________________
Le 30 oct. 08 à 22:44, Kevin Ridgway a écrit :
- You may want to check that your "context" that your in for a
particular file is in fact "Ruby", or "Ruby on Rails", or "HTML (Rails)", you can do this with a keyboard shortcut, by hitting CTRL + ALT + SHIFT + R and then choose the appropriate context from the popup menu, for the current file. I bet that might be your problem there.
- Hmm my Textmate version doesn't do that: 1.5.7 (1436). You can
find your version by going to the TextMate menu in the upper left hand corner of you screen when Textmate is open, and Select "About TextMate" from the menu. Make sure you have the latest version, by going to the same "TextMate" menu, but then going to "Preferences", then select the "Software Update" tab, and make sure that "Automatically check for updates" is checked, and that to the right of "Watch for:", "Cutting Edge" is selected, and you'll get the latest and greatest TextMate automagically.
- Auto code-completion is based on what your "context" is (see number
one above). Once you've chosen the appropriate context, you can then start typing a function or tag, and then hit the ESC key, and it will show you the appropriate functions that it could possibly be for it. That's as far as "code completion" goes right now for TextMate, however there are other magical things that are helpful:
-Go to Bundles > Ruby on Rails menu item and take a look at the keyboard shortcuts for commonly used things. For instance, under "Controllers" you'll see a bevy of awesomeness. Those are "Tab Completions", type the part of the word shown on the left, and hit tab, and BOOM!, magic. Usually it will allow you to tab through the appropriate places within the code, once it's written it.
-My favorite: CTRL + ALT + T at any time, and start typing what you're looking for, and you can find all the pre-built functions, etc for that context!!!!!
I hope that answers you're questions. While I probably can't answer your "Ruby Bundle specific questions", I'm sure the mailing list RoRs will be able to help.
-Kevin R.
On Thu, Oct 30, 2008 at 10:25 AM, David Park david.park@alum.mit.edu wrote:
Hi All,
I just started using TextMate for programming Ruby on Rails apps. I have encountered some problems using it and would appreciate any help I could get in figuring out how to fix them. Below are the three problems that I've run into:
- TextMate is inconsistent about when it colorizes code in .erb
file. When I open some files, TextMate colorizes the code correctly. But on other .erb files, TextMate doesn't colorize at all.
- TextMate closes the folder tree on my project. When I navigate
from my browser or terminal window to TextMate, I'll often find that the folder tree has been closed. This is really annoying because then I have to click on all the folders so that I can navigate to the files that I want. Is there any way to get TextMate to just remember the folder tree state?
- TextMate doesn't do auto code completion. I've seen some videos
that show TextMate doing autocompletion via snippets. How do I turn on the auto code completion?
Thanks for all your help!
David
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Maybe some of these tips will help: http://wiki.macromates.com/Troubleshooting/101
-Kevin
On Thu, Oct 30, 2008 at 11:44 PM, Mathieu Godart mathieu@coolsand-tech.frwrote:
Dear Kevin,
- My TM (also 1.5.7, but 1464) also has this problem, but only with
"brown folders".
David, is your problem also happening with "brown folders" only?
Best regards, Mathieu
Mathieu Godart
Skype: mathieu_godart MSN: mathieu_godart@hotmail.com
ASIC Integration Manager Coolsand Technologies ___________________________________________
Le 30 oct. 08 à 22:44, Kevin Ridgway a écrit :
- You may want to check that your "context" that your in for a
particular file is in fact "Ruby", or "Ruby on Rails", or "HTML (Rails)", you can do this with a keyboard shortcut, by hitting CTRL + ALT + SHIFT + R and then choose the appropriate context from the popup menu, for the current file. I bet that might be your problem there.
- Hmm my Textmate version doesn't do that: 1.5.7 (1436). You can
find your version by going to the TextMate menu in the upper left hand corner of you screen when Textmate is open, and Select "About TextMate" from the menu. Make sure you have the latest version, by going to the same "TextMate" menu, but then going to "Preferences", then select the "Software Update" tab, and make sure that "Automatically check for updates" is checked, and that to the right of "Watch for:", "Cutting Edge" is selected, and you'll get the latest and greatest TextMate automagically.
- Auto code-completion is based on what your "context" is (see number
one above). Once you've chosen the appropriate context, you can then start typing a function or tag, and then hit the ESC key, and it will show you the appropriate functions that it could possibly be for it. That's as far as "code completion" goes right now for TextMate, however there are other magical things that are helpful:
-Go to Bundles > Ruby on Rails menu item and take a look at the keyboard shortcuts for commonly used things. For instance, under "Controllers" you'll see a bevy of awesomeness. Those are "Tab Completions", type the part of the word shown on the left, and hit tab, and BOOM!, magic. Usually it will allow you to tab through the appropriate places within the code, once it's written it.
-My favorite: CTRL + ALT + T at any time, and start typing what you're looking for, and you can find all the pre-built functions, etc for that context!!!!!
I hope that answers you're questions. While I probably can't answer your "Ruby Bundle specific questions", I'm sure the mailing list RoRs will be able to help.
-Kevin R.
On Thu, Oct 30, 2008 at 10:25 AM, David Park david.park@alum.mit.edu wrote:
Hi All,
I just started using TextMate for programming Ruby on Rails apps. I have encountered some problems using it and would appreciate any help I could get in figuring out how to fix them. Below are the three problems that I've run into:
- TextMate is inconsistent about when it colorizes code in .erb
file. When I open some files, TextMate colorizes the code correctly. But on other .erb files, TextMate doesn't colorize at all.
- TextMate closes the folder tree on my project. When I navigate
from my browser or terminal window to TextMate, I'll often find that the folder tree has been closed. This is really annoying because then I have to click on all the folders so that I can navigate to the files that I want. Is there any way to get TextMate to just remember the folder tree state?
- TextMate doesn't do auto code completion. I've seen some videos
that show TextMate doing autocompletion via snippets. How do I turn on the auto code completion?
Thanks for all your help!
David
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
1. The file type (which determines the bundle that textmate uses for your file) needs to be set for a given file. I would imagine the inconsistent coloring is because some of the files have not been assigned a type and therefore don't know to use a bundle and get colored. Use the bar at the bottom. There is a drop down menu that should list the file type. On the uncolored files you mention the file type is likely listed as plain text, change it to 'ruby on rails.'
2. Folder issue--> I don't know why the tree is collapsing after switching from textmate and coming back in. My tree doesn't change. The folder state does just stay the same for me.
3. The problem with autocompletion is likely the same as 1. Textmate uses bundles to determine what shortcuts you need for your particular language. autocompletion works by typing the first three letters, hitting tab, and allowing the bundle to determine the options from there. If there is only one, the completion finishes. Otherwise you select from the choices. There is also an esc key driven completion which functions slightly differently--it is used for finishing words, variable names etc.--but doesn't insert the code syntax the way that tab does. Try both out after setting the file type as in #1. Happy Railing, Tim
On Thu, Oct 30, 2008 at 7:25 AM, David Park david.park@alum.mit.edu wrote:
Hi All,
I just started using TextMate for programming Ruby on Rails apps. I have encountered some problems using it and would appreciate any help I could get in figuring out how to fix them. Below are the three problems that I've run into:
- TextMate is inconsistent about when it colorizes code in .erb file.
When I open some files, TextMate colorizes the code correctly. But on other .erb files, TextMate doesn't colorize at all.
- TextMate closes the folder tree on my project. When I navigate from my
browser or terminal window to TextMate, I'll often find that the folder tree has been closed. This is really annoying because then I have to click on all the folders so that I can navigate to the files that I want. Is there any way to get TextMate to just remember the folder tree state?
- TextMate doesn't do auto code completion. I've seen some videos that
show TextMate doing autocompletion via snippets. How do I turn on the auto code completion?
Thanks for all your help!
David
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Oct 31, 2008, at 1:14 AM, Tim Rand wrote:
- Folder issue--> I don't know why the tree is collapsing after
switching from textmate and coming back in. My tree doesn't change. The folder state does just stay the same for me.
I've seen this problem before. I think it was caused by something in the file system changing, which caused TextMate to do a refresh of the tree. And whenever TextMate refreshes the tree, it doesn't preserve the opened-folders state.
You might try checking whether there's another process somewhere that's touching the directory. Also, strange things can happen if you've loaded the directory over the network.
Trevor