textmatebundles

⌃⇧H in TextMate to 'Tidy' HTML causes NoMethodError

余生颓废 提交于 2019-12-24 05:06:08
问题 I tried using 'Tidy' in an HTML document for the first time yesterday, and got... /tmp/temp_textmate.Z2P0KX:30:in `<main>': undefined method `empty?' for nil:NilClass (NoMethodError) I've not done anything to the code in the bundle... #!/usr/bin/env ruby -wKU require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb' require ENV['TM_SUPPORT_PATH'] + '/lib/exit_codes.rb' result = `"${TM_TIDY:-tidy}" -f /tmp/tm_tidy_errors -iq -utf8 \ -wrap 0 --tab-size $TM_TAB_SIZE --indent-spaces $TM_TAB_SIZE \ --indent

Autocomplete in Textmate

a 夏天 提交于 2019-12-21 21:15:12
问题 Sometimes I watch screen casts where someone is using text mate. I'm a rails developer, so these are rails screen casts. They'll type something like: def for example and "end" will automatically appear underneath. I do have the bundle for Rails enabled - why doesn't this happen for me? Thanks! 回答1: The file you're editing needs the right extension ( .rb in your case) to make Textmate understand the right bundle to use. What do you see down at the bottom of your TM window? (After Line# and

TextMate toggle comment macro is broken

邮差的信 提交于 2019-12-18 15:55:43
问题 My laptop crashed and when it rebooted, "cmd /" (toggle comment) was broken. When I try to toggle comments on a line that only contains "foo", I get this output in my code instead of "# foo": /tmp/temp_textmate.2erfLj:68:in /bin/bash: -c: line 0: unexpected EOF while looking for matching '' /bin/bash: -c: line 1: syntax error: unexpected end of filemap' for " foo":String (NoMethodError) from /tmp/temp_textmate.2erfLj:48:in /bin/bash: -c: line 0: unexpected EOF while looking for matching ''

TextMate toggle comment macro is broken

ぐ巨炮叔叔 提交于 2019-12-18 15:55:41
问题 My laptop crashed and when it rebooted, "cmd /" (toggle comment) was broken. When I try to toggle comments on a line that only contains "foo", I get this output in my code instead of "# foo": /tmp/temp_textmate.2erfLj:68:in /bin/bash: -c: line 0: unexpected EOF while looking for matching '' /bin/bash: -c: line 1: syntax error: unexpected end of filemap' for " foo":String (NoMethodError) from /tmp/temp_textmate.2erfLj:48:in /bin/bash: -c: line 0: unexpected EOF while looking for matching ''

Enabling Liquid templating syntax highlight in webStorm/phpStorm

旧时模样 提交于 2019-12-13 11:32:27
问题 I wonder if someone managed to enable the Liquid templating engine syntax highlighting in WebStorm IDE, I work a lot on Shopify stores and really like using Webstorm for that purpose. Did anyone managed to get this working? I found some resources regarding this issue on JetBrain's forum though it didn't quite got me anywhere, there is one dude who suggested using 'tmBundle' and that might work if you do some dark magic. The thread is: RUBY-7210 and the official plugin request: JetBrain's

How to update GetBundles in TextMate?

陌路散爱 提交于 2019-12-05 01:23:30
问题 I originally installed GetBundles using Trey Piepmeier's instructions. Afterwards, I installed all TextMate bundles using GetBundles. I noticed that my copy of GetBundles was old, so I did the following: cd ~/Library/Application Support/TextMate/Bundles/ svn co http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/ When I restarted TextMate and opened GetBundles, a dialog box popped up asking me to select the source for many—if not all—of my bundles. I can't remember which version

IN TextMate I can't create partials with Rails tmbundle

一曲冷凌霜 提交于 2019-12-05 00:15:50
问题 /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `to_plist': An object in the argument tree could not be converted (ArgumentError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `request_string_core' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in `request_string' from /Users/pma/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:23:in `<main

Can't build XCode 4 Project from Textmate

有些话、适合烂在心里 提交于 2019-12-04 13:30:05
问题 I've opened a newly created XCode 4 project in TextMate (by dropping the project folder on the TextMate icon like the manual suggests) and have attempted to build it using the Command-B shortcut and selecting 2 for an XCode build. I get the following error xcodebuild: error: invalid option '-activebuildstyle' Usage: xcodebuild [-project <projectname>] [[-target <targetname>]...|-alltargets] [-configuration <configurationname>] [-arch <architecture>]... [-sdk [<sdkname>|<sdkpath>]] [

IN TextMate I can't create partials with Rails tmbundle

青春壹個敷衍的年華 提交于 2019-12-03 15:50:11
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `to_plist': An object in the argument tree could not be converted (ArgumentError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `request_string_core' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in `request_string' from /Users/pma/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:23:in `<main>' I installed the RoR bundle from: https://github.com/drnic/ruby-on-rails-tmbundle.git Using rvm. Are

Can't build XCode 4 Project from Textmate

家住魔仙堡 提交于 2019-12-03 08:27:59
I've opened a newly created XCode 4 project in TextMate (by dropping the project folder on the TextMate icon like the manual suggests) and have attempted to build it using the Command-B shortcut and selecting 2 for an XCode build. I get the following error xcodebuild: error: invalid option '-activebuildstyle' Usage: xcodebuild [-project <projectname>] [[-target <targetname>]...|-alltargets] [-configuration <configurationname>] [-arch <architecture>]... [-sdk [<sdkname>|<sdkpath>]] [<buildsetting>=<value>]... [<buildaction>]... xcodebuild -workspace <workspacename> -scheme <schemeName> [