Created
September 19, 2012 10:02
-
-
Save DianthuDia/3748803 to your computer and use it in GitHub Desktop.
railsのvim-rubyをデバッグする場合のパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /var/folders/5y/9cd64vmj6dv7vm7cp8f3vxsm0000gn/T//GqXAr7_rubycomplete.vim 2012-09-19 19:01:34.000000000 +0900 | |
+++ autoload/rubycomplete.vim 2012-09-19 18:57:25.000000000 +0900 | |
@@ -451,7 +451,8 @@ class VimRubyCompletion | |
#eval( "Rails::Initializer.run" ) #not necessary? | |
VIM::command('let s:rubycomplete_rails_loaded = 1') | |
dprint "rails loaded" | |
- rescue Exception | |
+ rescue Exception => e | |
+ VIM::command("echoe %s" % e.backtrace.join(' ') ) | |
dprint "Rails Error %s" % $! | |
VIM::evaluate( "s:ErrMsg('Error loading rails environment')" ) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment