Can't install Textmate Bundles
Hi everybody,
When I go to the Textmate Bundles preferences in RubyMine (which is in its latest version on my Mac), then press on the "+" button and choose a `.tmbundle` file/folder, I get an error message saying "Can't read bundle from /Users/aziz/Library/Application Support/TextMate/Managed/Bundles/Ruby on Rails.tmbundle". It happens for all bundles, not only the Ruby on Rails bundle.
So my question is, what am I doing wrong?
Please sign in to leave a comment.
Hi Aziz,
You are doing all right. TextMate Bundles plugin doesn't support binary bundles, try to use sources of that bundle: https://github.com/textmate/ruby-on-rails-tmbundle
Btw, according to this post (http://blog.jetbrains.com/pycharm/2012/12/pycharm-2-7-eap-build-124-253/), only syntax highlighting information are extracted from bundles, so you'll get nothing from ruby-on-rails bundle. It would be better if you could say us what are you missing in rails support in RubyMine ;)
Thanks a lot for your answer. The only issue that I have is that the Markdown highlighting for the Railscasts scheme. I tried to add the Markdown Textmate bundle following your instructions but it didn't load the schema. So what should I do to replace the hilighting of markdown files to be the same as the Textmate one when using the Textmate Railscasts theme?
EDIT: I tried to add the Textmate railscasts.tmtheme file but that didn't work.
railscasts.thTheme is bundled in IDE and placed at <ide directory>/plugins/textmate/lib/themes/ (you may edit it if you want).
Could you please attach screenshot of markdown file with code and in railscasts scheme?
Also, maybe this screencast will help: http://screencast.com/t/esCfhohWiT
Here is, in attachment, a screenshot of a markdown file when I am using the Railscasts theme that comes with RubyMine, as you asked. As you can see, the styling is hidious and is not even close to the Railscasts theme... If you need more screenshots, I can provide as many as you want. Note that I added the Markdown and HTML textmate bundles to RubyMine as shown in the screencast that you linked and it didn't change anything; but it was Textmate bundles from Github, not SublimeText 2 packages.
Attachment(s):
Screen Shot 2013-03-25 at 2.23.53 PM.png
Aziz, looks like you are using Markdown plugin for IDEA (http://plugins.jetbrains.com/plugin/?idea&pluginId=5970). If it so, then this is the issue of this plugin (not textmate bundles plugin) and you can file a bug report here: https://github.com/nicoulaj/idea-markdown/issues.
Also you may turn off markdown plugin or remap *.md/*.markdown/etc file type from markdown to 'Files supported via TextMate bundles'. After that you'll get better highlighting in railscasts scheme, but likely you'll lose 'Preview' feature provided by markdown plugin.
I turned off the Markdown plugin, added the Markdown Textmate bundle and associated *.md, *.markdown and *.mdown with 'Files supported via TextMate bundles'. Now, using the Railscasts scheme, the Markdown hilighting looks even worse ?:|
I attached a screenshot.
Attachment(s):
Screen Shot 2013-03-25 at 4.43.58 PM.png
Please attach screenshot of TextMate Bundles settings and Editor | Colors & Fonts settings.
Here you go :)
Attachment(s):
Screen Shot 2013-03-25 at 4.55.37 PM.png
Screen Shot 2013-03-25 at 4.53.43 PM.png
Try to set mapping RailsCasts to RailsCasts in TextMate Bundles settings (left click on right column).
I tried that before, doesn't do anything...
Closing/opening editor may be required after changing mapping.
Ok, restarting the editor did the trick and now the Railscast scheme is used properly, but the Markdown file is still very poorly highlighted (by that I mean almost not hilighted; just the links are hilighted). As usual, screenshot in attachment.
Attachment(s):
Screen Shot 2013-03-25 at 5.23.25 PM.png
Well, Railscasts theme provides not too much selectors for markdown highlighting (in sublime text it looks exactly the same). But railscasts has rules for HTML, so adding HTML bundle can improve looking.
Just compared highlighting with textmate, pretty similar imho (see screenshot).
Attachment(s):
Screen Shot 2013-03-25 at 9.35.34 PM.png
I guess...What I did in the end is duplicate the Railscasts scheme and called the duplicate Railscasts+. I use the Markdown IDEA plugin and customised the colors for Markdown specifically. It looks a bit better except for the HTML. I'm going to submit an issue on the Markdow IDEA plugin's Github repo as you suggested earlier.
Thanks a lot for your help and especially your patience!!
Thank you for feedback. I'll try to make TextMate Bundles settings more apparent.